/* =========================================================
   GM ZERBINI
   RESPONSIVE.CSS
   VERSIONE MOBILE PULITA

   IMPORTANTE
   ---------------------------------------------------------
   - Desktop non viene modificato
   - hero.css rimane invariato
   - base.css rimane invariato
   - index.html rimane invariato

   MOBILE:
   - Header compatto
   - Hero copy completa
   - 1 immagine principale orizzontale
   - 2 immagini secondarie orizzontali
   - Terza immagine nascosta
   - Controlli carosello nascosti
   - Audience compatta
   - Categorie su una sola riga scrollabile
   ========================================================= */


/* =========================================================
   01. TABLET / NAV MOBILE
   ========================================================= */

@media (max-width: 1024px) {

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

}


/* =========================================================
   02. MOBILE
   ========================================================= */

@media (max-width: 768px) {


  /* =======================================================
     BASE MOBILE
     ======================================================= */

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: calc(100% - 40px);
    max-width: none;

    margin-left: auto;
    margin-right: auto;
  }


  /* =======================================================
     HEADER
     ======================================================= */

  .site-header {
    position: relative;
    z-index: 1000;

    width: 100%;
    height: 72px;

    background: #fbfaf7;

    border-bottom:
      1px solid rgba(7, 24, 44, 0.08);
  }

  .header-inner {
    height: 72px;

    display: flex;
    align-items: center;
  }


  /* =======================================================
     LOGO
     ======================================================= */

  .site-logo {
    width: 100px;
    flex: 0 0 100px;

    margin: 0;
  }

  .site-logo img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
  }


  /* =======================================================
     DESKTOP HEADER OFF
     ======================================================= */

  .desktop-nav,
  .header-actions {
    display: none;
  }


  /* =======================================================
     MOBILE HEADER ACTIONS
     ======================================================= */

  .mobile-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 7px;

    margin-left: auto;
  }


  /* =======================================================
     WHATSAPP
     ======================================================= */

  .mobile-whatsapp {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border:
      1px solid rgba(7, 24, 44, 0.12);

    border-radius: 9px;

    background: #ffffff;
    color: var(--blue);

    box-shadow: none;
  }

  .mobile-whatsapp svg {
    display: block;

    width: 18px;
    height: 18px;

    fill: currentColor;
  }


  /* =======================================================
     PREVENTIVO HEADER
     ======================================================= */

  .mobile-quote {
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 0 13px;

    border-radius: 9px;

    background: var(--blue);
    color: #ffffff;

    font-size: 11px;
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    box-shadow:
      0 6px 16px rgba(7, 73, 132, 0.12);
  }

  .mobile-quote span {
    font-size: 14px;
    line-height: 1;
  }


  /* =======================================================
     HAMBURGER
     ======================================================= */

  .mobile-menu-toggle {
    width: 36px;
    height: 38px;

    flex: 0 0 36px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;

    width: 22px;
    height: 2px;

    border-radius: 999px;

    background: var(--navy);

    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }


  /* =======================================================
     HAMBURGER ACTIVE
     ======================================================= */

  .mobile-menu-toggle.is-active span:nth-child(1) {
    transform:
      translateY(7px)
      rotate(45deg);
  }

  .mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-active span:nth-child(3) {
    transform:
      translateY(-7px)
      rotate(-45deg);
  }


  /* =======================================================
     MOBILE MENU
     ======================================================= */

  .mobile-menu {
    display: none;

    position: absolute;

    top: 72px;
    left: 0;

    width: 100%;

    padding:
      12px
      20px
      20px;

    background: #fbfaf7;

    border-bottom:
      1px solid rgba(7, 24, 44, 0.10);

    box-shadow:
      0 20px 35px rgba(7, 24, 44, 0.08);

    z-index: 1000;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;
  }

  .mobile-menu nav a {
    display: block;

    padding: 14px 2px;

    color: var(--navy);

    font-size: 14px;
    font-weight: 650;

    border-bottom:
      1px solid rgba(7, 24, 44, 0.07);
  }

  .mobile-menu nav a:last-child {
    border-bottom: 0;
  }

  .mobile-menu-whatsapp {
    color: var(--blue) !important;
  }


  /* =======================================================
     HERO

     RESET DELLA STRUTTURA DESKTOP
     ======================================================= */

  .hero {
    width: 100%;

    padding: 0;

    overflow: hidden;
  }

  .hero-main {
    display: flex;
    flex-direction: column;

    width: calc(100% - 40px);

    gap: 0;

    align-items: stretch;

    padding-top: 26px;
    padding-bottom: 0;
  }


  /* =======================================================
     COPY
     ======================================================= */

  .hero-copy {
    display: block;

    width: 100%;
    min-width: 0;

    padding: 0;
  }


  /* =======================================================
     EYEBROW
     ======================================================= */

  .hero-eyebrow {
    display: block;

    margin: 0 0 12px;

    color: var(--blue);

    font-size: 10px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.12em;

    text-transform: uppercase;
  }


  /* =======================================================
     TITLE
     ======================================================= */

  .hero-title {
    width: 100%;
    max-width: none;

    margin: 0;

    font-size:
      clamp(39px, 10vw, 45px);

    font-weight: 800;

    line-height: 0.99;

    letter-spacing: -0.045em;
  }

  .hero-title span {
    display: block;
  }

  .hero-title-dark {
    color: var(--navy);
  }

  .hero-title-blue {
    color: var(--blue);
  }


  /* =======================================================
     LEAD
     ======================================================= */

  .hero-lead {
    width: 100%;
    max-width: none;

    margin: 17px 0 0;

    color: var(--ink);

    font-size: 16px;
    font-weight: 650;

    line-height: 1.42;

    letter-spacing: -0.012em;
  }


  /* =======================================================
     DESCRIPTION
     ======================================================= */

  .hero-description {
    width: 100%;
    max-width: none;

    margin: 8px 0 0;

    color: var(--muted);

    font-size: 14px;
    font-weight: 500;

    line-height: 1.52;
  }


  /* =======================================================
     CTA
     ======================================================= */

  .hero-actions {
    width: 100%;

    display: grid;

    grid-template-columns:
      minmax(0, 1.08fr)
      minmax(0, 0.92fr);

    align-items: stretch;

    gap: 8px;

    margin-top: 19px;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;

    min-height: 44px;

    padding:
      0
      11px;

    border-radius: 9px;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
  }

  .hero-primary span {
    font-size: 14px;
  }


  /* =======================================================
     BENEFITS
     ======================================================= */

  .hero-benefits {
    width: 100%;

    display: grid;

    grid-template-columns:
      repeat(4, minmax(0, 1fr));

    gap: 10px;

    margin-top: 21px;

    padding-top: 16px;

    border-top:
      1px solid rgba(7, 24, 44, 0.10);
  }

  .hero-benefit {
    position: relative;

    min-width: 0;

    padding-top: 8px;
  }

  .benefit-line {
    position: absolute;

    top: 0;
    left: 0;

    width: 22px;
    height: 2px;

    margin: 0;

    border-radius: 20px;

    background: var(--blue);
  }

  .hero-benefit p {
    width: 100%;
    max-width: none;

    margin: 0;

    color: var(--navy);

    font-size: 8.5px;
    font-weight: 700;

    line-height: 1.3;
  }


  /* =======================================================
     FOTO PRINCIPALE

     RESET CRITICO:
     hero.css imposta min-height:500px.
     Qui viene eliminato.
     ======================================================= */

  .hero-featured {
    position: relative;

    width: 100%;

    min-width: 0;

    min-height: 0;
    height: auto;

    margin:
      22px
      0
      0;

    overflow: hidden;

    border-radius: 13px;

    background: var(--cream);

    aspect-ratio: 1.62 / 1;

    box-shadow:
      0 10px 30px rgba(7, 24, 44, 0.06);
  }

  .hero-featured img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: none;
  }

  .hero-featured:hover img {
    transform: none;
  }


  /* =======================================================
     GALLERY

     RESET COMPLETO DEL CAROSELLO DESKTOP
     ======================================================= */

  .hero-gallery {
    position: relative;

    width: 100%;

    margin-top: 10px;

    padding:
      0
      20px;

    overflow: hidden;
  }

  .hero-gallery-track {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;

    width: 100%;

    padding-left: 0;
    padding-right: 0;

    overflow: visible;

    scroll-snap-type: none;

    cursor: default;

    user-select: auto;

    -webkit-overflow-scrolling: auto;

    overscroll-behavior-inline: auto;

    transform: none !important;
  }

  .hero-gallery-track:active {
    cursor: default;
  }


  /* =======================================================
     GALLERY CARD

     RESET CRITICO:
     - flex-basis desktop eliminato
     - height desktop eliminata
     ======================================================= */

  .hero-gallery-card {
    position: relative;

    flex: none;

    width: 100%;
    min-width: 0;
    max-width: none;

    height: auto;
    min-height: 0;

    margin: 0;

    overflow: hidden;

    border-radius: 11px;

    background: var(--cream);

    aspect-ratio: 1.48 / 1;

    scroll-snap-align: none;

    box-shadow:
      0 7px 22px rgba(7, 24, 44, 0.05);
  }

  .hero-gallery-card img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    pointer-events: none;

    transform: none;
  }

  .hero-gallery-card:hover img {
    transform: none;
  }


  /* =======================================================
     SOLO DUE FOTO SECONDARIE
     ======================================================= */

  .hero-gallery-card:nth-child(n + 3) {
    display: none;
  }


  /* =======================================================
     NIENTE DRAG MOBILE
     ======================================================= */

  .hero-gallery-track.is-dragging {
    cursor: default;

    scroll-snap-type: none;
  }


  /* =======================================================
     CONTROLLI DESKTOP NASCOSTI
     ======================================================= */

  .gallery-controls,
  .gallery-progress,
  .gallery-progress-track,
  .gallery-progress-bar,
  .gallery-hint {
    display: none !important;
  }


  /* =======================================================
     AUDIENCE

     RESET DELLA GRID DESKTOP
     ======================================================= */

  .audience-strip {
    display: block;

    grid-template-columns: none;

    width: 100%;

    gap: 0;

    align-items: initial;

    margin:
      24px
      0
      0;

    padding:
      19px
      0
      20px;

    border-top:
      1px solid rgba(7, 24, 44, 0.10);

    border-bottom:
      1px solid rgba(7, 24, 44, 0.10);
  }


  /* =======================================================
     AUDIENCE HEADING
     ======================================================= */

  .audience-heading {
    width: 100%;

    margin: 0 0 14px;
  }

  .audience-heading > span {
    display: block;

    margin: 0 0 6px;

    color: var(--blue);

    font-size: 9px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.14em;

    text-transform: uppercase;
  }

  .audience-heading h2 {
    width: 100%;
    max-width: none;

    margin: 0;

    color: var(--navy);

    font-size: 22px;
    font-weight: 500;

    line-height: 1.06;

    letter-spacing: -0.035em;
  }

  .audience-heading h2 strong {
    display: inline;

    font-weight: 800;
  }


  /* =======================================================
     AUDIENCE CATEGORIES

     RESET:
     desktop = wrap + justify-content:flex-end

     mobile = una sola fascia orizzontale
     ======================================================= */

  .audience-categories {
    display: flex;

    flex-direction: row;
    flex-wrap: nowrap;

    justify-content: flex-start;
    align-items: center;

    width: calc(100% + 20px);

    gap: 7px;

    margin-right: -20px;

    padding:
      0
      20px
      2px
      0;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x proximity;
  }

  .audience-categories::-webkit-scrollbar {
    display: none;
  }


  /* =======================================================
     CATEGORY
     ======================================================= */

  .audience-category {
    flex:
      0
      0
      auto;

    width: auto;

    min-width: max-content;
    min-height: 36px;

    padding:
      0
      14px;

    border:
      1px solid rgba(7, 24, 44, 0.14);

    border-radius: 100px;

    background: transparent;

    color: #39485a;

    font-size: 10.5px;
    font-weight: 650;

    line-height: 1;

    white-space: nowrap;

    scroll-snap-align: start;

    transform: none;
  }

  .audience-category:hover {
    transform: none;
  }

  .audience-category:active {
    color: var(--blue);

    border-color:
      rgba(7, 84, 155, 0.35);

    background:
      rgba(7, 84, 155, 0.04);
  }

}


