/*
  PuntoMare — one-page
  Ordine: hero video → l'app (download + come funziona) → recensioni →
  chi siamo → FAQ → CTA → footer. Nessuna dipendenza (niente Bootstrap
  né tema templatemo).

  Separatori: ogni sezione con .has-wave disegna sopra di sé un'onda del
  proprio colore (--bg), sovrapposta al fondo della sezione precedente.
  Altezza onda (--wave-h) e padding verticale (--section-y) sono gli
  stessi ovunque, così gli intervalli tra le sezioni restano uniformi.
*/

:root {
  /* Palette PuntoMare */
  --blue: #084e84;
  --blue-600: #0a5fa3;
  --blue-800: #063a61;
  --navy: #0d2847;
  --abyss: #0a1628;
  --sun: #f6c932;
  --sun-300: #ffd84f;
  --paper: #f5f9fc;
  --foam: #dcebf6;
  --white: #ffffff;
  --ink: #16293c;
  --ink-muted: #5b6b7b;
  --on-dark: #ffffff;
  --on-dark-muted: #a9bccd;
  --line: #e1e9f0;

  --font: "DM Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  /* Spaziatura (scala 8pt) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-12: 96px;
  --section-y: clamp(80px, 10vw, 128px);
  --wave-h: clamp(40px, 6vw, 88px);
  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 40px);

  --radius-s: 12px;
  --radius-m: 24px;
  --radius-l: 32px;
  --radius-pill: 999px;

  --shadow-card: 0 8px 28px rgba(13, 40, 71, 0.08);
  --shadow-lift: 0 18px 44px rgba(13, 40, 71, 0.16);
  --shadow-phone: 0 30px 60px rgba(10, 22, 40, 0.28);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/*---------------------------------------
  BASE
-----------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

body.no-scroll {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 var(--s-2);
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-800);
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--sun);
  color: var(--navy);
}

/* Parole in evidenza nei titoli: scritte "a mano" in giallo, come un
   appunto a matita sopra il titolo. Caveat è più piccolo a parità di
   corpo: +18%. Usarle solo su fondi scuri (hero, navy, blu): sul chiaro
   il giallo non ha contrasto sufficiente. */
h1 em,
h2 em {
  display: inline-block;
  font-family: var(--font-hand);
  font-style: normal;
  font-weight: 700;
  font-size: 1.18em;
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--sun);
  transform: rotate(-2deg);
  transform-origin: left center;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/*---------------------------------------
  TIPOGRAFIA DI SEZIONE
-----------------------------------------*/
.eyebrow {
  margin: 0 0 var(--s-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow--light {
  color: var(--sun);
}

.section-title {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.section-lead {
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--ink-muted);
  margin: var(--s-3) 0 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto var(--s-8);
  text-align: center;
}

/*---------------------------------------
  SEZIONI + ONDE
-----------------------------------------*/
.section {
  --bg: var(--paper);
  position: relative;
  background: var(--bg);
  padding-block: var(--section-y);
}

.section--paper { --bg: var(--paper); }
.section--white { --bg: var(--white); }
.section--navy  { --bg: var(--navy); }
.section--blue  { --bg: var(--blue); }

.has-wave::before,
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: var(--wave-h);
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,55 C240,20 480,75 720,45 C960,15 1200,70 1440,40 L1440,90 L0,90 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,55 C240,20 480,75 720,45 C960,15 1200,70 1440,40 L1440,90 L0,90 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Onde alternate: una sì e una no specchiate, per un ritmo meno ripetitivo */
.section.has-wave:nth-of-type(odd)::before {
  transform: scaleX(-1);
}

/*---------------------------------------
  BOTTONI, BADGE, CHIP
-----------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  font: 700 15px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background-color 180ms;
}

.btn--sun {
  background: var(--sun);
  color: var(--navy);
}

.btn--sun:hover {
  background: var(--sun-300);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(246, 201, 50, 0.35);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}

.store-badges a {
  display: block;
  border-radius: 8px;
  transition: transform 180ms var(--ease-out);
}

.store-badges a:hover {
  transform: translateY(-2px);
}

.store-badges img {
  height: 48px;
  width: auto;
}

.store-badges--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-1);
}

.store-badges--stack img {
  height: 44px;
}

.store-badges--center {
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.stars {
  color: var(--sun);
  letter-spacing: 2px;
}

.stars__off {
  opacity: 0.3;
}

.link-arrow {
  font-weight: 700;
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  display: inline-block;
  margin-left: 6px;
  transition: transform 180ms var(--ease-out);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/*---------------------------------------
  HEADER
-----------------------------------------*/
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--on-dark);
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.45), rgba(10, 22, 40, 0));
  transition: background-color 300ms ease, box-shadow 300ms ease;
}

