/* ==========================================================================
   Fattorie Casaro, stile del sito
   Due soli font: League Gothic per i titoli, Inter per il testo. Accenti: blu e giallo del logo
   Font ospitati in locale (nessuna richiesta a Google Fonts).
   ========================================================================== */

/* ---------- FONT ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family: 'League Gothic'; font-style: normal; font-display: swap; font-weight: 400; font-stretch: 75% 100%;
  src: url(../fonts/league-gothic-latin-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'League Gothic'; font-style: normal; font-display: swap; font-weight: 400; font-stretch: 75% 100%;
  src: url(../fonts/league-gothic-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- VARIABILI ---------- */
:root {
  --bianco: #FFFFFF;
  --avorio: #F7F5F0;
  --sabbia: #E8E3DA;
  --inchiostro: #15140F;
  --testo: #3A3732;
  --grigio: #7C776E;
  --blu: #0012C4;
  --blu-notte: #0A1033;
  --giallo: #FFC901;
  --verde-wa-originale: #25D366; /* verde ufficiale WhatsApp */

  --titoli: 'League Gothic', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(20px, 4.5vw, 72px);
  --max: 1280px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --raggio-btn: 4px;
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); background: var(--bianco); }
/* quando si scorre oltre la fine della pagina (rimbalzo) si vede lo sfondo di html: in fondo deve essere il blu del footer */
html.fondo-blu { background: var(--blu-notte); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--testo);
  background: var(--bianco);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blu); outline-offset: 4px; }