/* =========================================================
   03. MOBILE PICCOLO
   ========================================================= */

@media (max-width: 389px) {

  .container {
    width: calc(100% - 30px);
  }


  /* HEADER */

  .site-logo {
    width: 86px;
    flex-basis: 86px;
  }

  .mobile-header-actions {
    gap: 5px;
  }

  .mobile-whatsapp {
    width: 35px;
    height: 35px;

    flex-basis: 35px;
  }

  .mobile-quote {
    height: 35px;

    padding:
      0
      9px;

    font-size: 10px;
  }

  .mobile-menu-toggle {
    width: 32px;
    height: 35px;

    flex-basis: 32px;
  }

  .mobile-menu-toggle span {
    width: 20px;
  }


  /* HERO */

  .hero-main {
    width: calc(100% - 30px);

    padding-top: 23px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-description {
    font-size: 13.5px;
  }


  /* CTA */

  .hero-actions {
    gap: 6px;
  }

  .hero-actions .btn {
    min-height: 42px;

    padding:
      0
      8px;

    font-size: 10px;
  }


  /* BENEFITS */

  .hero-benefits {
    gap: 7px;
  }

  .hero-benefit p {
    font-size: 7.7px;
  }


  /* FEATURED */

  .hero-featured {
    margin-top: 20px;

    border-radius: 12px;

    aspect-ratio: 1.62 / 1;
  }


  /* GALLERY */

  .hero-gallery {
    margin-top: 8px;

    padding:
      0
      15px;
  }

  .hero-gallery-track {
    gap: 8px;
  }

  .hero-gallery-card {
    border-radius: 9px;

    aspect-ratio: 1.48 / 1;
  }


  /* AUDIENCE */

  .audience-strip {
    margin-top: 21px;

    padding-top: 17px;
    padding-bottom: 18px;
  }

  .audience-heading {
    margin-bottom: 12px;
  }

  .audience-heading h2 {
    font-size: 20px;
  }

  .audience-categories {
    width: calc(100% + 15px);

    margin-right: -15px;

    padding-right: 15px;

    gap: 6px;
  }

  .audience-category {
    min-height: 34px;

    padding:
      0
      12px;

    font-size: 10px;
  }

}


/* =========================================================
   04. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

}
/* =========================================================
   HEADER MOBILE — VERSIONE FINALE
   ========================================================= */

@media (max-width: 768px) {

  .site-header .header-inner {
    min-height: 92px !important;

    display: flex !important;
    align-items: center !important;

    gap: 12px !important;
  }


  /* =========================
     LOGO
     ========================= */

  .site-header .site-logo {
  width: 112px !important;
  min-width: 112px !important;

  display: flex !important;
  align-items: center !important;

  margin: 0 !important;
  padding: 0 !important;
}

.site-header .site-logo img {
  display: block !important;

  width: 112px !important;
  height: auto !important;

  max-width: none !important;
  max-height: none !important;

  object-fit: contain !important;
}

  /* =========================
     AZIONI DESTRA
     ========================= */

  .site-header .mobile-header-actions {
    margin-left: auto !important;

    display: flex !important;
    align-items: center !important;

    gap: 9px !important;
  }


  /* =========================
     WHATSAPP
     ========================= */

  .site-header .mobile-whatsapp {
    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    flex: 0 0 42px !important;

    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #ffffff !important;

border: 1px solid rgba(37, 211, 102, 0.38) !important;
border-radius: 50% !important;

color: #25D366 !important;

box-shadow: none !important;

    text-decoration: none !important;

    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease !important;
  }

  .site-header .mobile-whatsapp svg {
    width: 21px !important;
    height: 21px !important;

    display: block !important;

    fill: #25D366 !important;
  }

  .site-header .mobile-whatsapp:active {
    transform: scale(0.94);
  }


  /* =========================
     PREVENTIVO
     ========================= */

  .site-header .mobile-quote {
    min-height: 42px !important;

    padding: 0 15px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 8px !important;

    border-radius: 9px !important;

    font-size: 12.5px !important;
    font-weight: 700 !important;
  }


  /* =========================
     HAMBURGER
     ========================= */

  .site-header .mobile-menu-toggle {
    width: 38px !important;
    height: 42px !important;

    padding: 7px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 5px !important;
  }

}