.site-header.is-solid,
.site-header.is-open {
  background: var(--navy);
  box-shadow: 0 6px 24px rgba(10, 22, 40, 0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  height: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header__brand {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.site-header__brand img {
  height: 34px;
  width: auto;
}

/* Hamburger */
.site-header__toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--on-dark);
  transition: transform 250ms var(--ease-out), opacity 200ms;
}

.is-open .site-header__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .site-header__toggle span:nth-child(2) { opacity: 0; }
.is-open .site-header__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile a pannello */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: calc(var(--header-h) + var(--s-4)) var(--gutter) var(--s-6);
  background: var(--navy);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 250ms ease, transform 250ms var(--ease-out), visibility 0s 250ms;
}

.is-open .site-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 250ms ease, transform 250ms var(--ease-out);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  display: block;
  padding: 10px 0;
  color: var(--on-dark);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav__list a:hover {
  color: var(--sun);
}

.site-nav__langs {
  display: flex;
  gap: var(--s-1);
}

.lang-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 180ms, background-color 180ms;
}

.lang-btn img {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lang-btn.is-active {
  border-color: var(--sun);
}

.site-nav__cta {
  align-self: flex-start;
}

@media (min-width: 1024px) {
  .site-header__toggle {
    display: none;
  }

  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--s-3);
    padding: 0;
    background: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__list {
    display: flex;
    gap: var(--s-1);
  }

  .site-nav__list a {
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    border-radius: var(--radius-pill);
    transition: background-color 180ms, color 180ms;
  }

  .site-nav__list a:hover {
    color: var(--on-dark);
    background: rgba(255, 255, 255, 0.12);
  }

  .site-nav__langs {
    gap: 2px;
  }

  .lang-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
  }

  .lang-btn img {
    width: 20px;
    height: 14px;
  }

  .site-nav__cta {
    align-self: auto;
  }
}

/*---------------------------------------
  HERO
-----------------------------------------*/
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + var(--s-6)) 0 calc(var(--wave-h) + var(--s-8));
  overflow: hidden;
  color: var(--on-dark);
  background: var(--abyss);
  isolation: isolate;
}

.hero__poster,
.hero__poster img,
.hero__video,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__poster img,
.hero__video {
  object-fit: cover;
}

.hero__poster { z-index: -3; }

/* Il video compare in dissolvenza solo quando parte davvero:
   se il file manca o l'autoplay è bloccato resta il poster */
.hero__video {
  z-index: -2;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__video.is-playing {
  opacity: 1;
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.55) 0%, rgba(10, 22, 40, 0.1) 35%, rgba(10, 22, 40, 0.25) 60%, rgba(13, 40, 71, 0.85) 100%),
    linear-gradient(90deg, rgba(10, 22, 40, 0.55) 0%, rgba(10, 22, 40, 0) 70%);
}

.hero__content {
  max-width: 1200px;
}

.hero__title {
  max-width: 14ch;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--on-dark);
  text-shadow: 0 2px 30px rgba(10, 22, 40, 0.35);
}

.hero__lead {
  max-width: 34rem;
  margin: var(--s-3) 0 var(--s-4);
  font-size: clamp(18px, 1.7vw, 21px);
  color: rgba(255, 255, 255, 0.9);
}

.hero__proof {
  margin: var(--s-3) 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: calc(var(--wave-h) + var(--s-2));
  display: none;
  width: 28px;
  height: 44px;
  margin-left: -14px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--on-dark);
  animation: scroll-cue 1.8s var(--ease-out) infinite;
}

@keyframes scroll-cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

@media (min-width: 768px) and (min-height: 700px) {
  .hero__scroll {
    display: block;
  }
}

/*---------------------------------------
  PASSI NUMERATI (.steps)
  Usati nella pagina previsioni (app-previsioni-onde-vento-mare.php)
-----------------------------------------*/
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
  counter-reset: none;
}

