/* =====================================================
   OLOAP — Stylesheet
   Palette: ocean-deep · ocean-mid · ocean-light · teal
            sea-foam · sand · sand-light · coral
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── Custom Properties ─────────────────────────────── */
:root {
  --ocean-deep:  #0A3D62;
  --ocean-mid:   #1B6CA8;
  --ocean-light: #5BB8D4;
  --teal:        #2EBFA3;
  --sea-foam:    #A8E6CF;
  --sand:        #E8D5B0;
  --sand-light:  #FFF8F0;
  --coral:       #E8724A;
  --white:       #FCFCFC;
  /* Sfondo ESATTO delle foto prodotto (campionato col contagocce sulle immagini
     normalizzate). Usato in tutte le sezioni con braccialetti così che foto e
     pagina sembrino un unico piano, senza il "rettangolo" dell'immagine. */
  --background-product: #FAFAFA;
  --text-dark:   #1A1A2E;
  --text-mid:    #4A5568;
  --text-light:  #8A9BB0;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --radius:    16px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(10, 61, 98, 0.08);
  --shadow-lg:  0 12px 48px rgba(10, 61, 98, 0.15);
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --t:          0.3s var(--ease);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; overflow-x: hidden; }
body  {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--sand-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;     /* doppia barriera anti scroll laterale (iOS Safari) */
  position: relative;
  width: 100%;
}
img     { max-width: 100%; display: block; }
a       { color: inherit; text-decoration: none; }
ul      { list-style: none; }
button  { cursor: pointer; border: none; background: none; font-family: inherit; touch-action: manipulation; }

/* ── Utilities ─────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.label {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ocean-light);
  margin-bottom: 14px;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: var(--t);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--white);
  color: var(--ocean-deep);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.24);
}

.btn--ocean {
  background: var(--ocean-mid);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(27,108,168,0.38);
}
.btn--ocean:hover {
  background: var(--ocean-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27,108,168,0.46);
}

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

/* ── Navigation ────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  padding-top: calc(22px + env(safe-area-inset-top, 0px));
  transition: var(--t);
}

.nav--scrolled,
.nav--light {
  background: rgba(255,248,240,0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(10,61,98,0.07);
  padding: 14px 0;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--white);
  transition: color var(--t);
}
.nav--scrolled .nav__logo,
.nav--light    .nav__logo { color: var(--ocean-deep); }

/* ── Actions & Language Switcher in nav ────────────────── */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--t);
}
.nav--scrolled .lang-switcher,
.nav--light    .lang-switcher {
  color: var(--text-mid);
}

.lang-btn {
  padding: 4px 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity var(--t), color var(--t);
  color: inherit;
  font-weight: inherit;
}
.lang-btn:hover {
  opacity: 1;
}
.lang-btn.active {
  opacity: 1;
  font-weight: 700;
  color: var(--white);
}
.nav--scrolled .lang-btn.active,
.nav--light    .lang-btn.active {
  color: var(--ocean-deep);
}

.lang-divider {
  opacity: 0.35;
  user-select: none;
}

/* ── Cart icon in nav ──────────────────────────────────── */
.nav__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.85);
  transition: color var(--t), opacity var(--t);
}
.nav--scrolled .nav__cart,
.nav--light    .nav__cart { color: var(--ocean-deep); }
.nav__cart:hover { opacity: 0.7; }

.cart-badge {
  position: absolute;
  top: -1px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--coral);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.cart-badge--on {
  opacity: 1;
  transform: scale(1);
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh; /* evita il salto della barra URL su iOS/Android */
  /* Sfondo: foto acquario + velo scuro per la leggibilità del titolo bianco */
  background:
    linear-gradient(180deg,
      rgba(3, 22, 40, 0.50) 0%,
      rgba(4, 30, 51, 0.28) 42%,
      rgba(8, 52, 84, 0.55) 100%),
    url('../foto/acquario.jpg?v=4') center center / cover no-repeat;
  background-color: var(--ocean-deep);  /* fallback durante il caricamento */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* iOS Safari: overflow:hidden NON clippa i layer composited (will-change/
     transform) spinti fuori dal viewport → scroll-x. clip-path forza il taglio
     orizzontale. Bottom -2px lascia respirare il raccordo onda. */
  clip-path: inset(0 0 -2px 0);
  padding: 120px 24px 100px;
}