.footer :focus-visible { outline-color: var(--giallo); }  /* sul fondo blu il contorno blu non si vedrebbe */
::selection { background: var(--blu); color: #fff; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; }
.header { view-transition-name: header; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sezione { padding-block: clamp(72px, 9vw, 140px); }
.sezione--avorio { background: var(--avorio); }
.nascosto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta { position: fixed; top: 12px; left: 12px; z-index: 300; padding: 10px 18px; background: var(--inchiostro); color: #fff; text-decoration: none; transform: translateY(-200%); }
.salta:focus { transform: none; }

/* ---------- TIPOGRAFIA ---------- */
h1, h2, h3 { font-family: var(--titoli); font-weight: 400; color: var(--inchiostro); letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(46px, 5.2vw, 80px); line-height: 1; }
h1 em { font-style: normal; color: var(--blu); }
h2 { font-size: clamp(34px, 3.2vw, 52px); line-height: 1.05; }
h3 { font-size: clamp(24px, 1.9vw, 30px); line-height: 1.1; }
.intro-testo { max-width: 46ch; margin-top: 18px; color: var(--testo); font-size: 17px; }
.testa-sezione { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(36px, 4vw, 56px); }
.testa-sezione p { max-width: 44ch; color: var(--grigio); }

/* ---------- BOTTONI E LINK ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 42px; padding: 0 22px; border-radius: var(--raggio-btn);
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn .icona { width: 14px; height: 14px; fill: currentColor; flex: none; }
/* primario, secondario e WhatsApp come il logo: contorno blu e ombra piena in basso a sinistra; cambia solo il fondo */
.btn--pieno, .btn--secondario, .btn--whatsapp {
  border: 2px solid var(--blu); color: var(--blu); font-weight: 600;
  box-shadow: -4px 4px 0 var(--blu);
  transition: translate .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--pieno { background: var(--giallo); }
.btn--secondario { background: var(--bianco); }
.btn--pieno::before, .btn--secondario::before, .btn--whatsapp::before { display: none; }
.btn--pieno:hover, .btn--secondario:hover, .btn--whatsapp:hover { translate: 2px -2px; box-shadow: -6px 6px 0 var(--blu); }
.btn--pieno:active, .btn--secondario:active, .btn--whatsapp:active { translate: -4px 4px; box-shadow: 0 0 0 var(--blu); }
.btn--whatsapp { background: var(--verde-wa-originale); color: #fff; font-weight: 600; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blu); text-decoration: none; padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .45s var(--ease), color .3s;
}
.link::after { content: "→"; font-size: 14px; letter-spacing: 0; transition: translate .35s var(--ease); }
.link:hover { color: var(--inchiostro); background-size: 35% 1px; }
.link:hover::after { translate: 4px 0; }
.azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }

/* ---------- STATO APERTO / CHIUSO ---------- */
.stato { display: inline-flex; align-items: baseline; gap: 12px; font-size: 14px; color: var(--testo); }
.stato__punto { display: none; }
.stato__etichetta { font-family: var(--titoli); font-size: 2.1em; font-weight: 400; line-height: .9; letter-spacing: .03em; text-transform: uppercase; }
.stato.is-aperto .stato__etichetta { color: #1F9D55; }
.stato.is-chiuso .stato__etichetta { color: #D92D20; }
/* sulla foto della hero servono toni più chiari */
.hero .stato.is-aperto .stato__etichetta { color: #4ADE80; }
.hero .stato.is-chiuso .stato__etichetta { color: #FF7A70; }

/* ---------- HEADER ---------- */
/* in cima alla pagina l'header è una fascia libera; appena si scorre diventa una barra flottante staccata dai bordi */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 150; pointer-events: none; }
/* home: sopra la foto a tutto schermo l'header è trasparente finché la pagina è in cima */
.header--foto:not(.is-scorrimento) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header--foto:not(.is-scorrimento) .nav a { color: rgba(255, 255, 255, .78); }
.header--foto:not(.is-scorrimento) .nav a:hover, .header--foto:not(.is-scorrimento) .nav a[aria-current="page"] { color: #fff; }
.header--foto:not(.is-scorrimento) .burger { border-color: rgba(255, 255, 255, .45); }
.header--foto:not(.is-scorrimento) .burger span { background: #fff; }
.menu-aperto .header--foto .burger { border-color: var(--sabbia); }
.menu-aperto .header--foto .burger span { background: var(--inchiostro); }
.header__inner {
  pointer-events: auto; display: flex; align-items: center; gap: 32px;
  width: 100%; max-width: var(--max); height: var(--header-h); margin: 0 auto; padding-inline: var(--gutter);
  border-radius: 6px; background: rgba(255, 255, 255, 0);
  transition: height .5s var(--ease), margin .5s var(--ease), width .5s var(--ease), max-width .5s var(--ease), padding .5s var(--ease), background-color .4s, box-shadow .4s;
}
/* Contatti: la barra flottante c'è da subito, perché il menu cade sopra la foto della mappa */
.header.is-scorrimento .header__inner, .header--barra .header__inner {
  width: calc(100% - 24px); max-width: calc(var(--max) - 2 * var(--gutter) + 48px); height: 62px; margin-top: 12px; padding-inline: 24px;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px rgba(10, 16, 51, .14), 0 0 0 1px rgba(10, 16, 51, .05);
}
.menu-aperto .header .header__inner { width: 100%; max-width: var(--max); height: var(--header-h); margin-top: 0; padding-inline: var(--gutter); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header__logo { flex: none; width: 118px; transition: width .5s var(--ease); }
.header.is-scorrimento .header__logo, .header--barra .header__logo { width: 100px; }
.header__logo img { width: 100%; }
.nav { display: flex; gap: clamp(20px, 2.4vw, 38px); margin-left: auto; }
.nav a { position: relative; padding-block: 6px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--grigio); transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--inchiostro); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; border-radius: var(--raggio-btn); border: 1px solid var(--sabbia); }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--inchiostro); transition: transform .45s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 140; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom)); background: var(--bianco); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__nav a { display: block; padding-block: 12px; border-bottom: 1px solid var(--sabbia); font-family: var(--titoli); font-size: 40px; line-height: 1.1; letter-spacing: .01em; color: var(--inchiostro); text-decoration: none; }
.menu__nav a[aria-current="page"] { color: var(--blu); }
.menu__footer { display: grid; gap: 20px; justify-items: start; margin-top: 36px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
  :root { --header-h: 68px; }
  .header.is-scorrimento .header__inner, .header--barra .header__inner { width: calc(100% - 20px); height: 58px; margin-top: 10px; padding-inline: 14px 8px; }
  .header.is-scorrimento .header__logo, .header--barra .header__logo { width: 92px; }
}

/* ---------- SOCIAL (solo icone) ---------- */
.social { display: flex; gap: 10px; margin-inline: calc((40px - 17px) / -2); }  /* senza bordo: il simbolo resta allineato al testo */
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--raggio-btn); color: var(--inchiostro); transition: background-color .3s, color .3s; }
.social a:hover { background: var(--inchiostro); color: #fff; }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.social--chiaro a { color: var(--avorio); }
.social--chiaro a:hover { background: var(--avorio); color: var(--blu-notte); }

/* ---------- HERO HOME: foto a tutto schermo con i testi sopra una sfumatura nera ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 100svh; overflow: hidden; background: #000; color: #fff; }
.hero__foto { position: absolute; inset: -3%; z-index: -1; }  /* un po' più grande: si muove con il mouse e con lo scroll */
.slide { position: absolute; inset: 0; overflow: hidden; }
.slide picture, .slide img { display: block; width: 100%; height: 100%; }
.slide img { object-fit: cover; }
.slide:not(:first-child) { opacity: 0; visibility: hidden; }
/* sfumatura nera: in basso e a sinistra sotto i testi, leggera in alto sotto l'header */
.hero__foto::after {
  content: ""; position: absolute; inset: 0; z-index: 50; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 24%),
    linear-gradient(0deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .62) 34%, rgba(0, 0, 0, 0) 68%),
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 60%);
}
.hero__contenuto { position: relative; width: 100%; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(56px, 7vw, 100px); }
.hero__titolo { color: #fff; font-size: clamp(54px, 8vw, 132px); line-height: .9; }
.hero__titolo em { color: var(--giallo); }
.riga { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }  /* maschera per l'entrata riga per riga */
.riga > span { display: block; }
.hero .intro-testo { margin-top: 22px; color: rgba(255, 255, 255, .86); }
.hero .stato { margin-top: 26px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.hero .azioni { margin-top: 28px; }
html.con-offerta .hero__contenuto { padding-top: calc(var(--header-h) + var(--offerta-top) + var(--offerta-h) + 24px); }

@media (max-width: 800px) {
  .hero__contenuto { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
  /* i due bottoni affiancati e larghi uguali */
  .hero .azioni { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .azioni .btn { padding-inline: 10px; letter-spacing: .1em; }
  .hero__foto::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 20%),
      linear-gradient(0deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .7) 45%, rgba(0, 0, 0, 0) 75%);
  }
}

/* ---------- TESTATA PAGINE INTERNE ---------- */
.testata { padding-top: calc(var(--header-h) + clamp(48px, 6vw, 96px)); padding-bottom: clamp(40px, 5vw, 72px); }

/* ---------- FOTO ---------- */
.foto { position: relative; overflow: hidden; background: var(--avorio); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto--larga { aspect-ratio: 16 / 7; }
@media (max-width: 700px) { .foto--larga { aspect-ratio: 4 / 3; } }

/* ---------- RIQUADRI DEI PRODOTTI (home e pagina Prodotti) ----------
   foto a tutto riquadro, testo sopra una sfumatura nera */
.tessere { display: grid; gap: clamp(10px, 1.2vw, 16px); }
.tessere--banco { grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, clamp(240px, 24vw, 330px)); }
.tessere--banco .tessera--grande { grid-row: span 2; }
.tessere--prodotti { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(230px, 22vw, 310px); }
.tessere--prodotti .tessera--grande { grid-column: span 2; grid-row: span 2; }
.tessera { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-width: 0; color: #fff; text-decoration: none; background: #111; }
.tessera img { position: absolute; left: 0; top: -8%; z-index: -2; width: 100%; height: 116%; object-fit: cover; transition: scale 1.2s var(--ease); }  /* più alta: si muove un po' con lo scroll */
.tessera::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .45) 42%, rgba(0, 0, 0, 0) 72%); }
.tessera:hover img { scale: 1.06; }
.tessera__testo { padding: clamp(18px, 2.2vw, 32px); }
.tessera h2, .tessera h3 { color: #fff; font-size: clamp(30px, 2.8vw, 44px); line-height: .95; }
.tessera--grande h2, .tessera--grande h3 { font-size: clamp(46px, 5.2vw, 84px); }
.tessera p { margin-top: 10px; max-width: 40ch; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
/* riquadri cliccabili: freccia in stile bottone del logo */
.tessera__freccia { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--blu); border-radius: var(--raggio-btn); background: var(--giallo); color: var(--blu); box-shadow: -3px 3px 0 var(--blu); transition: translate .3s var(--ease), box-shadow .3s var(--ease); }
.tessera__freccia svg { width: 20px; height: 20px; }
a.tessera:hover .tessera__freccia { translate: 2px -2px; box-shadow: -5px 5px 0 var(--blu); }
@media (max-width: 860px) {
  /* su telefono: il riquadro grande a tutta riga, gli altri due per riga */
  .tessere--banco, .tessere--prodotti { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; gap: 10px; }
  .tessere--banco .tessera--grande, .tessere--prodotti .tessera--grande { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3.3; }
  .tessera { aspect-ratio: 3 / 4.2; }
  .tessere--prodotti .tessera--larga { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .tessera__testo { padding: 14px; }
  .tessera h2, .tessera h3 { font-size: 25px; }
  .tessera--grande h2, .tessera--grande h3 { font-size: 46px; }
  .tessera p { margin-top: 6px; font-size: 12.5px; line-height: 1.45; }
  .tessera__freccia { top: 10px; right: 10px; width: 34px; height: 34px; }
  .tessera__freccia svg { width: 16px; height: 16px; }
}

/* ---------- RECENSIONI ---------- */
.recensioni { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.recensioni__punteggio { display: flex; align-items: center; gap: 22px; margin: clamp(22px, 3vw, 36px) 0 clamp(26px, 3vw, 36px); }
/* il numero in stile logo: giallo con il contorno blu */
.recensioni__numero { font-family: var(--titoli); font-size: clamp(110px, 12vw, 190px); line-height: .8; color: var(--giallo); -webkit-text-stroke: 2px var(--blu); }
.stelle { position: relative; display: inline-block; font-size: 17px; letter-spacing: .1em; line-height: 1; }
.stelle__vuote { color: var(--sabbia); }
.stelle__piene { position: absolute; inset: 0; width: var(--voto, 100%); overflow: hidden; white-space: nowrap; color: var(--giallo); }
.recensioni__punteggio .stelle { font-size: 22px; margin-bottom: 10px; }
.voto__fonte { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--grigio); }
.voto__fonte svg { width: 16px; height: 16px; }
.recensioni__lista { display: grid; }
.citazione { position: relative; padding: clamp(26px, 3vw, 38px) 0 clamp(26px, 3vw, 38px) clamp(58px, 6vw, 86px); border-top: 1px solid var(--sabbia); }
.citazione:last-child { border-bottom: 1px solid var(--sabbia); }
.citazione::before { content: "\201C"; position: absolute; left: 0; top: clamp(16px, 2vw, 26px); font-family: var(--titoli); font-size: clamp(90px, 9vw, 132px); line-height: .8; color: var(--giallo); -webkit-text-stroke: 2px var(--blu); }
.citazione blockquote { font-family: var(--titoli); font-size: clamp(28px, 2.8vw, 42px); line-height: 1.08; letter-spacing: .01em; color: var(--inchiostro); }
.citazione figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; font-size: 13.5px; color: var(--grigio); }
.citazione .stelle { font-size: 13px; }
.citazione__nome { font-weight: 600; color: var(--inchiostro); }
.citazione__g { display: inline-block; width: 15px; height: 15px; margin-right: 7px; vertical-align: -2px; }
@media (max-width: 860px) {
  .recensioni { grid-template-columns: 1fr; gap: 36px; }
  .recensioni__numero { font-size: 110px; }
  .citazione::before { -webkit-text-stroke-width: 1.5px; }
}


/* ---------- FASCIA OFFERTE WHATSAPP ---------- */
/* sezione WhatsApp: fondo giallo come il logo, scritte giganti che scorrono dietro */
.offerte { position: relative; overflow: hidden; background: var(--giallo); color: var(--inchiostro); }
.offerte > .wrap { position: relative; z-index: 1; }
.offerte__nastri { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding-block: clamp(8px, 2vw, 28px); pointer-events: none; }
.nastro { white-space: nowrap; font-family: var(--titoli); font-size: clamp(110px, 16vw, 260px); line-height: .85; text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px rgba(0, 18, 196, .16); }
.nastro--pieno { color: rgba(255, 255, 255, .4); -webkit-text-stroke-width: 0; }
/* testi e bottone a sinistra, telefono a destra; su telefono: testo, telefono, bottone */
.offerte__colonna { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "testo telefono" "azioni telefono"; column-gap: clamp(40px, 6vw, 100px); }
.offerte__testo { grid-area: testo; align-self: end; }
.offerte__azioni { grid-area: azioni; align-self: start; margin-top: 32px; }
.offerte h2 { max-width: 14ch; color: var(--blu-notte); font-size: clamp(48px, 5.6vw, 92px); line-height: .92; }
/* come il logo ma al contrario: bianco, contorno blu e ombra piena */
.in-stile-bianco { color: #fff; -webkit-text-stroke: 2px var(--blu); text-shadow: -4px 4px 0 var(--blu); }
.offerte__tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blu); }
.offerte__tag svg { width: 15px; height: 15px; fill: currentColor; }
.offerte__testo > p:not(.offerte__tag) { margin-top: 22px; max-width: 40ch; font-size: 18px; color: rgba(21, 20, 15, .85); }
.offerte__azioni { display: flex; flex-direction: column; align-items: flex-start; }
.offerte__azioni .btn--whatsapp { min-height: 64px; padding: 16px 32px; font-size: clamp(14px, 1.4vw, 18px); font-weight: 700; letter-spacing: .06em; }
.offerte__azioni .btn--whatsapp .icona { width: 28px; height: 28px; }
/* illustrazione: telefono con la chat del gruppo (fatta in HTML, nessuna foto da licenziare) */
.telefono-scena { grid-area: telefono; justify-self: center; align-self: center; position: relative; }
/* cornice blu con l'ombra piena del logo, un po' inclinato */
.chat-demo { width: 310px; padding: 9px; border-radius: 44px; background: var(--blu); box-shadow: -14px 14px 0 var(--blu-notte); rotate: 3deg; }
/* notifiche che fluttuano intorno al telefono */
.notifica { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; width: max-content; max-width: 250px; padding: 10px 14px 10px 10px; border: 2px solid var(--blu); border-radius: 10px; background: #fff; box-shadow: -5px 5px 0 var(--blu); font-size: 12.5px; line-height: 1.3; color: var(--grigio); }
.notifica b { display: block; font-size: 13.5px; font-weight: 600; color: var(--inchiostro); }
.notifica svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 8px; background: var(--verde-wa-originale); fill: #fff; }
.notifica__conta { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blu); color: #fff; font-family: var(--titoli); font-size: 20px; }
.notifica--prima { top: 14%; right: 72%; rotate: -5deg; }
.notifica--seconda { bottom: 13%; left: 74%; rotate: 4deg; }
.chat-demo__schermo { position: relative; display: flex; flex-direction: column; min-height: 620px; overflow: hidden; border-radius: 35px; background: #EFE7DD; }
.chat-demo__schermo::before { content: ""; position: absolute; top: 11px; left: 50%; z-index: 2; width: 84px; height: 24px; margin-left: -42px; border-radius: 999px; background: #05070F; }
.chat-demo__testa { display: flex; align-items: center; gap: 8px; padding: 44px 10px 12px; background: #fff; border-bottom: 1px solid rgba(0, 0, 0, .06); flex-shrink: 0; }
.chat-demo__testa > span { flex: 1; min-width: 0; }
.chat-demo__indietro { width: 15px; height: 24px; flex: none; fill: none; stroke: #075E54; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-demo__menu { width: 18px; height: 24px; flex: none; fill: #54656F; }
.chat-demo__testa img { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.chat-demo__testa strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; color: #111B21; white-space: nowrap; }
.chat-demo__testa small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.35; color: #667781; white-space: nowrap; }
.chat-demo__messaggi { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 10px 10px 12px; background-image: radial-gradient(ellipse at 30% 35%, transparent 5px, rgba(124, 111, 91, .07) 5px, rgba(124, 111, 91, .07) 6px, transparent 6px), radial-gradient(rgba(124, 111, 91, .1) 1px, transparent 1px); background-size: 32px 38px, 16px 19px; }
.chat-demo__giorno { align-self: center; margin-bottom: 6px; padding: 4px 10px; border-radius: 6px; background: #fff; font-size: 11.5px; color: #54656F; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); }
.bolla { align-self: flex-start; max-width: 86%; padding: 6px 8px 7px 9px; border-radius: 8px; background: #fff; color: #111B21; font-size: 13.5px; line-height: 1.4; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); }
.bolla b { display: block; margin-bottom: 1px; font-size: 12.5px; font-weight: 600; color: var(--blu); }
.bolla time { float: right; position: relative; top: 6px; margin-left: 12px; font-size: 10.5px; color: #667781; }
.bolla--foto { width: 86%; padding: 3px 3px 7px; }
.bolla--foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; margin-bottom: 5px; }
.bolla--foto span { display: block; padding-inline: 6px; }
.bolla--offerta { position: relative; flex-shrink: 0; width: 94%; max-width: 94%; padding: 5px; border-top-left-radius: 0; font-size: 12px; line-height: 1.4; }
.bolla--offerta::before { content: ""; position: absolute; top: 0; left: -6px; border-top: 7px solid #fff; border-left: 7px solid transparent; }
.bolla--offerta .bolla__autore { padding: 2px 5px 4px; color: #C15722; font-size: 11px; }
.bolla--offerta > img { width: 100%; height: 130px; object-fit: cover; border-radius: 5px; }
.bolla__copy { padding: 7px 4px 3px; }
.bolla__copy p + p { margin-top: 9px; }
.bolla__copy strong { font-weight: 700; }
.bolla__copy time { display: block; float: none; position: static; margin: 4px 0 0; text-align: right; font-size: 10px; }
.chat-demo__avviso { flex-shrink: 0; padding: 10px 16px; background: #F6F6F6; color: #667781; font-size: 10px; text-align: center; line-height: 1.4; border-top: 1px solid #ddd; }
.chat-demo__home { flex-shrink: 0; height: 17px; background: #F6F6F6; }
.chat-demo__home::after { content: ""; display: block; width: 95px; height: 4px; margin: 4px auto 0; border-radius: 8px; background: #111B21; }
@media (max-width: 860px) {
  /* anche su telefono: testo a sinistra, telefono a destra (in scala), bottone sotto a tutta riga */
  .offerte__colonna { grid-template-columns: 1fr auto; grid-template-areas: "testo telefono" "azioni azioni"; column-gap: 28px; }
  .offerte__testo > p:not(.offerte__tag) { font-size: 15px; }
  .offerte__azioni { margin-top: 28px; }
  .offerte__azioni .btn--whatsapp { width: 100%; padding-inline: 18px; white-space: normal; text-align: center; }
  .chat-demo { width: 270px; }
  .chat-demo__schermo { min-height: 590px; }
  .telefono-scena { zoom: .5; }
  .notifica { display: none; }
}

.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 130;
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  background: var(--verde-wa-originale); color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .14);
  opacity: 0; visibility: hidden; translate: 0 20px;
  transition: transform .3s var(--ease), opacity .4s, visibility .4s, translate .4s var(--ease);
}
html.wa-visibile .wa-float { opacity: 1; visibility: visible; translate: 0 0; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.menu-aperto .wa-float { opacity: 0; visibility: hidden; }

/* ---------- POPUP OFFERTA DEL MOMENTO ---------- */
.promo { position: fixed; inset: 0; z-index: 450; display: grid; place-items: center; padding: 20px; }
.promo[hidden] { display: none; }
.promo__sfondo { position: absolute; inset: 0; background: rgba(10, 16, 51, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.promo__finestra { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); width: min(100%, 820px); max-height: calc(100svh - 40px); overflow: auto; background: var(--bianco); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.promo__foto { aspect-ratio: 4 / 5; background: var(--avorio); }
.promo__foto img { width: 100%; height: 100%; object-fit: cover; }
.promo__testo { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 48px); }
.promo__etichetta { align-self: flex-start; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; background: var(--giallo); color: var(--blu-notte); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.promo h2 { font-size: clamp(36px, 3.6vw, 52px); }
.promo__prezzo { margin-top: 8px; font-family: var(--titoli); font-size: 44px; line-height: 1; color: var(--blu); }
.promo__formato { margin-top: 6px; font-size: 15px; color: var(--testo); }
.promo__formato s { color: var(--grigio); }
.promo__formato strong { color: var(--blu); }
.promo__descrizione { margin-top: 14px; }
.promo__azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.promo__azioni .btn { white-space: normal; text-align: center; line-height: 1.3; padding-block: 8px; }
.promo__no { padding: 0; border: 0; background: none; font: 500 13px var(--sans); color: var(--grigio); text-decoration: underline; cursor: pointer; }
.promo__no:hover { color: var(--inchiostro); }
.promo__chiudi { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--sabbia); background: rgba(255, 255, 255, .92); font-size: 22px; line-height: 1; color: var(--inchiostro); }
.promo__chiudi:hover { background: var(--inchiostro); color: #fff; }
html.promo-aperto .wa-float { opacity: 0; visibility: hidden; }

/* banner flottante dell'offerta, in alto a sinistra sotto l'header (lo segue quando l'header si nasconde) */
:root { --offerta-top: 14px; --offerta-h: 0px; }
.promo-float {
  position: fixed; top: calc(var(--header-h) + var(--offerta-top)); left: max(18px, env(safe-area-inset-left)); z-index: 130;
  width: min(360px, calc(100vw - 36px));
  background: var(--bianco); border: 1px solid var(--sabbia);
  box-shadow: 0 12px 34px rgba(10, 16, 51, .16);
  transition: translate .6s var(--ease), box-shadow .3s, opacity .3s, visibility .3s;
}
.promo-float:hover { box-shadow: 0 16px 40px rgba(10, 16, 51, .24); }
.promo-float__apri { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 44px 10px 10px; border: 0; background: none; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.promo-float__apri:focus-visible { outline: 2px solid var(--blu); outline-offset: -2px; }
.promo-float__foto { flex: none; width: 64px; height: 80px; overflow: hidden; background: var(--avorio); }
.promo-float__foto img { width: 100%; height: 100%; object-fit: cover; scale: 1.7; transform-origin: 50% 58%; }  /* ingrandita sulle bottiglie */
.promo-float__testo { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.promo-float__etichetta { padding: 3px 8px; border-radius: 999px; background: var(--giallo); color: var(--blu-notte); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.promo-float__titolo { margin-top: 6px; font-family: var(--titoli); font-size: 22px; line-height: 1.05; color: var(--inchiostro); }
.promo-float .promo-prezzo { margin-top: 2px; font-size: 26px; }
.promo-float__conto { margin-top: 4px; font-size: 12px; color: var(--grigio); }
.promo-float__conto [data-conto], .promo__scade [data-conto] { font-weight: 600; color: var(--inchiostro); font-variant-numeric: tabular-nums; white-space: nowrap; }
.promo-float__chiudi { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 20px; line-height: 1; color: var(--grigio); cursor: pointer; transition: background-color .25s, color .25s; }
.promo-float__chiudi:hover { background: var(--inchiostro); color: #fff; }
.promo-float__chiudi:focus-visible { outline: 2px solid var(--blu); outline-offset: 1px; }
html.promo-aperto .promo-float, .menu-aperto .promo-float { opacity: 0; visibility: hidden; }
/* finché il banner è visibile, i titoli in cima alla pagina gli lasciano spazio (--offerta-h lo calcola promo.js) */
html.con-offerta .testata { padding-top: calc(var(--header-h) + var(--offerta-top) + var(--offerta-h) + clamp(28px, 3vw, 44px)); }
html.offerta-in-chiusura .testata, html.offerta-in-chiusura .hero__contenuto { transition: padding-top .6s var(--ease); }
/* prezzo: pieno barrato e prezzo in offerta */
.promo-prezzo { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--titoli); line-height: 1; }
.promo-prezzo strong { font-weight: 400; color: var(--blu); }
.promo-prezzo__pieno { font-size: .62em; color: var(--grigio); text-decoration-thickness: 1px; }
.promo__scade { margin-top: 14px; font-size: 13.5px; color: var(--grigio); }
@media (max-width: 700px) {
  :root { --offerta-top: 8px; }
  .promo-float { left: 12px; width: calc(100vw - 24px); }
  .promo-float__apri { gap: 12px; padding: 8px 40px 8px 8px; }
  .promo-float__foto { width: 44px; height: 56px; }
  /* titolo e prezzo sulla stessa riga per tenere il banner basso */
  .promo-float__testo { display: grid; grid-template-columns: auto 1fr; align-items: baseline; justify-items: start; column-gap: 10px; }
  .promo-float__etichetta, .promo-float__conto { grid-column: 1 / -1; }
  .promo-float__etichetta { font-size: 9px; padding: 2px 7px; }
  .promo-float__titolo { margin-top: 5px; font-size: 19px; }
  .promo-float .promo-prezzo { margin-top: 5px; font-size: 21px; }
  .promo-float__conto { margin-top: 3px; font-size: 11.5px; }
  .promo-float__chiudi { top: 50%; right: 4px; translate: 0 -50%; }
}
@media (max-width: 700px) {
  .promo { padding: 14px; }
  .promo__finestra { grid-template-columns: 1fr; }
  .promo__foto { aspect-ratio: auto; height: 34svh; }
  .promo__foto img { object-position: 50% 48%; }
  .promo__testo { padding: 22px 20px 24px; }
  .promo h2 { font-size: 34px; }
}

/* ---------- GRUPPO WHATSAPP ---------- */
.gruppo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.gruppo h2 { max-width: 24ch; }
.gruppo p { margin-top: 10px; color: var(--grigio); }

/* ---------- CHI SIAMO ---------- */
/* apertura: titolo enorme a sinistra, foto dell'insegna a tutta altezza a destra */
.apertura { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 100svh; }
.apertura__testo { grid-column: 1; grid-row: 1; align-self: center; padding: calc(var(--header-h) + 48px) clamp(24px, 4vw, 64px) 56px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
html.con-offerta .apertura__testo { padding-top: calc(var(--header-h) + var(--offerta-top) + var(--offerta-h) + 32px); }
.apertura__foto { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; margin: 0; background: var(--avorio); }
.apertura__foto img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; }
.apertura__titolo { font-size: clamp(64px, 8vw, 136px); line-height: .88; }
.apertura__titolo .riga > span { white-space: nowrap; }
/* scritta come il logo: giallo, contorno blu e ombra piena */
.in-stile-logo { color: var(--giallo); -webkit-text-stroke: 2px var(--blu); text-shadow: -5px 5px 0 var(--blu); padding-left: 6px; }
.apertura__sotto { margin-top: 26px; max-width: 36ch; font-size: 17px; color: var(--grigio); }

/* la nostra storia: impaginazione da rivista */
.racconto__griglia { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); }
.racconto__attacco { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.35; color: var(--inchiostro); }
.racconto__colonne { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); margin-top: clamp(28px, 3vw, 44px); font-size: 17px; }
.racconto mark { color: inherit; padding: 0 .08em; background: linear-gradient(transparent 58%, var(--giallo) 58%, var(--giallo) 92%, transparent 92%) left / 100% 100% no-repeat; }

/* il nostro banco: fascia blu notte con blocchi foto e testo alternati */
.banco-chi { background: var(--blu-notte); color: rgba(247, 245, 240, .8); }
.banco-chi h2 { color: var(--avorio); }
.banco-righe { display: grid; gap: clamp(64px, 9vw, 130px); margin-top: clamp(40px, 5vw, 72px); }
.banco-riga { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.banco-riga:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.banco-riga:nth-child(even) .banco-riga__foto { order: 2; }
.banco-riga__foto { position: relative; overflow: hidden; aspect-ratio: 5 / 4; margin: 0; background: #121a44; }
.banco-riga__foto img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.banco-riga h3 { color: #fff; font-size: clamp(38px, 3.8vw, 60px); line-height: .95; }
.banco-riga p { margin-top: 16px; max-width: 42ch; font-size: 17px; line-height: 1.65; }

@media (max-width: 860px) {
  /* apertura su telefono: la foto riempie lo schermo dietro al testo */
  .apertura { position: relative; isolation: isolate; display: flex; align-items: flex-end; }
  .apertura__foto { position: absolute; inset: 0; z-index: -1; }
  .apertura__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 24%), linear-gradient(0deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .65) 42%, rgba(0, 0, 0, 0) 72%); }
  .apertura__testo { align-self: flex-end; width: 100%; padding: calc(var(--header-h) + 40px) var(--gutter) 48px; }
  .apertura__titolo { color: #fff; font-size: clamp(64px, 18vw, 96px); }
  .apertura__sotto { color: rgba(255, 255, 255, .85); }
  .racconto__griglia, .racconto__colonne { grid-template-columns: 1fr; }
  .racconto__colonne { gap: 16px; }
  .banco-riga, .banco-riga:nth-child(even) { grid-template-columns: 1fr; gap: 0; }
  .banco-riga:nth-child(even) .banco-riga__foto { order: 0; }
  .banco-riga__foto { aspect-ratio: 4 / 3.4; }  /* il numero si sovrappone al bordo della foto */
  .banco-riga h3 { margin-top: 22px; }
}

/* linea del tempo verticale: di base un elenco con la linea a sinistra;
   con le animazioni (classe is-animata da main.js) la sezione si ferma e mostra una tappa alla volta */
.storia-breve h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.rotaia { display: none; }
.tappe { --rientro: clamp(40px, 5vw, 64px); position: relative; list-style: none; display: grid; gap: clamp(40px, 6vw, 72px); padding-left: var(--rientro); }
.tappe::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--blu); }
.tappa { position: relative; }
.tappa::before { content: ""; position: absolute; left: calc(var(--rientro) * -1); top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--giallo); box-shadow: 0 0 0 3px var(--bianco), 0 0 0 5px var(--blu); }
.tappa__titolo { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grigio); }
.tappa__anno {
  --riempi: 100%;
  display: block; margin-top: 8px; padding-bottom: .14em;  /* spazio per le gambe delle g di "Oggi" */
  font-family: var(--titoli); font-size: clamp(88px, 13vw, 200px); line-height: .86; letter-spacing: .01em;
  color: transparent; -webkit-text-stroke: 2px var(--blu);
  background: linear-gradient(var(--giallo), var(--giallo)) left bottom / 100% var(--riempi) no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
.tappa__testo { margin-top: 6px; max-width: 34ch; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; color: var(--inchiostro); }

.storia-breve.is-animata { padding-block: 0; }
.is-animata .storia-breve__scena { display: flex; flex-direction: column; justify-content: center; height: 100svh; padding-top: calc(var(--header-h) + 12px); padding-bottom: 32px; }
.is-animata h2 { margin-bottom: clamp(20px, 4vh, 44px); }
.is-animata .storia-breve__corpo { display: grid; grid-template-columns: clamp(76px, 10vw, 150px) minmax(0, 1fr); height: min(58vh, 540px); }
.is-animata .rotaia { display: block; position: relative; }
.rotaia__linea { position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--sabbia); }
.rotaia__linea i { position: absolute; inset: 0; background: var(--blu); transform-origin: top; transform: scaleY(0); }
.rotaia__fermata { position: absolute; left: 0; top: var(--pos); translate: 0 -50%; padding-left: 30px; font-family: var(--titoli); font-size: 22px; line-height: 1; color: var(--grigio); transition: color .3s; }
.rotaia__fermata::before { content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 16px; height: 16px; border-radius: 50%; background: var(--bianco); box-shadow: 0 0 0 2px var(--sabbia); transition: background-color .3s, box-shadow .3s; }
.rotaia__fermata.is-attiva { color: var(--blu); }
.rotaia__fermata.is-attiva::before { background: var(--giallo); box-shadow: 0 0 0 2px var(--blu); }
.is-animata .tappe { display: block; height: 100%; padding-left: 0; }
.is-animata .tappe::before, .is-animata .tappa::before { display: none; }
.is-animata .tappa { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 800px) {
  /* linea del tempo su telefono */
  .tappa__anno { -webkit-text-stroke-width: 1.5px; }
  .is-animata .storia-breve__corpo { grid-template-columns: 64px minmax(0, 1fr); }
  .rotaia__fermata { padding-left: 24px; font-size: 17px; }
  .rotaia__fermata::before { width: 12px; height: 12px; }
  .rotaia__linea { left: 5px; }
}

/* ---------- CONTATTI ---------- */
/* tutta in una schermata: informazioni a sinistra, mappa a destra fino al bordo */
.contatti-pagina { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; }
.contatti-pagina__info {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + clamp(20px, 3vh, 40px)) clamp(24px, 5vw, 80px) clamp(28px, 4vh, 48px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.contatti-pagina h1 { font-size: clamp(52px, 6.4vw, 96px); line-height: .9; }
.contatti-pagina .stato { margin-top: 18px; font-size: 15px; }
.contatti-griglia { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3.4vh, 36px) 32px; margin-top: clamp(24px, 4.5vh, 48px); }
.voce--larga { grid-column: 1 / -1; }
.voce h2 { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--grigio); margin-bottom: 8px; }
.voce__valore { font-family: var(--titoli); font-size: clamp(26px, 2.3vw, 36px); line-height: 1.05; letter-spacing: .01em; color: var(--inchiostro); text-decoration: none; }
a.voce__valore { color: var(--blu); transition: color .3s; }
a.voce__valore:hover { color: var(--inchiostro); }
.tabella-orari { width: 100%; max-width: 520px; border-collapse: collapse; font-size: 15px; }
.tabella-orari th, .tabella-orari td { padding: 9px 0; border-bottom: 1px solid var(--sabbia); text-align: left; vertical-align: top; font-weight: 400; }
.tabella-orari th { color: var(--inchiostro); width: 46%; padding-right: 16px; }
.tabella-orari tr.is-oggi th, .tabella-orari tr.is-oggi td { color: var(--blu); }
.tabella-orari tr.is-oggi th { font-weight: 600; }
.contatti-pagina .nota { margin-top: 8px; font-size: 13px; }
.contatti-pagina__fondo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.contatti-pagina__azioni { display: flex; gap: 14px; padding-left: 4px; }
.mappa { position: relative; overflow: hidden; background: var(--avorio); }
.mappa__cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 12px; padding: clamp(20px, 3vw, 40px); padding-left: clamp(24px, 3vw, 44px); isolation: isolate; }
.mappa__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mappa__cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .7)); }
.mappa__privacy { font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.mappa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) {
  /* su telefono: informazioni compatte in alto, la mappa riempie quello che resta della schermata */
  .contatti-pagina { display: flex; flex-direction: column; height: 100svh; min-height: 620px; }
  .contatti-pagina__info { justify-content: flex-start; padding: calc(var(--header-h) + 16px) var(--gutter) 20px; }
  .contatti-pagina h1 { font-size: 52px; }
  .contatti-pagina .stato { margin-top: 10px; font-size: 13px; }
  .contatti-griglia { gap: 16px 20px; margin-top: 18px; }
  .voce h2 { margin-bottom: 4px; font-size: 11px; }
  .voce__valore { font-size: 24px; }
  .tabella-orari { font-size: 13.5px; }
  .tabella-orari th, .tabella-orari td { padding: 5px 0; }
  .contatti-pagina .nota { display: none; }
  .contatti-pagina__azioni { flex: 1; }
  .contatti-pagina__azioni .btn { flex: 1; padding-inline: 10px; }
  .mappa { flex: 1; min-height: 150px; }
  .mappa__cover { padding: 16px var(--gutter) 20px; }
  .mappa__privacy { display: none; }
}

/* ---------- FOOTER ---------- */
.footer { background: var(--blu-notte); color: rgba(247, 245, 240, .75); padding-block: clamp(56px, 6vw, 88px) 96px; font-size: 14.5px; } /* spazio in fondo per il bottone WhatsApp */
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 40px; border-bottom: 1px solid rgba(247, 245, 240, .14); }
.footer__logo { width: 170px; }
.footer__colonne { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-block: 36px; }
.footer__colonne h3 { margin-bottom: 8px; font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 245, 240, .45); }
.footer__colonne a { text-decoration: none; transition: color .3s; }
.footer__colonne a:hover { color: var(--giallo); }
.footer__pagine { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer__base { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 24px; padding-top: 24px; border-top: 1px solid rgba(247, 245, 240, .14); font-size: 13px; color: rgba(247, 245, 240, .5); }
.footer__base a { color: var(--avorio); text-decoration: none; }
.footer__base a:hover { color: #F15A24; }
.footer__legali { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.footer__legali button { padding: 0; border: 0; background: none; font: inherit; color: var(--avorio); cursor: pointer; }
.footer__legali button:hover { color: #F15A24; }

/* pagine legali */
.testo-legale { max-width: 74ch; }
.testo-legale h2 { font-size: clamp(26px, 2.2vw, 34px); margin: 44px 0 12px; }
.testo-legale p + p { margin-top: 1em; }
.testo-legale ul { list-style: disc; padding-left: 1.2em; margin-top: .6em; }
.testo-legale li + li { margin-top: .4em; }
.testo-legale a { color: var(--blu); }
.testo-legale button { padding: 0; border: 0; background: none; font: inherit; color: var(--blu); text-decoration: underline; cursor: pointer; }
.tabella-cookie { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14.5px; }
.tabella-cookie th, .tabella-cookie td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--sabbia); text-align: left; vertical-align: top; }
.tabella-cookie th { color: var(--inchiostro); font-weight: 600; }
.scorri-tabella { overflow-x: auto; }
@media (max-width: 700px) { .footer__colonne { grid-template-columns: 1fr; gap: 22px; } }

/* le colonne delle griglie non devono allargarsi oltre lo schermo */
.recensioni > *, .racconto__griglia > *, .banco-riga > * { min-width: 0; }

/* ---------- MOVIMENTO RIDOTTO ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