.step {
  position: relative;
  padding: var(--s-4);
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.step:first-child {
  background: var(--blue);
  color: var(--on-dark);
}

.step:first-child h3 {
  color: var(--on-dark);
}

.step:first-child p {
  color: var(--on-dark-muted);
}

.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-3);
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
}

.step h3 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: var(--s-1);
}

.step p {
  margin: 0;
  color: var(--ink-muted);
}



@media (min-width: 900px) {
  .steps {
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: var(--s-4);
  }
}

/*---------------------------------------
  L'APP — come funziona
-----------------------------------------*/
.features {
  display: grid;
  gap: var(--s-12);
  margin-top: var(--section-y);
}

.feature {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}

.feature__text h3 {
  margin: var(--s-2) 0;
  font-size: clamp(28px, 3.2vw, 40px);
  color: var(--navy);
}

.feature__text p {
  color: var(--ink-muted);
  font-size: 18px;
}

.checks {
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 36px;
  color: var(--ink);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--foam) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23084e84' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.feature__media {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: var(--s-4);
}

/* "Sole" morbido dietro al telefono */
.feature__media::before {
  content: "";
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--sun-300) 0%, rgba(246, 201, 50, 0.35) 38%, var(--foam) 70%);
  opacity: 0.75;
}

.feature--reverse .feature__media::before {
  background: radial-gradient(circle at 60% 35%, #8fc4ea 0%, var(--foam) 65%);
}

.phone {
  position: relative;
  width: min(280px, 68vw);
  border: 10px solid var(--abyss);
  border-radius: 46px;
  overflow: hidden;
  background: var(--abyss);
  box-shadow: var(--shadow-phone);
  transform: rotate(-2deg);
  transition: transform 600ms var(--ease-out);
}

.feature--reverse .phone {
  transform: rotate(2deg);
}

.feature:hover .phone {
  transform: rotate(0) translateY(-6px);
}

.phone img {
  width: 100%;
  border-radius: 36px;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--s-8);
  }

  .feature--reverse .feature__text {
    order: 2;
  }
}

/*---------------------------------------
  L'APP — showcase
  Mobile: step impilati, ogni pannello mostra il suo screenshot.
  Desktop: la sezione è alta N × --step-scroll e lo stage resta fermo (sticky);
  js/site.js attiva lo step in base allo scroll e con data-side="flip"
  scambia di lato telefono e testo.
-----------------------------------------*/
.showcase {
  margin-top: var(--s-3);
}

.showcase__media,
.showcase__progress {
  display: none;
}

.showcase__texts {
  display: grid;
  gap: var(--s-12);
}

.showcase__panel h3 {
  margin: var(--s-2) 0;
  font-size: clamp(28px, 3.2vw, 40px);
  color: var(--navy);
}

.showcase__panel p {
  color: var(--ink-muted);
  font-size: 18px;
}

.showcase__mobile-phone {
  margin: var(--s-6) auto 0;
}