/* Radial highlight */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 38%, rgba(91,184,212,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 75% 15%, rgba(46,191,163,0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Sfondo video provvisorio (window.OLOAP_HERO_VIDEO) ──────
   Copre l'hero col video; niente pesci, niente braccialetto, niente
   testo. Per tornare ai pesciolini basta svuotare il flag in index.html. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero--video::after { display: none; }   /* via il velo radiale sopra al video */

/* Rising bubbles */
.hero__bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  animation: bubbleRise linear infinite;
}
.bubble:nth-child(1) { width:18px; height:18px; left:8%;  animation-duration:13s; animation-delay:0s;   }
.bubble:nth-child(2) { width:10px; height:10px; left:22%; animation-duration: 9s; animation-delay:-4s;  }
.bubble:nth-child(3) { width:26px; height:26px; left:38%; animation-duration:16s; animation-delay:-7s;  }
.bubble:nth-child(4) { width: 8px; height: 8px; left:55%; animation-duration: 8s; animation-delay:-1.5s;}
.bubble:nth-child(5) { width:20px; height:20px; left:72%; animation-duration:12s; animation-delay:-5s;  }
.bubble:nth-child(6) { width:14px; height:14px; left:89%; animation-duration:10s; animation-delay:-3s;  }

@keyframes bubbleRise {
  0%   { transform: translateY(0) translateX(0);    opacity: 0; }
  5%   { opacity: 0.85; }
  45%  { transform: translateY(-45vh) translateX(8px); }
  55%  { transform: translateY(-55vh) translateX(-6px); }
  95%  { opacity: 0.3; }
  100% { transform: translateY(-110vh) translateX(4px); opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  pointer-events: none;
}
.hero__content .btn { pointer-events: auto; }

.hero__eyebrow {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 17vw, 10.5rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--white);
  line-height: 0.88;
  margin-bottom: 10px;
  text-shadow: 0 2px 60px rgba(0,0,0,0.12);
}

.hero__divider {
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,0.28);
  margin: 24px auto 28px;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 48px;
}

/* Bracciale-O nel wordmark hero
   object-fit:cover + border-radius:50% = ritaglio circolare centrato sull'anello */
.hero__title-o {
  display: inline-block;
  height: 1.08em;
  width: 1.08em;
  object-fit: cover;
  object-position: center 48%;
  border-radius: 50%;
  vertical-align: -0.18em;  /* abbassata per allineare con le altre lettere */
  margin: 0 0.22em 0 0;     /* margin-right = letter-spacing titolo → spaziatura coerente */
}

/* ── Home: braccialetto protagonista (al posto del wordmark OLOAP) ──
   Niente scritta "OLOAP": resta solo il braccialetto, GIGANTE e centrato.
   width:auto + height:auto + max-* → l'immagine si adatta in proporzione
   al box disponibile: mai distorta, mai ritagliata, sempre intera. */
.hero__title--bracelet {
  line-height: 0;
  letter-spacing: 0;
  margin: 0 auto 16px;
  text-shadow: none;
}
.hero__title--bracelet .hero__title-o {
  display: block;
  width: auto;
  height: auto;
  /* Immagine RITAGLIATA (foto/bracciale-o-grande.png): niente bordi vuoti,
     quindi il braccialetto visibile riempie tutto il box. Riservo solo
     ~205px a eyebrow/tagline/CTA → braccialetto enorme e testo accostato. */
  max-height: calc(100vh - 245px);
  max-width: 92vw;          /* fit proporzionale: niente distorsione né tagli */
  border-radius: 0;         /* niente ritaglio circolare */
  vertical-align: middle;
  margin: 0 auto;
  filter: drop-shadow(0 22px 60px rgba(0,0,0,0.34));
}
/* Hero home: testo accostato al braccialetto (gap piccoli ma armoniosi).
   Tolgo il trattino decorativo e comprimo i margini → eyebrow sopra e
   tagline/CTA sotto restano vicini al braccialetto e il bottone resta visibile. */
.hero:has(.hero__title--bracelet) { padding-top: 56px; padding-bottom: 30px; }
.hero:has(.hero__title--bracelet) .hero__eyebrow { margin-bottom: 12px; }
.hero:has(.hero__title--bracelet) .hero__divider { display: none; }
.hero:has(.hero__title--bracelet) .hero__tagline { margin-bottom: 14px; }

/* Ondeggio "in acqua": una volta atterrato, il braccialetto si muove con
   leggere deformazioni (bob + skew + scala non uniforme), come influenzato
   dalla corrente. Avviato via JS aggiungendo la classe .is-water. */
@keyframes bracWater {
  0%, 100% { transform: translateY(0)    rotate(0deg)    skewX(0deg)    scale(1,     1);    }
  20%      { transform: translateY(-5px) rotate(0.5deg)  skewX(0.9deg)  scale(1.004, 0.991); }
  40%      { transform: translateY(2px)  rotate(-0.4deg) skewX(-0.7deg) scale(0.996, 1.010); }
  60%      { transform: translateY(-3px) rotate(0.35deg) skewX(0.5deg)  scale(1.006, 0.994); }
  80%      { transform: translateY(3px)  rotate(-0.3deg) skewX(-0.6deg) scale(0.997, 1.006); }
}
.hero__title--bracelet .hero__title-o.is-water {
  animation: bracWater 7s ease-in-out infinite;
  transform-origin: center 42%;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero__title--bracelet .hero__title-o.is-water { animation: none; }
}

.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
  pointer-events: none;
}
.hero__wave svg { display: block; width: 100%; }

/* ── Sezione Significato (tra hero e prodotti) ─────── */
.meaning {
  background: var(--background-product);   /* stesso bianco dell'onda hero: nessuno stacco */
  position: relative;
  padding: 84px 0 56px;
}
.meaning__inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.meaning__wave {
  display: block;
  width: 108px;
  height: 12px;
  color: var(--ocean-light);
  margin: 18px auto 26px;
  opacity: 0.8;
}
.meaning__lead {
  max-width: 620px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.3vw, 1.38rem);
  line-height: 1.6;
  color: var(--text-mid);
}
.meaning__triad {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 740px;
  margin: 46px auto 0;
}
@media (min-width: 720px) {
  .meaning__triad { grid-template-columns: repeat(3, 1fr); gap: 36px; }
}
.meaning__item-ttl {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocean-mid);
  margin-bottom: 10px;
}
.meaning__item-txt {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-mid);
}
.meaning__close {
  max-width: 560px;
  margin: 48px auto 30px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.55;
  color: var(--ocean-deep);
}
@media (max-width: 600px) {
  .meaning { padding: 48px 0 36px; }
  .meaning__triad { gap: 26px; margin-top: 36px; }
  .meaning__close { margin: 36px auto 26px; }
}

/* ── Brand Section ─────────────────────────────────── */
.brand {
  padding: 108px 0;
  background: var(--sand-light);
}

.brand__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 860px) {
  .brand__inner { grid-template-columns: 1.15fr 0.85fr; }
}

.brand__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--ocean-deep);
  line-height: 1.15;
  margin-bottom: 28px;
}

.brand__body {
  color: var(--text-mid);
  font-size: 0.94rem;
  line-height: 1.92;
  margin-bottom: 16px;
}

/* ── Foto storia ad arco ───────────────────────────────
   Per cambiare forma modifica solo --foto-r:
     arco perfetto   →  9999px 9999px 0 0   (default)
     cerchio         →  50%
     angoli morbidi  →  20px
   ──────────────────────────────────────────────────── */
.brand__foto {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand__foto-wrap {
  --foto-r: 50%;
  width: 280px;
  height: 280px;
  border-radius: var(--foto-r);
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(168, 130, 80, 0.13);
}

.brand__foto-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

@media (max-width: 859px) {
  /* Colonna singola: testo "Nati a Lipari" centrato + immagine più grande */
  .brand__text { text-align: center; }
  .brand__foto-wrap {
    width: min(70vw, 360px);
    height: min(70vw, 360px);
  }
}

/* ── Collection ────────────────────────────────────── */
.collection {
  padding: 88px 0 120px;
  background: var(--background-product);  /* == sfondo delle foto: nessun rettangolo */
  position: relative;
}


.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--ocean-deep);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: 1 colonna */
  gap: 28px;
}
@media (min-width: 600px) {
  .products-grid { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 900px) {
  .products-grid { grid-template-columns: repeat(3,1fr); }
}

/* ── Product Card — floating on white ─────────────── */
/* Le foto hanno sfondo bianco: niente box, il braccialetto
   sembra appoggiato direttamente sulla pagina. */
.product-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: transform var(--t);
}

.product-card:hover:not(.product-card--coming-soon) {
  transform: translateY(-8px);
}

.product-card--coming-soon {
  opacity: 0.55;
  pointer-events: none;
}

/* Contenitore immagine prodotto — UNIFORME per tutte le card.
   Le foto sono normalizzate (1200×1200, sfondo #fff, bracciale centrato e
   alla stessa dimensione) → quadrato perfetto, nessuno scarto fra varianti. */
.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--background-product);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* immagine quadrata in box quadrato: fit esatto, mai deformata */
}