@media (min-width: 900px) and (min-height: 640px) {
  /* Corsa di scroll per step: più alta = cambio meno sensibile */
  .showcase {
    --step-scroll: 160vh;
    height: calc(var(--steps, 4) * var(--step-scroll) + 100vh - var(--header-h));
  }

  .showcase__stage {
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
  }

  .showcase__media,
  .showcase__texts {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    transition: transform 900ms var(--ease-out);
  }

  /* Step dispari: testo a sinistra, telefono a destra */
  .showcase__media {
    display: grid;
    place-items: center;
    transform: translateX(100%);
  }

  .showcase__texts {
    align-content: center;
    gap: var(--s-6);
    padding-right: var(--s-6);
    transform: translateX(0);
  }

  /* Step pari: lati scambiati */
  .showcase[data-side="flip"] .showcase__media {
    transform: translateX(0);
  }

  .showcase[data-side="flip"] .showcase__texts {
    padding-right: 0;
    padding-left: var(--s-6);
    transform: translateX(100%);
  }

  .showcase__media::before {
    content: "";
    position: absolute;
    width: min(440px, 90%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--sun-300) 0%, rgba(246, 201, 50, 0.35) 38%, var(--foam) 70%);
    opacity: 0.75;
    /* --p (0→1 dentro lo step, da js/site.js): il cerchio si espande con lo scroll */
    scale: calc(0.88 + var(--p, 0) * 0.18);
    transition: background 900ms ease;
  }

  .showcase[data-side="flip"] .showcase__media::before {
    background: radial-gradient(circle at 60% 35%, #8fc4ea 0%, var(--foam) 65%);
  }

  /* Il telefono si adatta all'altezza dello schermo */
  .showcase__phone {
    width: min(300px, calc((100vh - var(--header-h) - 120px) * 0.46));
    aspect-ratio: 888 / 1920;
    transform: rotate(-2deg);
    /* Il telefono sale piano mentre si scorre (translate è indipendente da
       transform, così non eredita la transizione lenta della rotazione) */
    translate: 0 calc((0.5 - var(--p, 0)) * 48px);
    transition: transform 900ms var(--ease-out);
  }

  .showcase[data-side="flip"] .showcase__phone {
    transform: rotate(2deg);
  }

  .showcase__shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 500ms ease, transform 700ms var(--ease-out);
  }

  .showcase__shot.is-active {
    opacity: 1;
    transform: none;
  }

  /* Pannelli di testo sovrapposti nella stessa cella: si vede solo l'attivo */
  .showcase__panel {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity 450ms ease, transform 600ms var(--ease-out), visibility 0s 450ms;
  }

  .showcase__panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 450ms ease 150ms, transform 600ms var(--ease-out) 150ms;
  }

  .showcase__mobile-phone {
    display: none;
  }

  .showcase__progress {
    grid-area: 2 / 1;
    display: flex;
    gap: var(--s-1);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Segmenti di avanzamento: si riempiono in tempo reale (--fill da JS) */
  .showcase__progress li {
    position: relative;
    flex: 0 0 64px;
    padding-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-muted);
    transition: color 300ms;
  }

  .showcase__progress li::before,
  .showcase__progress li::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    border-radius: 3px;
  }

  .showcase__progress li::before {
    right: 0;
    background: var(--line);
  }

  .showcase__progress li::after {
    width: calc(var(--fill, 0) * 100%);
    background: var(--sun);
  }

  .showcase__progress li.is-active {
    color: var(--navy);
  }

  /* Invito a scorrere, in basso al centro dello stage */
  .showcase__hint {
    position: absolute;
    left: 50%;
    bottom: var(--s-3);
    display: flex;
    align-items: center;
    gap: 10px;
    translate: -50% 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    transition: opacity 400ms ease;
  }

  .showcase.is-done .showcase__hint {
    opacity: 0;
  }

  .showcase__hint-mouse {
    position: relative;
    width: 22px;
    height: 34px;
    border: 2px solid currentColor;
    border-radius: var(--radius-pill);
  }

  .showcase__hint-mouse::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 7px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--sun);
    animation: scroll-cue 1.8s var(--ease-out) infinite;
  }
}

.showcase__hint {
  display: none;
}

/* Schermi bassi (portatili da 13"): testo dello showcase più compatto, così
   anche le lingue con frasi lunghe (DE, FR) stanno nello stage */
@media (min-width: 900px) and (min-height: 640px) and (max-height: 780px) {
  .showcase__texts {
    gap: var(--s-3);
  }

  .showcase__panel h3 {
    margin: 12px 0 var(--s-1);
    font-size: 30px;
  }

  .showcase__panel p {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .showcase__panel .checks {
    margin-top: 12px;
    gap: 8px;
  }

  .showcase__panel .checks li {
    font-size: 15px;
    line-height: 1.5;
  }
}

@media (min-width: 900px) and (min-height: 640px) {
  .showcase__hint {
    display: flex;
  }
}

/*---------------------------------------
  RECENSIONI + NUMERI (navy)
-----------------------------------------*/
.section--navy {
  color: var(--on-dark-muted);
}

.section--navy .section-title {
  color: var(--on-dark);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-bottom: var(--s-8);
  text-align: center;
}

.stat__value {
  display: block;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sun);
  font-variant-numeric: tabular-nums;
}

.stat__star {
  font-size: 0.6em;
  vertical-align: 0.35em;
  margin-left: 2px;
}

.stat__label {
  display: block;
  margin-top: var(--s-1);
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1.4;
}

/* Mobile: carosello orizzontale con scroll-snap. Desktop: griglia */
.reviews {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85%, 360px);
  gap: var(--s-2);
  margin-inline: calc(var(--gutter) * -1);
  padding: var(--s-1) var(--gutter) var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.reviews::-webkit-scrollbar {
  display: none;
}