.product-card__info {
  padding: 14px 16px 24px;
  text-align: center;
  margin-top: auto; /* testo sempre incollato in fondo */
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ocean-deep);
  margin-bottom: 4px;
}

.product-card__price {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.product-card__cta {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ocean-mid);
  transition: color var(--t), letter-spacing var(--t);
}
.product-card:hover .product-card__cta {
  color: var(--ocean-deep);
  letter-spacing: 0.1em;
}
.product-card__cta--muted { color: var(--text-light); }

/* ── Footer ────────────────────────────────────────── */
.footer {
  background: var(--ocean-deep);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  margin-bottom: 56px;
}
@media (min-width: 600px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--white);
  display: block;
  margin-bottom: 10px;
}

.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  opacity: 0.45;
}

.footer h4 {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ocean-light);
  margin-bottom: 18px;
}

.footer a {
  display: block;
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 10px;
  transition: opacity var(--t);
}
.footer a:hover { opacity: 1; }

.footer__contact p {
  font-size: 0.85rem;
  margin-bottom: 7px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  text-align: center;
  font-size: 0.72rem;
  opacity: 0.28;
  letter-spacing: 0.05em;
}

/* ── Breadcrumb ────────────────────────────────────── */
.breadcrumb {
  margin-top: 68px;
  padding: 14px 0;
  font-size: 0.76rem;
  color: var(--text-light);
  background: var(--white);
  border-bottom: 1px solid rgba(10,61,98,0.06);
  letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--ocean-mid); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-dark); }
.breadcrumb__sep { margin: 0 6px; }

/* ── Product Page ──────────────────────────────────── */
.product-page {
  padding: 32px 0 80px;
  background: var(--background-product);  /* galleria e pagina = un unico piano */
}

/* Mobile-first: colonna singola */
.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* Desktop: due colonne */
@media (min-width: 860px) {
  .product-page    { padding: 48px 0 100px; }
  .product-layout  {
    /* Galleria ~30% più grande dell'info (era 1fr 1fr): contenitore
       immagine dal 50% al 65% della larghezza, gap invariato. */
    grid-template-columns: 1.3fr 0.7fr;
    gap: 72px;
    align-items: start;
  }
}

/* ── Gallery ───────────────────────────────────────── */
.gallery__main {
  aspect-ratio: 1;          /* quadrato come le foto normalizzate */
  background: var(--background-product);  /* == sfondo foto: nessun rettangolo */
  border: none;
  border-radius: var(--radius);
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

/* Stessa logica delle card: immagine quadrata in box quadrato.
   Nessun transform/scale → al cambio variante l'immagine NON salta. */
.gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}
.gallery__main-img.loading { opacity: 0; }

/* ── Product Info ──────────────────────────────────── */
.product-info { padding-top: 4px; }

.product-info__collection {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ocean-light);
  margin-bottom: 10px;
}

.product-info__name {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 400;
  color: var(--ocean-deep);
  line-height: 1.05;
  margin-bottom: 10px;
}

.product-info__price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 32px;
}

/* ── Variant Selectors ─────────────────────────────── */
.variant-selectors {
  margin-bottom: 28px;
}

/* Titolo-sezione del gruppo selettori */
.variant-group {
  margin-bottom: 0;
}

/* Separatore tra i due gruppi */
.variant-group + .variant-group {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(10,61,98,0.07);
}

.variant-selector { margin-bottom: 32px; }

.variant-selector__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 12px;
}
.variant-selector__label strong {
  color: var(--ocean-deep);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
}

/* Due selettori (pesce + cordino): separatore visivo */
.variant-selector + .variant-selector {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(10,61,98,0.07);
}

.variant-selector__swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Swatch PESCE: forma circolare ── */
.swatch {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--t);
  flex-shrink: 0;
}
.swatch:hover:not(.swatch--disabled) { transform: scale(1.18); }

/* ── Swatch CORDINO: forma circolare a "o" (anello) ──
   Simula il bracciale con un cerchio colorato vuoto all'interno. */
.swatch--cord {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: transparent !important;
  border: 4px solid transparent;
}

/* Stato attivo: anello doppio + checkmark ✓
   Indicatore SOLO via box-shadow (non occupa spazio) e nessuna scala:
   dimensioni identiche a quelle normali → zero layout shift. */
.swatch.active {
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--ocean-deep), 0 2px 8px rgba(0,0,0,0.15);
}
.swatch.active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  pointer-events: none;
  border-radius: 50%;
}
/* Per colori chiari il ✓ deve essere scuro */
.swatch--light.active::after {
  color: var(--ocean-deep);
  text-shadow: none;
}

/* Combinazione non disponibile */
.swatch--disabled {
  opacity: 0.25;
  cursor: not-allowed;
  filter: grayscale(0.6);
  transform: none !important;
}

/* Il ✓ sul swatch cord ha colore ocean-deep per contrasto sul vuoto */
.swatch--cord.active::after {
  color: var(--ocean-deep);
  text-shadow: none;
}

/* ── Product Details ───────────────────────────────── */
.product-info__description {
  font-size: 0.91rem;
  color: var(--text-mid);
  line-height: 1.88;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(10,61,98,0.07);
}

.product-info__details { margin-bottom: 32px; }

details {
  border-bottom: 1px solid rgba(10,61,98,0.07);
}

summary {
  padding: 18px 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--ocean-light);
  transition: transform var(--t);
  flex-shrink: 0;
  line-height: 1;
}
details[open] > summary::after { transform: rotate(45deg); }

details > *:not(summary) {
  margin: 0 0 20px;
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.78;
}
details li {
  list-style: disc;
  margin-left: 18px;
  margin-bottom: 6px;
}

.product-info__note {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-light);
  margin-top: 14px;
  letter-spacing: 0.06em;
}

/* ── Mobile product-page overrides ────────────────── */
@media (max-width: 859px) {

  /* Info: meno spazio sopra, heading più compatto */
  .product-info { padding-top: 0; }
  .product-info__name  { font-size: clamp(1.8rem, 6vw, 2.4rem); margin-bottom: 6px; }
  .product-info__price { font-size: 1.25rem; margin-bottom: 24px; }

  /* Selettori: label più leggibile, spaziatura pollice-friendly */
  .variant-selector         { margin-bottom: 24px; }
  .variant-selector__label  { font-size: 0.72rem; margin-bottom: 10px; }
  .variant-selector__swatches { gap: 14px; }

  /* Swatch pesce: 44 × 44 px (area di tocco minima Apple/Google HIG) */
  .swatch {
    width: 44px;
    height: 44px;
  }

  /* Swatch cordino: circolare anche su mobile */
  .swatch--cord {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border-width: 5px; /* Spessore del bordo leggermente maggiore su mobile */
  }

  /* ✓ centrato nelle nuove dimensioni */
  .swatch.active::after { font-size: 15px; }

  /* Accordion: tocco più facile */
  summary { padding: 20px 0; font-size: 0.85rem; }

  /* CTA: minHeight garantito, testo leggibile, bel margine inferiore */
  .btn--full {
    min-height: 52px;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
  }

  .product-info__description { font-size: 0.88rem; }
}

/* ── Hero Icons — Effetto acquario ─────────────────── */
/* NESSUN z-index sul container → nessun nuovo stacking context.
   Gli slot con z-index:2 (layer "near") emergono sopra
   .hero__content (z-index:1). Gli slot z-index:0 restano dietro. */
.hero__icons {
  position: absolute;
  inset: 0;
  pointer-events: none; /* i singoli slot riattivano pointer-events */
  overflow: hidden; /* clipping pesci/tartarughe/polpo al bordo hero — fix iOS Safari */
  clip-path: inset(0); /* hard-clip composited: il banco/scatter non sfora mai (iOS) */
}
.hero__icons img { -webkit-tap-highlight-color: transparent; }

/* Ogni icona è un'immagine gestita interamente via JS.
   Solo le proprietà statiche sono qui; tutto il resto
   (opacity, filter, transform) è scritto dall'animation loop. */
.hero-icon {
  display: block;
  height: auto;
  cursor: pointer;
  /* Hit area generosa: l'utente può toccare l'icona mentre si muove */
  padding: 14px;
  margin: -14px;
  box-sizing: content-box;
}

.hero-icon:focus-visible {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ── Fade-in animation ─────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: le card prodotto restano FERME durante lo scroll.
   Niente translate reveal (causava l'effetto "immagini che si allontanano"):
   solo un fade d'opacità, posizione statica. */
@media (max-width: 600px) {
  .products-grid .fade-in,
  .products-grid .fade-in.visible {
    transform: none;
    transition: opacity 0.5s ease;
  }

  /* 1 colonna centrata: immagine grande (~90vw) al centro, testo centrato.
     aspect-ratio:1 (dalla base) → altezza proporzionale, mai infinita. */
  .product-card           { align-items: center; }
  .product-card__img-wrap { width: 90vw; max-width: 90vw; }
  .product-card__info     { width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   CART DRAWER
   ══════════════════════════════════════════════════════════ */

/* Overlay sfondo */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 40, 70, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.cart-overlay--on {
  opacity: 1;
  pointer-events: auto;
}

/* Pannello drawer */
.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100vw);
  background: var(--white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: -6px 0 40px rgba(10, 61, 98, 0.14);
}
.cart-drawer--open { transform: translateX(0); }

body.cart-open { overflow: hidden; }

/* Header */
.cart-drawer__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(10, 61, 98, 0.07);
  flex-shrink: 0;
}
.cart-drawer__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--ocean-deep);
}
.cart-drawer__close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-mid);
  transition: background var(--t), color var(--t);
}
.cart-drawer__close:hover {
  background: rgba(10, 61, 98, 0.07);
  color: var(--ocean-deep);
}