.review {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin: 0;
  padding: var(--s-4);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  scroll-snap-align: start;
  transition: transform 300ms var(--ease-out), background-color 300ms;
}

.review:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-4px);
}

.review blockquote {
  flex: 1;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--on-dark);
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--on-dark-muted);
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
  font-weight: 700;
}

@media (min-width: 900px) {
  .reviews {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

/*---------------------------------------
  CHI SIAMO
-----------------------------------------*/
.about {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}

.about__text .section-title {
  margin-bottom: var(--s-3);
}

.about__text p {
  color: var(--ink-muted);
  font-size: 18px;
}

.about__text strong {
  color: var(--ink);
}

.about__photo {
  margin: 0;
}

.about__photo img {
  width: 100%;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lift);
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--s-8);
  }
}

.values {
  margin-top: var(--s-12);
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-l);
  background: var(--sun);
  color: var(--navy);
}

.values__title {
  max-width: 18ch;
  margin-bottom: var(--s-1);
  font-size: clamp(28px, 3.4vw, 40px);
}

.values__lead {
  margin: 0 0 var(--s-6);
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
}

.values__grid {
  display: grid;
  gap: var(--s-4);
}

.value__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-2);
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.55);
  font-size: 24px;
}

.value h4 {
  margin-bottom: var(--s-1);
  font-size: 20px;
}

.value p {
  margin: 0;
  font-size: 16px;
  color: var(--navy);
  opacity: 0.85;
}

@media (min-width: 600px) {
  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.press {
  margin-top: var(--s-12);
  text-align: center;
}

.press__title {
  margin-bottom: var(--s-4);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Mobile: carosello orizzontale come le recensioni. Desktop: 3 colonne */
.press__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80%, 320px);
  gap: var(--s-2);
  margin: 0 calc(var(--gutter) * -1) var(--s-4);
  padding: var(--s-1) var(--gutter) var(--s-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  text-align: left;
}

.press__grid::-webkit-scrollbar {
  display: none;
}

.press__grid > * {
  scroll-snap-align: start;
}

.press-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--radius-m);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.press-card:hover {
  color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.press-card blockquote {
  flex: 1;
  margin: 0;
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--navy);
}

.press-card__source {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
}

.press-card__source img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

@media (min-width: 900px) {
  .press__grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

/*---------------------------------------
  FAQ
-----------------------------------------*/
.faq {
  display: grid;
  gap: var(--s-6);
}

.faq__head p {
  margin-top: var(--s-3);
  color: var(--ink-muted);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item:first-child {
  border-top: 1px solid var(--line);
}

.faq__item summary {
  position: relative;
  display: block;
  padding: var(--s-3) 56px var(--s-3) 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

/* Icona + che ruota in × */
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 14px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 14px no-repeat,
    var(--paper);
  transition: transform 250ms var(--ease-out), background-color 200ms;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--sun);
}

.faq__item summary:hover {
  color: var(--blue);
}

.faq__answer {
  padding: 0 56px var(--s-3) 0;
  color: var(--ink-muted);
}

.faq__item[open] .faq__answer {
  animation: faq-open 300ms var(--ease-out);
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
}

@media (min-width: 900px) {
  .faq {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--s-8);
    align-items: start;
  }

  .faq__head {
    position: sticky;
    top: calc(var(--header-h) + var(--s-4));
  }
}

/*---------------------------------------
  CTA FINALE (blu)
-----------------------------------------*/
.cta {
  text-align: center;
  padding-bottom: calc(var(--section-y) + var(--wave-h) / 2);
}

.cta .section-title {
  color: var(--on-dark);
}

.cta .section-lead {
  color: var(--on-dark-muted);
  margin-bottom: var(--s-4);
}

/*---------------------------------------
  FOOTER (markup condiviso in footer.php)
-----------------------------------------*/
.footer {
  --bg: var(--navy);
  position: relative;
  padding: var(--s-8) 0 var(--s-4);
  background: var(--bg);
  color: var(--on-dark-muted);
  font-size: 15px;
}

.footer-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-grid {
  display: grid;
  gap: var(--s-6);
}

.footer-logo img {
  height: 34px;
  width: auto;
}

.footer-description {
  max-width: 28ch;
  margin-top: var(--s-2);
  color: var(--on-dark-muted);
}