/* Body scrollabile */
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
  -webkit-overflow-scrolling: touch;
}

/* Footer fisso */
.cart-drawer__foot {
  padding: 18px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(10, 61, 98, 0.07);
  flex-shrink: 0;
  background: var(--white);
}

/* ── Stato vuoto ─────────────────────────────────────────── */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  gap: 16px;
  text-align: center;
}
.cart-empty__ico { font-size: 2.8rem; opacity: 0.4; }
.cart-empty__msg {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-mid);
}
.cart-empty__link { padding: 12px 26px; margin-top: 4px; }

/* ── Riga prodotto ───────────────────────────────────────── */
.cart-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(10, 61, 98, 0.06);
}
.cart-row:last-child { border-bottom: none; }

.cart-row__img {
  width: 64px; height: 64px;
  flex-shrink: 0;
  object-fit: cover;   /* immagine quadrata: fit esatto, coerente con le card */
  border-radius: 6px;
  background: var(--background-product);
}

.cart-row__main {
  flex: 1;
  min-width: 0;
}

/* Riga nome + X: flex space-between, X non può mai andare fuori schermo */
.cart-row__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 3px;
}

.cart-row__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ocean-deep);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Pulsante rimozione — area tap 44×44 px (WCAG mobile-first) */
.cart-row__del {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  border-radius: 50%;
  transition: background var(--t), color var(--t);
}
.cart-row__del:hover {
  background: rgba(232, 114, 74, 0.1);
  color: var(--coral);
}

.cart-row__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.cart-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}

/* Riga prezzo + stepper quantità */
.cart-row__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cart-row__price {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Selettore quantità */
.cart-row__qty {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--sand-light);
  border-radius: 100px;
  padding: 4px 8px;
  flex-shrink: 0;
}
.cart-qty-btn {
  width: 26px; height: 26px;
  min-width: 26px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--ocean-deep);
  transition: background var(--t);
}
.cart-qty-btn:hover { background: rgba(10, 61, 98, 0.1); }
.cart-qty-num {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
  color: var(--text-dark);
}

/* ── Totale + CTA ────────────────────────────────────────── */
.cart-tot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.cart-tot-row--grand {
  font-size: 0.95rem;
  color: var(--text-dark);
  padding-top: 10px;
  margin-top: 6px;
  margin-bottom: 16px;
  border-top: 1px solid rgba(10, 61, 98, 0.08);
}
.cart-tot-row--grand strong {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ocean-deep);
}
.cart-checkout-btn { min-height: 50px; }
.cart-ship {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ── Checkout placeholder ────────────────────────────────── */
.cart-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 4px 0;
}
.cart-confirm__wave { font-size: 2.2rem; }
.cart-confirm__ttl {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ocean-deep);
}
.cart-confirm__msg {
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.cart-confirm__msg a { color: var(--ocean-mid); text-decoration: underline; }
.cart-confirm__list {
  width: 100%;
  list-style: none;
  padding: 10px 0;
  border-top: 1px solid rgba(10, 61, 98, 0.07);
  border-bottom: 1px solid rgba(10, 61, 98, 0.07);
  text-align: left;
}
.cart-confirm__list li {
  font-size: 0.79rem;
  color: var(--text-mid);
  padding: 3px 0;
}
.cart-confirm__tot {
  font-size: 0.9rem;
  color: var(--text-dark);
}
.cart-confirm__tot strong { font-weight: 700; color: var(--ocean-deep); }

/* ── Form dati spedizione ────────────────────────────────── */
.cart-checkout-form { padding: 4px 0 8px; }

.cart-checkout-form__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ocean-deep);
  margin-bottom: 18px;
}

.cart-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.cart-form-row--cap { grid-template-columns: 100px 1fr; }

.cart-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.cart-form-row .cart-form-field { margin-bottom: 0; }