.footer h4,
.footer h5 {
  margin: 0 0 var(--s-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.footer a {
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 180ms;
}

.footer a:hover {
  color: var(--sun);
}

.footer-links {
  display: grid;
  gap: var(--s-3);
}

.footer-download {
  margin: 0 !important;
}

.social-icons {
  display: flex;
  gap: var(--s-1);
}

.social-icons a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.social-icons a:hover {
  background: var(--sun);
  color: var(--navy);
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contact-item .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--sun);
}

.footer-bottom {
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: var(--s-8);
  }
}

/*---------------------------------------
  RASSEGNA STAMPA
  Muro di card con anteprima verticale dell'articolo (.press-card--thumb)
-----------------------------------------*/
.press-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
}

.press-card--thumb {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.press-card__thumb {
  display: block;
  overflow: hidden;
  background: var(--foam);
}

/* Le anteprime sono screenshot verticali: stesso formato per tutte */
.press-card__thumb img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  object-position: top;
  transition: transform 400ms var(--ease-out);
}

.press-card--thumb:hover .press-card__thumb img {
  transform: scale(1.03);
}

.press-card--thumb .press-card__source {
  padding: 12px var(--s-2);
  color: var(--navy);
}

/* Home, "Dicono di noi": screenshot dell'uscita in cima alla card,
   ritagliato sulla parte alta (testata + titolo), poi fonte, data e invito */
.press-card--preview {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.press-card--preview .press-card__thumb {
  border-bottom: 1px solid var(--line);
}

.press-card--preview .press-card__thumb img {
  aspect-ratio: 4 / 5;
}

.press-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--s-3);
}

.press-card--preview .press-card__source {
  font-size: 16px;
  color: var(--navy);
}

.press-card__date {
  font-size: 14px;
  color: var(--ink-muted);
}

.press-card__cta {
  margin-top: var(--s-1);
  color: var(--blue);
  font-size: 15px;
}

.press-card--preview:hover .press-card__cta::after {
  transform: translateX(4px);
}

.press-card--preview:hover .press-card__thumb img {
  transform: scale(1.03);
}

@media (min-width: 700px) {
  .press-wall {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
  }
}

@media (min-width: 1024px) {
  .press-wall {
    grid-template-columns: repeat(4, 1fr);
  }
}

/*---------------------------------------
  ARTICOLI SPIAGGE (spiagge-*.html)
  Riquadri .callout dentro .prose: niente margini extra ai bordi
  e variante centrata per la CTA finale con i badge degli store
-----------------------------------------*/
.callout > :first-child {
  margin-top: 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout--center {
  text-align: center;
}

.callout--center p {
  max-width: 560px;
  margin-inline: auto;
}

.callout .store-badges {
  margin-top: var(--s-3);
}

/* Pagina 404 (4xx.html): bottoni affiancati, a capo su mobile */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

/*---------------------------------------
  PRIVACY POLICY (info-privacy.php)
  Una sezione per lingua: il server marca con .is-active quella scelta con
  le bandiere dell'header, le altre restano nascoste.
-----------------------------------------*/
.privacy [data-content-lang]:not(.is-active) {
  display: none;
}

/* Titolo dell'informativa in ogni lingua: h2 (l'unico h1 è nella testata) */
.privacy .privacy__title {
  margin-top: 0;
  margin-bottom: var(--s-2);
  font-size: clamp(28px, 3.4vw, 38px);
  color: var(--navy);
}

/* Tabella finalità/basi giuridiche: scorre in orizzontale su schermi stretti */
.privacy__table {
  overflow-x: auto;
}

.privacy__table table {
  min-width: 560px;
}

.privacy__company {
  margin-top: var(--s-8);
  text-align: center;
  font-size: 14px;
}

/*---------------------------------------
  ELIMINAZIONE ACCOUNT (account-deletion/)
-----------------------------------------*/
.deletion-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.deletion-step {
  text-align: center;
}

.deletion-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-2);
  border-radius: 50%;
  background: var(--blue);
  color: var(--on-dark);
  font-weight: 700;
  font-size: 20px;
}

.deletion-step img {
  width: 100%;
  max-width: 280px;
  margin: var(--s-2) auto 0;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
}

.deletion-step__icon {
  margin: var(--s-4) auto 0;
  color: var(--navy);
}

.callout.deletion-note {
  max-width: 960px;
  margin-inline: auto;
}

.callout.deletion-note p:last-child {
  margin-bottom: 0;
}