.cart-form-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.cart-form-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid rgba(10, 61, 98, 0.15);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none;
  appearance: none;
}
.cart-form-input::placeholder { color: var(--text-light); }
.cart-form-input:focus {
  outline: none;
  border-color: var(--ocean-light);
  box-shadow: 0 0 0 3px rgba(91, 184, 212, 0.15);
}
.cart-form-input--error {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232, 114, 74, 0.12);
}

.cart-form-total {
  font-size: 0.88rem;
  color: var(--text-mid);
  text-align: center;
  margin-bottom: 2px;
}
.cart-form-total strong { font-weight: 700; color: var(--ocean-deep); font-size: 1rem; }

.cart-back-btn {
  display: block;
  width: 100%;
  padding: 8px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  transition: color var(--t);
}
.cart-back-btn:hover { color: var(--ocean-mid); }

/* ══════════════════════════════════════════════════════════
   iPhone & Small Mobile Optimisation (≤ 480px)
   Covers iPhone SE, iPhone 14/15/16, iPhone Plus/Pro Max
   ══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* ── Safe-area: notch & home indicator ────────────────── */
  body {
    padding-top:    env(safe-area-inset-top, 0px);
    padding-left:   env(safe-area-inset-left, 0px);
    padding-right:  env(safe-area-inset-right, 0px);
  }

  /* ── Container: tighter padding on small screens ─────── */
  .container { padding: 0 16px; }

  /* ── Navigation ──────────────────────────────────────── */
  .nav { padding: 14px 0; padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .nav--scrolled,
  .nav--light  { padding: 10px 0; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .nav__inner  { padding: 0 16px; }
  .nav__logo   { font-size: 1.2rem; letter-spacing: 0.14em; }
  .nav__actions { gap: 10px; }

  /* Switcher lingua: più compatto */
  .lang-switcher { font-size: 0.64rem; gap: 1px; }
  .lang-btn { padding: 6px 5px; } /* tap target ≥ 44px height with line-height */

  /* Icona carrello: garantiamo 44×44 tap area */
  .nav__cart { width: 44px; height: 44px; }

  /* ── Hero ─────────────────────────────────────────────── */
  .hero {
    padding: 100px 16px 80px;
  }
  .hero__eyebrow { font-size: 0.5rem; letter-spacing: 0.2em; margin-bottom: 14px; }
  .hero__title   { font-size: clamp(3.4rem, 18vw, 5rem); letter-spacing: 0.16em; }
  .hero__title-o { height: 0.95em; width: 0.95em; }
  .hero__divider { margin: 16px auto 20px; }
  .hero__tagline { font-size: 1rem; margin-bottom: 32px; line-height: 1.5; }
  .btn--primary  { padding: 14px 28px; font-size: 0.8rem; }

  /* ── Brand (La nostra storia) ────────────────────────── */
  .brand { padding: 64px 0; }
  .brand__inner { gap: 36px; }
  .brand__title { font-size: 1.7rem; margin-bottom: 18px; }
  .brand__body  { font-size: 0.88rem; line-height: 1.8; }
  .brand__foto-wrap { width: min(80vw, 320px); height: min(80vw, 320px); }

  /* ── Collection (compatta: 2 col, immagini ~45vw) ─────── */
  .collection { padding: 40px 0 48px; }
  .section-header { margin-bottom: 24px; }
  .section-title  { font-size: 1.7rem; }
  .products-grid  { gap: 14px; }

  /* Product cards: contenitore senza padding (foto già normalizzate) */
  .product-card__info     { padding: 8px 6px 14px; }
  .product-card__name     { font-size: 1.05rem; }
  .product-card__price    { font-size: 0.78rem; margin-bottom: 6px; }
  .product-card__cta      { font-size: 0.68rem; }

  /* ── Footer ──────────────────────────────────────────── */
  .footer {
    padding: 48px 0 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .footer__inner  { gap: 32px; margin-bottom: 36px; }
  .footer__logo   { font-size: 1.6rem; }
  .footer h4      { font-size: 0.55rem; margin-bottom: 12px; }
  .footer a       { font-size: 0.8rem; }
  .footer__bottom { font-size: 0.65rem; padding-top: 20px; }

  /* ── Breadcrumb ──────────────────────────────────────── */
  .breadcrumb { margin-top: 52px; padding: 12px 0; font-size: 0.7rem; }

  /* ── Product Page ────────────────────────────────────── */
  .product-page { padding: 20px 0 60px; }
  .product-layout { gap: 20px; }

  /* Gallery: tighter */
  .gallery__main { aspect-ratio: 1; }

  /* Info */
  .product-info__name  { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .product-info__price { font-size: 1.15rem; margin-bottom: 20px; }

  /* Variant selectors */
  .variant-selector { margin-bottom: 20px; }
  .variant-selector__label { font-size: 0.68rem; }
  .variant-selector + .variant-selector { margin-top: 16px; padding-top: 14px; }

  /* Swatches: 48px touch area — Apple HIG minimum */
  .swatch { width: 48px; height: 48px; }
  .swatch--cord { width: 48px; height: 48px; border-width: 5px; }
  .swatch.active::after { font-size: 16px; }
  .variant-selector__swatches { gap: 12px; }

  /* Description & details */
  .product-info__description { font-size: 0.85rem; line-height: 1.75; margin-bottom: 20px; padding-bottom: 20px; }
  summary { padding: 16px 0; font-size: 0.82rem; }
  details > *:not(summary) { font-size: 0.8rem; }

  /* CTA */
  .btn--full { min-height: 54px; font-size: 0.9rem; border-radius: 14px; }
  .product-info__note { font-size: 0.68rem; }

  /* ── Cart drawer ─────────────────────────────────────── */
  .cart-drawer { width: 100vw; }
  .cart-drawer__close { width: 44px; height: 44px; }
  .cart-drawer__hd {
    padding: 16px 16px 14px;
    padding-top: max(16px, env(safe-area-inset-top));
  }
  .cart-drawer__title { font-size: 1.25rem; }
  .cart-drawer__body  { padding: 6px 16px; }
  .cart-drawer__foot  {
    padding: 14px 16px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  /* Cart items */
  .cart-row__img  { width: 56px; height: 56px; }
  .cart-qty-btn   { width: 36px; height: 36px; }
  .cart-row__name { font-size: 0.92rem; }
  .cart-row__meta { font-size: 0.68rem; }
  .cart-row__price { font-size: 0.82rem; }

  /* Checkout form inside drawer */
  .cart-form-row { grid-template-columns: 1fr; gap: 0; }
  .cart-form-row--cap { grid-template-columns: 1fr 1fr; }
  .cart-form-input { padding: 12px 14px; font-size: 16px; } /* 16px prevents iOS zoom on focus */
  .cart-form-label { font-size: 0.62rem; }
  .cart-checkout-btn { min-height: 52px; font-size: 0.88rem; }
}

/* ── Extra-small iPhones: SE (375px) and mini ──────────── */
@media (max-width: 375px) {
  .hero__title   { font-size: 3rem; }
  .nav__logo     { font-size: 1.1rem; }
  .brand__title  { font-size: 1.5rem; }
  .section-title { font-size: 1.5rem; }
  .product-info__name { font-size: 1.5rem; }
  .footer__logo  { font-size: 1.4rem; }

  /* Even tighter layout */
  .container { padding: 0 14px; }
  .nav__inner { padding: 0 14px; }
}

/* ── iOS-specific: prevent auto-zoom on inputs ─────────── */
@supports (-webkit-touch-callout: none) {
  input, select, textarea { font-size: 16px !important; }
}

/* ── Step pagamento PayPal nel carrello ─────────────────── */
.cart-pay-total {
  font-size: 0.95rem;
  margin: 4px 0 20px;
  color: var(--text-dark);
}
.cart-paypal { min-height: 50px; margin-top: 8px; }
.cart-pay-msg { font-size: 0.82rem; margin-top: 12px; text-align: center; }
.cart-pay-msg--err { color: var(--coral); }

/* ── Link legali nel footer ─────────────────────────────── */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 14px;
}
.footer__legal a {
  display: inline;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

/* ── Pagine legali (privacy / cookie / termini / 404) ───── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 0 88px;
  color: var(--text-mid);
}
.legal h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ocean-deep);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.legal__updated {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 40px;
}
.legal h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-dark);
  margin: 38px 0 12px;
}
.legal p, .legal li { font-size: 0.95rem; line-height: 1.7; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--ocean-mid); text-decoration: underline; }
.legal strong { color: var(--text-dark); }
.legal__note {
  background: var(--sand-light);
  border: 1px solid rgba(232,114,74,0.3);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.85rem;
  margin: 24px 0;
}

/* ── 404 ────────────────────────────────────────────────── */
.notfound {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.notfound__code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 16vw, 8rem);
  font-weight: 300;
  color: var(--ocean-light);
  line-height: 1;
}
.notfound h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: var(--ocean-deep);
  margin: 8px 0 14px;
}
.notfound p { color: var(--text-mid); margin-bottom: 28px; }