/*---------------------------------------
  PAGINE INTERNE
  Testata navy (.page-hero) seguita da una .section.has-wave
-----------------------------------------*/
.page-hero {
  padding: calc(var(--header-h) + var(--s-8)) 0 calc(var(--wave-h) + var(--s-6));
  background: var(--navy);
  color: var(--on-dark-muted);
}

.page-hero h1 {
  max-width: 20ch;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--on-dark);
}

.page-hero__lead {
  max-width: 40rem;
  margin: var(--s-3) 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
}

.page-hero__meta {
  margin: var(--s-2) 0 0;
  font-size: 14px;
}

/* Testo lungo: privacy, articoli, guide */
.prose {
  max-width: 760px;
  margin-inline: auto;
  color: var(--ink);
}

.prose h2 {
  margin: var(--s-8) 0 var(--s-2);
  font-size: clamp(26px, 3vw, 34px);
  color: var(--navy);
}

.prose h3 {
  margin: var(--s-6) 0 var(--s-2);
  font-size: clamp(20px, 2.2vw, 24px);
  color: var(--navy);
}

.prose h4 {
  margin: var(--s-4) 0 var(--s-1);
  font-size: 18px;
  color: var(--navy);
}

.prose > :first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-muted);
}

.prose strong {
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--s-2);
  padding-left: var(--s-3);
}

.prose li {
  margin-bottom: var(--s-1);
}

.prose img {
  width: 100%;
  margin: var(--s-4) 0;
  border-radius: var(--radius-m);
}

.prose figure {
  margin: var(--s-4) 0;
}

.prose figcaption {
  margin-top: var(--s-1);
  font-size: 14px;
  color: var(--ink-muted);
}

.prose table {
  width: 100%;
  margin: var(--s-3) 0;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--navy);
}

.prose blockquote {
  margin: var(--s-4) 0;
  padding: var(--s-1) 0 var(--s-1) var(--s-3);
  border-left: 4px solid var(--sun);
}

/* Riquadro evidenziato dentro il testo (CTA, avvisi) */
.callout {
  margin: var(--s-6) 0;
  padding: var(--s-4);
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.callout--blue {
  background: var(--blue);
  color: var(--on-dark);
}

.callout--blue h2,
.callout--blue h3,
.callout--blue p {
  color: var(--on-dark);
}

/* Griglia di card generica */
.card-grid {
  display: grid;
  gap: var(--s-3);
}

.card {
  padding: var(--s-4);
  border-radius: var(--radius-m);
  background: var(--white);
  border: 1px solid var(--line);
}

.card h3 {
  margin-bottom: var(--s-1);
  font-size: 20px;
  color: var(--navy);
}

.card p {
  color: var(--ink-muted);
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*---------------------------------------
  FORM
-----------------------------------------*/
.form {
  display: grid;
  gap: var(--s-2);
}

.form__row {
  display: grid;
  gap: var(--s-2);
}

@media (min-width: 600px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition: border-color 180ms, box-shadow 180ms;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 78, 132, 0.15);
}

.btn--blue {
  background: var(--blue);
  color: var(--on-dark);
}

.btn--blue:hover {
  background: var(--blue-800);
  color: var(--on-dark);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.form__note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Pagina contatti */
.contact {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}

.contact__info .card h3:not(:first-child) {
  margin-top: var(--s-3);
}

.contact__info .card p {
  margin: 0;
}

.btn--whatsapp {
  margin-top: var(--s-4);
  background: #25d366;
  color: var(--white);
}

.btn--whatsapp:hover {
  background: #1ebe5b;
  color: var(--white);
  transform: translateY(-2px);
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: 1.5fr 1fr;
    gap: var(--s-8);
  }
}

.notice {
  padding: 12px 16px;
  border-radius: var(--radius-s);
  font-weight: 700;
}

.notice--ok {
  background: #e3f6ea;
  color: #166534;
}

.notice--error {
  background: #fde8e8;
  color: #b91c1c;
}

/*---------------------------------------
  MOTION: reveal on-scroll
-----------------------------------------*/
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal--d1 { transition-delay: 120ms; }
.js .reveal--d2 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal {
    transform: none;
  }

  .hero__video {
    display: none;
  }

  .showcase__phone {
    translate: none !important;
  }

  .showcase__media::before {
    scale: 1 !important;
  }
}
