/* ============================================
   CUP8 — Paper Cut Fishing Website
   Palette estratta dai reference:
   - Crema:        #FAF3E7
   - Azzurro pale: #C5E4E7
   - Turchese:     #4A9DA8
   - Blu medio:    #2E6E8E
   - Blu scuro:    #1E5F7E
   - Blu profondo: #0D3B5C
   - Koi:          #FF8C42 / #E8743C
   ============================================ */

:root {
  --cream: #FAF3E7;
  --cream-soft: #F5EBE0;
  --sky: #C5E4E7;
  --teal: #4A9DA8;
  --teal-deep: #2E6E8E;
  --blue: #1E5F7E;
  --blue-deep: #0D3B5C;
  --blue-night: #082A47;
  --koi: #FF8C42;
  --koi-deep: #E8743C;
  --shadow-deep: 0 20px 40px -10px rgba(13, 59, 92, 0.35);
  --shadow-soft: 0 10px 25px -5px rgba(13, 59, 92, 0.2);
  --shadow-paper: 0 4px 8px -2px rgba(13, 59, 92, 0.15), 0 2px 4px -1px rgba(13, 59, 92, 0.1);
  --radius: 24px;
  --radius-lg: 36px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--blue-deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain texture overlay */
.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; line-height: 1.1; font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--teal-deep); font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  padding: 8px 16px;
  background: rgba(74, 157, 168, 0.12);
  border-radius: 100px;
  margin-bottom: 24px;
}

.section__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 20px;
  color: var(--blue-deep);
}

.section__lead {
  font-size: 1.1rem;
  color: var(--blue);
  max-width: 580px;
  margin-bottom: 32px;
}

.section__head { margin-bottom: 56px; max-width: 720px; }
.section__head--center { margin: 0 auto 56px; text-align: center; }
.section__head--center .section__lead { margin-left: auto; margin-right: auto; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  /* sopra i controlli/pane di Leaflet (max ~1000) così il menu mobile aperto
     non viene coperto dalla mappa */
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 10px 14px 10px 22px;
  background: rgba(250, 243, 231, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 100px;
  box-shadow: var(--shadow-soft);
  width: calc(100% - 32px);
  max-width: 940px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* -120% non bastava: con top:16px il bordo basso restava ~6px a vista (sottile linea).
   -100% dell'altezza + 24px supera l'offset top → la barra sparisce del tutto. */
.nav.is-hidden { transform: translateX(-50%) translateY(calc(-100% - 24px)); }

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--blue-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
  /* La .nav anima il transform (hide/show su scroll) ED ha backdrop-filter:
     su questo stesso layer Chrome a volte "perde" le lettere del logo (font
     pesante Fraunces) quando la transizione si assesta. Promuovendo il logo
     a layer GPU dedicato il testo si ridisegna a parte → niente lettere sparite. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.nav__logo-img { width: 44px; height: 44px; display: block; border-radius: 50%; flex-shrink: 0; }

.nav__menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}

.nav__menu a {
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s;
}
.nav__menu a:hover { color: var(--teal-deep); }
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--koi);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__menu a:hover::after { transform: scaleX(1); }

.nav__cta {
  background: var(--blue-deep);
  color: var(--cream);
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.3s;
}
.nav__cta:hover { background: var(--koi); transform: translateY(-2px); }

.nav__burger { display: none; margin-left: auto; background: none; border: 0; flex-direction: column; gap: 4px; cursor: pointer; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--blue-deep); border-radius: 2px; }

/* Slot icona profilo nella nav (idratato da forum-auth.js): lo spazio è riservato
   fin dal primo paint — stesse dimensioni dell'avatar (38px) e stesso margin che
   forum-auth applica al volo — così la barra NON slitta a ogni cambio pagina. */
.nav .fauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  min-width: 38px;
  min-height: 38px;
  flex: 0 0 auto;
}
/* Stili base dell'avatar profilo nella nav: servono FIN DAL PRIMO PAINT (il boot
   inline disegna l'icona dalla cache prima che forum-auth.js inietti il suo CSS),
   così l'icona è già giusta e non sparisce/riappare al cambio pagina. Stessi
   valori che forum-auth.js usa, qui solo limitati alla nav. */
.nav .fab__avatar {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #C5E4E7;
  display: grid; place-items: center;
  border: 0; padding: 0; overflow: hidden; cursor: pointer;
  font-family: 'Fraunces', Georgia, serif; font-weight: 700;
  color: #0D3B5C; font-size: 1.05rem;
}
.nav .fab__avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav .fab__avatar--ph { opacity: 0.4; cursor: default; }
.nav .fab__dot {
  position: absolute; top: -3px; right: -3px;
  min-width: 17px; height: 17px; border-radius: 9px;
  background: #FF8C42; color: #fff; font-size: 0.66rem; font-weight: 700;
  display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 0;
}
.btn--primary {
  background: var(--blue-deep);
  color: var(--cream);
  box-shadow: 0 10px 25px -8px rgba(13, 59, 92, 0.5);
}
.btn--primary:hover { background: var(--koi); transform: translateY(-3px); box-shadow: 0 16px 30px -8px rgba(255, 140, 66, 0.5); }

.btn--secondary {
  background: var(--koi);
  color: var(--blue-deep); /* testo navy su arancio: contrasto AA (cream falliva 2.09:1) */
  box-shadow: 0 10px 25px -8px rgba(255, 140, 66, 0.5);
}
.btn--secondary:hover { background: var(--koi-deep); transform: translateY(-3px); }

.btn--ghost {
  background: rgba(250, 243, 231, 0.6);
  backdrop-filter: blur(10px);
  color: var(--blue-deep);
  border: 2px solid rgba(13, 59, 92, 0.15);
}
.btn--ghost:hover { background: var(--cream); border-color: var(--blue-deep); }

/* ============================================
   HERO — DIVING scroll-driven submersion
   ============================================ */
.hero-dive {
  position: relative;
  height: 175vh;             /* extra height drives scroll animation (meno scroll) */
  background: #B8E4F0;
}
.hero-dive__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #B8E4F0 0%, #87CFE3 48%, #4A9FBE 52%, #18527A 100%);
}

/* === SKY === */
.hero-dive__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% -20%, rgba(255, 246, 220, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, #C2E8F4 0%, #9ED7E8 35%, #87CFE3 50%, #87CFE3 100%);
  overflow: hidden;
}
.hero-dive__sun {
  position: absolute;
  top: 12%;
  right: 18%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 200, 0.9) 0%, rgba(255, 220, 160, 0.4) 40%, transparent 70%);
  filter: blur(2px);
}
.cloud {
  position: absolute;
  background: linear-gradient(180deg, #FFFFFF 0%, #EFF8FC 100%);
  border-radius: 100px;
  filter: blur(0.5px);
  opacity: 0.85;
  animation: cloudDrift 80s linear infinite;
}
.cloud--1 { top: 12%; left: 5%; width: 180px; height: 50px; animation-duration: 90s; }
.cloud--2 { top: 22%; left: 35%; width: 240px; height: 60px; animation-duration: 110s; animation-delay: -20s; }
.cloud--3 { top: 8%;  left: 55%; width: 150px; height: 42px; animation-duration: 70s; animation-delay: -40s; }
.cloud--4 { top: 28%; left: 78%; width: 200px; height: 55px; animation-duration: 95s; animation-delay: -15s; }
@keyframes cloudDrift {
  0%   { transform: translateX(-10%); }
  100% { transform: translateX(120%); }
}

/* === UNDERWATER (deep ocean) === */
.hero-dive__water {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 25% at 50% 50%,  rgba(180, 230, 245, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgba(2, 12, 28, 0.55) 0%, transparent 70%),
    linear-gradient(180deg,
      #4DAFD0 0%,
      #4DAFD0 50%,
      #2E8AB0 56%,
      #1B6A95 64%,
      #0F4F7B 74%,
      #093860 84%,
      #062444 94%,
      #03162E 100%
    );
  /* Static fallback clip — JS overrides each frame with a wavy polygon */
  clip-path: polygon(0% 50%, 100% 50%, 100% 100%, 0% 100%);
}

/* Soft surface highlight just below waterline (no stripes) */
.hero-dive__shimmer {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.18) 0%,
    rgba(180,220,235,0.05) 50%,
    transparent 100%);
  filter: blur(3px);
  opacity: 0.6;
  z-index: 3;
}

.hero-dive__rays {
  position: absolute;
  inset: -10% 0 0 0;
  width: 100%;
  height: 110%;
  mix-blend-mode: screen;
  opacity: 0.85;
  z-index: 2;
}
.rays-group {
  transform-origin: 50% 0%;
  animation: raySway 16s ease-in-out infinite;
}
@keyframes raySway {
  0%, 100% { transform: skewX(0deg);   opacity: 0.9; }
  50%      { transform: skewX(-2deg);  opacity: 0.65; }
}

/* === DUST PARTICLES (underwater specks) === */
.dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.speck {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.3) 50%, transparent 80%);
  filter: blur(0.5px);
  animation: speckDrift var(--d) ease-in-out var(--dl) infinite;
  opacity: 0;
}
@keyframes speckDrift {
  0%   { transform: translate(0, 0)         scale(0.7); opacity: 0; }
  20%  { opacity: 0.85; }
  80%  { opacity: 0.75; }
  100% { transform: translate(40px, -60px)  scale(1.1); opacity: 0; }
}
.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bubble {
  position: absolute;
  left: var(--x);
  bottom: -40px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.25) 60%, transparent 70%);
  border: 1px solid rgba(255,255,255,0.3);
  animation: bubbleRise var(--d) linear var(--dl) infinite;
  opacity: 0;
  z-index: 3;
}
@keyframes bubbleRise {
  0%   { transform: translate(0, 0)            scale(0.6); opacity: 0; }
  8%   { opacity: 0.9; }
  85%  { opacity: 0.7; }
  100% { transform: translate(-30px, -120vh)   scale(1.1); opacity: 0; }
}

/* === TITLE SVG === */
.hero-dive__title-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}
.hero-dive__waterline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}
.title-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 900;
  font-size: 260px;
  letter-spacing: -10px;
}
.title-group { will-change: transform; }

/* === CONTENT OVERLAY === */
.hero-dive__content {
  position: absolute;
  z-index: 6;
  left: 0; right: 0;
  bottom: 90px;
  text-align: center;
  padding: 0 24px;
}
.hero-dive__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFE6BF;
  background: rgba(255, 230, 191, 0.18);
  border: 1px solid rgba(255, 230, 191, 0.35);
  padding: 7px 16px;
  border-radius: 100px;
  backdrop-filter: blur(10px);
  margin-bottom: 18px;
}
.hero-dive__sub {
  color: var(--cream);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 540px;
  margin: 0 auto 22px;
  text-shadow: 0 2px 16px rgba(13, 59, 92, 0.55);
}
.hero-dive__sub strong { color: #FFE6BF; font-weight: 700; }

/* === NEWSLETTER FORM === */
.newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.newsletter__field {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 100px;
  padding: 6px;
  box-shadow: 0 12px 28px -8px rgba(13, 59, 92, 0.3);
  transition: box-shadow 0.3s, transform 0.3s;
}
.newsletter__field:focus-within {
  box-shadow: 0 16px 32px -8px rgba(255, 140, 66, 0.35), 0 0 0 3px rgba(255, 140, 66, 0.18);
}
.newsletter__input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 13px 22px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--blue-deep);
  outline: none;
  min-width: 0;
}
.newsletter__input::placeholder { color: rgba(13, 59, 92, 0.45); }
.newsletter__btn {
  background: var(--blue-deep);
  color: var(--cream);
  border: 0;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: background 0.3s, transform 0.3s;
  white-space: nowrap;
}
.newsletter__btn:hover { background: var(--koi); transform: translateY(-1px); }
.newsletter__note {
  font-size: 0.78rem;
  color: var(--blue);
}
/* Select zona di pesca (iniettato da newsletter.js nei form semplici) */
.newsletter__zona {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 100px;
  padding: 11px 40px 11px 22px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.88)
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230D3B5C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 18px center;
  box-shadow: 0 8px 20px -8px rgba(13, 59, 92, 0.25);
  cursor: pointer;
  outline: none;
  width: 100%;
}
.newsletter__zona:focus-visible {
  box-shadow: 0 8px 20px -8px rgba(255, 140, 66, 0.35), 0 0 0 3px rgba(255, 140, 66, 0.18);
}
.newsletter__zona option { color: var(--blue-deep); }

/* Dark variant — over water/dark sections */
.newsletter[data-variant="dark"] .newsletter__field {
  box-shadow: 0 16px 40px -10px rgba(2, 16, 38, 0.55);
}
.newsletter[data-variant="dark"] .newsletter__note {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 6px rgba(13, 59, 92, 0.5);
}
.newsletter[data-variant="dark"] .newsletter__zona {
  box-shadow: 0 12px 28px -10px rgba(2, 16, 38, 0.5);
}

/* Success state after submit */
.newsletter.is-success .newsletter__field {
  background: rgba(255, 255, 255, 0.96);
  justify-content: center;
  padding: 18px 24px;
}
.newsletter__success {
  font-weight: 600;
  color: var(--teal-deep);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.newsletter__success::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 0.85rem;
}
.newsletter__error {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #C0392B;
}
.newsletter[data-variant="dark"] .newsletter__error { color: #FFB3A7; }

/* === SCROLL HINT === */
.hero-dive__scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(13, 59, 92, 0.6);
}
.hero-dive__scroll-hint .scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.55);
  position: relative;
  overflow: hidden;
}
.hero-dive__scroll-hint .scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 50%;
  background: var(--cream);
  animation: scrollLine 2.4s var(--ease) infinite;
}

@media (max-width: 760px) {
  .hero-dive { height: 160vh; }
  .title-text { font-size: 160px; letter-spacing: -6px; }
}

.hero__content {
  position: relative;
  z-index: 5;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--blue-deep);
  margin-bottom: 24px;
  line-height: 1;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .line > * { display: inline-block; }

.hero__lead {
  font-size: 1.2rem;
  max-width: 560px;
  color: var(--blue);
  margin-bottom: 36px;
}

.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* HERO WAVES (layered paper cut foreground) */
.hero__waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  z-index: 3;
  pointer-events: none;
}
.wave {
  position: absolute;
  left: -5%; right: -5%; bottom: 0;
  width: 110%;
  height: 100%;
  filter: drop-shadow(0 -8px 20px rgba(13, 59, 92, 0.25));
}
.wave--1 { z-index: 1; height: 70%; }
.wave--2 { z-index: 2; height: 60%; }
.wave--3 { z-index: 3; height: 50%; }
.wave--4 { z-index: 4; height: 40%; }

.koi {
  position: absolute;
  width: 90px;
  height: 45px;
  z-index: 2;
  top: 55%;
  left: 12%;
  filter: drop-shadow(0 6px 12px rgba(13, 59, 92, 0.4));
}

.boat {
  position: absolute;
  width: 90px;
  height: 80px;
  z-index: 4;
  top: 40%;
  right: 10%;
  filter: drop-shadow(0 10px 20px rgba(13, 59, 92, 0.45));
}

.hero__scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--blue-deep);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--blue-deep);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 50%;
  background: var(--koi);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  100% { top: 200%; }
}

/* ============================================
   SECTION GENERIC
   ============================================ */
.section {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
}

.layered-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.layered-bg .layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
}
.layered-bg .layer--1 {
  top: -10%; right: -15%;
  width: 600px; height: 600px;
  background: var(--sky);
  opacity: 0.6;
  box-shadow: inset 0 -30px 60px -20px rgba(13, 59, 92, 0.2);
}
.layered-bg .layer--2 {
  top: 30%; left: -20%;
  width: 500px; height: 500px;
  background: rgba(74, 157, 168, 0.25);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}
.layered-bg .layer--3 {
  bottom: -10%; right: 20%;
  width: 300px; height: 300px;
  background: rgba(255, 140, 66, 0.15);
  border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
}
.layered-bg--warm .layer--1 { background: rgba(255, 140, 66, 0.18); }
.layered-bg--warm .layer--2 { background: rgba(74, 157, 168, 0.18); }

/* ============================================
   APP SECTION
   ============================================ */
.section--app {
  background: linear-gradient(180deg, #A5D2D8 0%, var(--cream) 30%);
}

.app__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 40px 0;
}
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature__icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--cream);
  box-shadow: var(--shadow-paper);
  padding: 10px;
}
.feature__icon--1 { background: linear-gradient(135deg, #DCEEF0, #C5E4E7); }
.feature__icon--2 { background: linear-gradient(135deg, #FFE5D2, #FFD4B8); }
.feature__icon--3 { background: linear-gradient(135deg, #FAF3E7, #F0E5D2); }
.feature__icon--4 { background: linear-gradient(135deg, #C5E4E7, #A5D2D8); }
.feature__icon svg { width: 100%; height: 100%; }

.feature h3 { font-size: 1.1rem; margin-bottom: 4px; color: var(--blue-deep); }
.feature p { font-size: 0.92rem; color: var(--blue); line-height: 1.5; }

.app__coming {
  margin-top: 8px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(74, 157, 168, 0.10), rgba(255, 140, 66, 0.08));
  border-radius: var(--radius);
  border: 1px solid rgba(74, 157, 168, 0.18);
}
.app__coming-text {
  font-size: 0.95rem;
  color: var(--blue-deep);
  margin-bottom: 14px;
  line-height: 1.5;
}
.app__coming-text strong {
  color: var(--blue-deep);
  font-weight: 700;
}

/* PHONE MOCKUP */
.app__phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1500px;
}

.phone {
  position: relative;
  width: 300px;
  height: 600px;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
.phone__shadow {
  position: absolute;
  bottom: -30px; left: 10%; right: 10%;
  height: 40px;
  background: var(--blue-deep);
  opacity: 0.25;
  border-radius: 50%;
  filter: blur(25px);
  transform: translateZ(-50px);
}
.phone__body {
  position: relative;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 50px 100px -20px rgba(13, 59, 92, 0.45),
    0 30px 60px -30px rgba(13, 59, 92, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}
.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #DCEEF0 0%, #C5E4E7 60%, #4A9DA8 100%);
}
/* Variante "screenshot reale": l'immagine riempie lo schermo del telefono in
   home (niente layer SVG); gli angoli arrotondati li ritaglia .phone__screen
   (border-radius + overflow:hidden). */
.phone__screen--shot { background: #0D3B5C; }
.phone__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.screen-layer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
}
.screen-layer svg { display: block; width: 100%; }
.screen-layer--sky { top: 0; bottom: auto; height: 50%; background: linear-gradient(180deg, #DCEEF0, #C5E4E7); }
.screen-layer--mountain { height: 60%; filter: drop-shadow(0 -4px 8px rgba(13, 59, 92, 0.2)); }
.screen-layer--water { height: 40%; filter: drop-shadow(0 -4px 8px rgba(13, 59, 92, 0.3)); }
.screen-layer--deep { height: 25%; }

.screen-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: 60px 16px 16px;
  display: flex;
  flex-direction: column;
}
.screen-card {
  background: rgba(250, 243, 231, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-paper);
}
.screen-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.screen-card__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--koi);
}
.screen-card strong { font-family: 'Fraunces', serif; font-size: 1.05rem; }
.screen-card small { color: var(--blue); font-style: italic; font-size: 0.75rem; }
.screen-card__stats {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(13, 59, 92, 0.1);
}
.screen-card__stats > div { display: flex; align-items: baseline; gap: 4px; }
.screen-card__stats b { font-family: 'Fraunces', serif; font-size: 1.3rem; color: var(--blue-deep); }
.screen-card__stats span { font-size: 0.7rem; color: var(--blue); text-transform: uppercase; letter-spacing: 0.1em; }

.screen-koi {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  animation: floatKoi 4s var(--ease) infinite;
  filter: drop-shadow(0 4px 8px rgba(13, 59, 92, 0.3));
}
@keyframes floatKoi {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-3deg); }
  50% { transform: translateX(-40%) translateY(-10px) rotate(3deg); }
}

/* ============================================
   GLOSSARIO
   ============================================ */
.section--glossario {
  background: #bfe3f2 url('../assets/glossario-bg.webp') center top / cover no-repeat;
  position: relative;
  overflow: hidden;
}

/* === Animated water caustics background (WebGL) === */
.water-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#water-caustics-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #4FB8C6;
}

.section--glossario .container {
  position: relative;
  z-index: 2;
}

/* Text contrast adjustments for the cyan caustic background */
.section--glossario .section__title { color: var(--blue-deep); text-shadow: 0 2px 16px rgba(255,255,255,0.7), 0 1px 2px rgba(255,255,255,0.6); }
.section--glossario .section__title em { color: var(--cream); }
.section--glossario .section__lead { color: var(--blue-deep); opacity: 0.85; }
.section--glossario .eyebrow {
  background: rgba(250, 243, 231, 0.6);
  color: var(--blue-deep);
  backdrop-filter: blur(8px);
}
.section--glossario .chip {
  background: rgba(250, 243, 231, 0.92);
  border-color: transparent;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 14px -4px rgba(13, 59, 92, 0.25);
}
.section--glossario .chip--active {
  background: var(--blue-deep);
  color: var(--cream);
}
.section--glossario .fish-card {
  box-shadow: 0 14px 32px -8px rgba(13, 59, 92, 0.4), 0 6px 14px -4px rgba(13, 59, 92, 0.2);
}
.section--glossario .fish-card:hover {
  box-shadow: 0 24px 48px -10px rgba(13, 59, 92, 0.5);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.chip {
  padding: 10px 22px;
  border-radius: 100px;
  border: 2px solid rgba(13, 59, 92, 0.12);
  background: var(--cream);
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: inherit;
  box-shadow: var(--shadow-paper);
}
.chip:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }
.chip--active { background: var(--blue-deep); color: var(--cream); border-color: var(--blue-deep); }

.fish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.fish-card {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: var(--shadow-paper);
  transform-style: preserve-3d;
}
.fish-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: var(--shadow-deep);
}
.fish-card__art {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky), #A5D2D8);
}
.fish-card__art svg {
  width: 100%; height: 100%;
  transition: transform 0.6s var(--ease);
}
.fish-card:hover .fish-card__art svg { transform: scale(1.08); }

.fish-card__body { padding: 20px 22px 24px; }
.fish-card__body h3 {
  font-size: 1.25rem;
  color: var(--blue-deep);
  margin-bottom: 2px;
}
.fish-card__sci {
  font-style: italic;
  color: var(--teal-deep);
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: block;
}
.fish-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fish-card__meta span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(74, 157, 168, 0.15);
  color: var(--teal-deep);
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.fish-card__meta span.tag-koi { background: rgba(255, 140, 66, 0.18); color: var(--koi-deep); }

.fish-card.is-hidden { display: none; }

/* Accessibilità/SEO: testo leggibile da screen reader e crawler, invisibile a schermo */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* === GLOSSARIO 3D — carosello cilindrico === */
.glossario3d {
  position: relative;
  margin-top: 44px;
  height: clamp(380px, 44vw, 520px);
  perspective: 1500px;
  perspective-origin: 50% 46%;
  overflow: visible;
  background: transparent;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  --cardW: 240px;
  --imgH: 135px;
  --cardH: 193px;
}
.glossario3d.is-dragging { cursor: grabbing; }

.glossario3d__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--cardW);
  height: var(--cardH);
  margin: calc(var(--cardH) / -2) 0 0 calc(var(--cardW) / -2);
  transform-style: preserve-3d;
  will-change: transform;
}
.glossario3d__card {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform, filter;
  cursor: pointer;
}
.glossario3d__face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.7);
}
.glossario3d__face--front {
  display: flex;
  flex-direction: column;
  background: #fff;
}
.glossario3d__face--front img {
  width: 100%;
  height: var(--imgH);      /* foto in alto, area 16:9 */
  flex: 0 0 auto;
  object-fit: cover;        /* la foto riempie il contenitore 16:9 */
  display: block;
  -webkit-user-drag: none;
}
.glossario3d__face--back {
  transform: rotateY(180deg);
  background: linear-gradient(150deg, #aab2b9 0%, #79828a 46%, #444d54 100%);
}
.glossario3d__label {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 6px 12px 8px;
  background: #fff;           /* pannello testo SOTTO la foto */
  color: var(--navy, #0D3B5C);
  text-align: center;
  pointer-events: none;
  overflow: hidden;
}
.glossario3d__label span { font-weight: 800; font-size: 0.92rem; line-height: 1.1; }
.glossario3d__label em { font-style: italic; font-size: 0.72rem; opacity: 0.62; }

.glossario3d__hint {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(13, 59, 92, 0.6);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 640px) {
  .glossario3d { height: 320px; --cardW: 150px; --imgH: 84px; --cardH: 142px; perspective: 1000px; }
  .glossario3d__label { padding: 5px 8px 7px; }
  .glossario3d__label span { font-size: 0.8rem; }
}

/* ============================================
   ARTICOLI
   ============================================ */
.section--articoli {
  background: linear-gradient(180deg, var(--cream) 0%, #F5E8D0 100%);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}

.article-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  cursor: pointer;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
}
.article-card--featured { grid-column: span 2; display: grid; grid-template-columns: 1.2fr 1fr; }
.article-card--featured .article-card__art { height: 100%; min-height: 320px; }

.article-card__art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.article-card__art svg { width: 100%; height: 100%; display: block; }
.article-card__art img { width: 100%; height: 100%; display: block; object-fit: cover; }

.article-card__body { padding: 28px 30px 32px; }
.article-card--featured .article-card__body { display: flex; flex-direction: column; justify-content: center; padding: 40px; }

.article-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--koi-deep);
  margin-bottom: 12px;
}
.article-card__body h3 {
  font-size: 1.35rem;
  color: var(--blue-deep);
  margin-bottom: 12px;
}
.article-card--featured .article-card__body h3 { font-size: 1.9rem; }
.article-card__body p { color: var(--blue); margin-bottom: 16px; font-size: 0.95rem; }
.article-card__link {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-block;
  transition: color 0.3s, transform 0.3s;
}
.article-card__link:hover { color: var(--koi); transform: translateX(4px); }

/* ============================================
   MAPPA METEO
   ============================================ */
.section--mappa {
  background: #ffffff;
}

/* Mappa a tutta larghezza (la sezione "Le condizioni in dettaglio" sta sotto) */
.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border: 6px solid var(--cream);
  background: var(--sky);
}
.map-frame--full {
  height: 56vh;
  min-height: 480px;
  max-height: 720px;
}
#marine-map { width: 100%; height: 100%; min-height: 440px; }

/* Intestazione bento sulla home: stessa impaginazione della pagina meteo */
.meteo-stats-head--home {
  margin-top: 36px;
  margin-bottom: 18px;
}
#home-stats-location {
  display: block;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
}

/* Custom Leaflet styling overrides */
.leaflet-container {
  background: #B8DBD9;
  font-family: 'Inter', sans-serif;
}
.leaflet-control-attribution {
  background: rgba(250, 243, 231, 0.85) !important;
  border-radius: 8px 0 0 0;
  font-size: 10px !important;
}
.cup8-marker {
  background: var(--koi);
  width: 24px !important; height: 24px !important;
  border-radius: 50%;
  border: 3px solid var(--cream);
  box-shadow: 0 6px 16px rgba(13, 59, 92, 0.4);
  animation: markerPulse 2s ease-in-out infinite;
}
@keyframes markerPulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(13, 59, 92, 0.4), 0 0 0 0 rgba(255, 140, 66, 0.6); }
  50% { box-shadow: 0 6px 16px rgba(13, 59, 92, 0.4), 0 0 0 12px rgba(255, 140, 66, 0); }
}

/* ============================================
   CTA FINALE
   ============================================ */
.section--cta {
  position: relative;
  padding: 180px 0 200px;
  background: linear-gradient(180deg, var(--sky) 0%, #88C2C9 100%);
  text-align: center;
  overflow: hidden;
}
.cta-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.cta-waves svg {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  height: 60%;
  filter: drop-shadow(0 -6px 15px rgba(13, 59, 92, 0.2));
}
.cta-waves svg:nth-child(1) { height: 65%; }
.cta-waves svg:nth-child(2) { height: 55%; }
.cta-waves svg:nth-child(3) { height: 40%; }

.cta__inner {
  position: relative;
  z-index: 5;
}
.cta__inner h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--blue-deep);
  margin-bottom: 16px;
}
.cta__inner p {
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 32px;
}
.cta__inner .hero__ctas { justify-content: center; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--blue-night);
  color: var(--sky);
  padding: 80px 0 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer__logo {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 12px;
}
.footer__grid p { color: rgba(245, 235, 224, 0.6); font-size: 0.95rem; }
.footer__grid h2 {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.footer__grid ul { list-style: none; }
.footer__grid ul li { margin-bottom: 10px; }
.footer__grid ul a {
  color: rgba(245, 235, 224, 0.65);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.3s;
}
.footer__grid ul a:hover { color: var(--koi); }
.footer__bottom {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(245, 235, 224, 0.72);
  padding-top: 30px;
  border-top: 1px solid rgba(245, 235, 224, 0.1);
}

/* ============================================
   ANIMATIONS REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .nav__menu { display: none; }
  .nav__burger { display: flex; }
  /* Su mobile NON mostrare "Accedi"/avatar sulla barra: main.js lo sposta dentro
     il menu a tendina all'apertura del burger. Sulla barra resta solo logo + burger. */
  .nav > .fauth { display: none; }
  .nav { padding: 10px 18px; }

  .hero { padding-top: 120px; min-height: auto; padding-bottom: 80px; }
  .hero__title { font-size: clamp(2.2rem, 9vw, 3.5rem); }

  .app__grid { grid-template-columns: 1fr; gap: 60px; }
  .features { grid-template-columns: 1fr; }
  .phone { width: 260px; height: 520px; }

  .articles-grid { grid-template-columns: 1fr; }
  .article-card--featured { grid-column: span 1; grid-template-columns: 1fr; }
  .article-card--featured .article-card__art { min-height: 200px; }

  .map-frame--full { height: 48vh; min-height: 360px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }

  .section { padding: 90px 0; }
  .container { padding: 0 20px; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}

/* ============================================
   SOCIAL & VIDEO SLIDER
   ============================================ */
.section--social {
  background: linear-gradient(180deg, var(--cream) 0%, #F0E8D8 100%);
  position: relative;
  overflow: hidden;
}

/* === Social cards grid === */
.social-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 90px;
}
.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--cream);
  background: var(--blue-deep);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--social-grad, linear-gradient(135deg, #0D3B5C, #1E5F7E));
  z-index: 0;
}
.social-card::after {
  content: "";
  position: absolute;
  top: -50%; right: -30%;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.social-card > * { position: relative; z-index: 1; }
.social-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
}

.social-card--instagram { --social-grad: linear-gradient(135deg, #C13584 0%, #E1306C 35%, #F77737 75%, #FCAF45 100%); }
.social-card--youtube   { --social-grad: linear-gradient(135deg, #FF0000 0%, #C8161D 100%); }
.social-card--tiktok    { --social-grad: linear-gradient(135deg, #010101 0%, #25F4EE 50%, #FE2C55 100%); }
.social-card--facebook  { --social-grad: linear-gradient(135deg, #1877F2 0%, #0B5DCB 100%); }

.social-card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
}
.social-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}
.social-card__platform {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}
.social-card__handle {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.1;
}
.social-card__cta {
  position: absolute;
  top: 26px;
  right: 24px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  z-index: 1;
  transition: background 0.3s;
}
.social-card:hover .social-card__cta {
  background: rgba(255, 255, 255, 0.32);
}

/* === Video slider === */
.video-slider { margin-top: 0; }
.video-slider__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.video-slider__head h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--blue-deep);
  font-weight: 600;
}
.video-slider__nav {
  display: flex;
  gap: 10px;
}
.slider-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(13, 59, 92, 0.18);
  background: var(--cream);
  color: var(--blue-deep);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-paper);
}
.slider-arrow:hover {
  background: var(--blue-deep);
  color: var(--cream);
  border-color: var(--blue-deep);
  transform: translateY(-2px);
}
.slider-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.video-slider__track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 4px 30px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) transparent;
}
.video-slider__track::-webkit-scrollbar { height: 6px; }
.video-slider__track::-webkit-scrollbar-track { background: transparent; }
.video-slider__track::-webkit-scrollbar-thumb {
  background: rgba(74, 157, 168, 0.4);
  border-radius: 100px;
}

.video-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}
.video-card__thumb svg,
.video-card__thumb img {
  width: 100%; height: 100%;
  display: block;
  transition: transform 0.6s var(--ease);
}
.video-card__thumb img { object-fit: cover; }
.video-card:hover .video-card__thumb svg,
.video-card:hover .video-card__thumb img { transform: scale(1.06); }

.video-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(13, 59, 92, 0.85);
  color: var(--cream);
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px -6px rgba(13, 59, 92, 0.55);
  transition: background 0.3s, transform 0.3s;
}
.video-card__play svg { margin-left: 3px; }
.video-card:hover .video-card__play {
  background: var(--koi);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-card__duration {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(13, 59, 92, 0.85);
  color: var(--cream);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.video-card__info {
  padding: 18px 20px 22px;
}
.video-card__info h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--blue-deep);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}
.video-card__info small {
  color: var(--blue);
  font-size: 0.82rem;
}

@media (max-width: 880px) {
  .social-cards { grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 60px; }
  .video-card { flex: 0 0 200px; }
  .video-slider__head h3 { font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .social-cards { grid-template-columns: 1fr; }
}

/* ============================================
   GLOSSARIO PAGE — Full layout with modal
   ============================================ */
.page-glossario { background: var(--cream); }

/* === HERO === */
.glossario-hero {
  position: relative;
  padding: 160px 0 60px;
  overflow: hidden;
  background: linear-gradient(180deg, #DCEEF0 0%, #C5E4E7 100%);
}
.glossario-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.glossario-hero__bg svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.glossario-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.glossario-hero__content h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  color: var(--blue-deep);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 22px;
}
.glossario-hero__content h1 em { color: var(--teal-deep); font-style: italic; }
.glossario-hero__lead {
  font-size: 1.1rem;
  color: var(--blue);
  line-height: 1.6;
  margin-bottom: 28px;
}
.glossario-hero__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* === ZONE SEARCH === */
.section--zone {
  background: #C5E4E7 url('../assets/glossario-zone-bg.webp') center top / cover no-repeat;
  padding: 150px 0 90px;
  position: relative;
}
/* Velo chiaro nella fascia alta → titolo/form leggibili sul paper-cut */
.section--zone::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(197, 228, 231, 0.9) 0%,
    rgba(197, 228, 231, 0.5) 32%,
    rgba(197, 228, 231, 0) 58%);
}
.section--zone .container { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .section--zone { padding: 120px 0 70px; }
}
.zone-form {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.zone-form__field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border-radius: 100px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 18px 40px -10px rgba(13, 59, 92, 0.25);
  transition: box-shadow 0.3s, transform 0.3s;
}
.zone-form__field:focus-within {
  box-shadow: 0 22px 48px -10px rgba(255, 140, 66, 0.35), 0 0 0 3px rgba(255, 140, 66, 0.2);
}
.zone-form__field svg { color: var(--teal-deep); flex-shrink: 0; }
.zone-form #zone-input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 14px 4px;
  font-size: 1.02rem;
  font-family: inherit;
  color: var(--blue-deep);
  outline: none;
  min-width: 0;
}
.zone-form #zone-input::placeholder { color: rgba(13, 59, 92, 0.45); }
.zone-form__btn {
  background: var(--blue-deep);
  color: var(--cream);
  border: 0;
  padding: 13px 28px;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: background 0.3s, transform 0.3s;
}
.zone-form__btn:hover { background: var(--koi); transform: translateY(-1px); }
.zone-form__hint {
  text-align: center;
  font-size: 0.82rem;
  color: #fff;
}

.zone-result {
  max-width: 920px;
  margin: 40px auto 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.zone-result.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.zone-result__head {
  text-align: center;
  margin-bottom: 24px;
}
.zone-result__head h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--blue-deep);
  margin: 8px 0;
}
.zone-result__hint {
  display: block;
  color: var(--blue);
  font-size: 0.92rem;
  margin-top: 6px;
  line-height: 1.5;
}
.zone-result__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.zone-chip {
  background: var(--cream);
  border-radius: 18px;
  padding: 14px 12px;
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow-paper);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}
.zone-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); }
.zone-chip__icon {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 2 / 1;
}
.zone-chip__icon svg { width: 100%; height: 100%; display: block; }
.zone-chip__name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue-deep);
}

/* === TUTTI I PESCI section === */
.section--all-fish {
  background: var(--cream);
  padding: 100px 0;
}
.glossario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
/* Limited preview: clean 4-column layout on wide screens */
.glossario-grid--limited {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) {
  .glossario-grid--limited { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .glossario-grid--limited { grid-template-columns: 1fr; }
}
.glossario-grid .fish-card { cursor: pointer; }

/* Section CTA button row */
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

/* === FISH MODAL === */
.fish-modal {
  position: fixed;
  inset: 0;
  z-index: 2000; /* sopra la nav (1100): è un overlay a tutto schermo */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.fish-modal.is-open { display: flex; }
.fish-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 60, 0.7);
  backdrop-filter: blur(10px);
  animation: backdropIn 0.4s var(--ease);
}
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }

.fish-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  background: var(--cream);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 50px 100px -20px rgba(8, 28, 60, 0.5);
  animation: modalIn 0.45s var(--ease);
  display: flex;
  flex-direction: column;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.fish-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--blue-deep);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s;
  box-shadow: var(--shadow-paper);
}
.fish-modal__close:hover { background: var(--blue-deep); color: var(--cream); transform: rotate(90deg); }

.fish-modal__content {
  overflow-y: auto;
}
.fish-modal__hero {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--sky);
}
.fish-modal__hero svg { width: 100%; height: 100%; display: block; }
.fish-modal__body {
  padding: 28px 32px 36px;
}
.fish-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.fish-modal__head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--blue-deep);
  font-weight: 600;
  margin-bottom: 2px;
}
.fish-modal__sci {
  font-style: italic;
  color: var(--teal-deep);
  font-size: 0.95rem;
}
.fish-modal__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.modal-badge {
  background: rgba(74, 157, 168, 0.15);
  color: var(--teal-deep);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.modal-badge--accent { background: rgba(255, 140, 66, 0.18); color: var(--koi-deep); }
.modal-badge--protected { background: rgba(255, 107, 92, 0.18); color: #C5443A; }

.fish-modal__desc {
  font-size: 1.02rem;
  color: var(--blue);
  line-height: 1.65;
  margin-bottom: 20px;
}
.fish-modal__note {
  background: rgba(255, 107, 92, 0.1);
  border-left: 3px solid #C5443A;
  padding: 12px 16px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 20px;
  color: #8C2A22;
  font-size: 0.92rem;
}
.fish-modal__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: rgba(74, 157, 168, 0.06);
  padding: 22px;
  border-radius: 18px;
}
.info-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-cell--full { grid-column: span 2; }
.info-cell__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.info-cell__value {
  font-family: 'Fraunces', serif;
  font-size: 1.02rem;
  color: var(--blue-deep);
  font-weight: 600;
}

/* === VIDEO GLOSSARIO section header === */
.section--video-glossario {
  background: linear-gradient(180deg, var(--cream) 0%, #F5E8D0 100%);
  padding: 100px 0;
}
.section--video-glossario .video-slider__head {
  align-items: flex-end;
}
.section--video-glossario .section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 8px 0 0;
}

/* === SPECIE ALIENE === */
.section--aliene {
  background: linear-gradient(180deg, #F5E8D0 0%, #FFF2E0 100%);
  padding: 100px 0;
}
.alien-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.alien-card {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  border: 2px solid rgba(197, 68, 58, 0.15);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.alien-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-deep); }
.alien-card__art {
  height: 200px;
  overflow: hidden;
}
.alien-card__art svg { width: 100%; height: 100%; display: block; }
.alien-card__body { padding: 20px 22px 24px; }
.alien-card__alert {
  display: inline-block;
  background: rgba(197, 68, 58, 0.12);
  color: #C5443A;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.alien-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--blue-deep);
  font-weight: 600;
  margin-bottom: 2px;
}
.alien-card__sci {
  display: block;
  font-style: italic;
  color: var(--teal-deep);
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.alien-card__origin {
  font-size: 0.88rem;
  color: var(--blue);
  margin-bottom: 10px;
}
.alien-card__desc {
  font-size: 0.92rem;
  color: var(--blue);
  line-height: 1.55;
  margin-bottom: 12px;
}
.alien-card__impact {
  font-size: 0.85rem;
  color: var(--blue-deep);
  padding-top: 12px;
  border-top: 1px dashed rgba(13, 59, 92, 0.15);
}

/* === SPECIE PROTETTE === */
.section--protette {
  background: linear-gradient(180deg, #FFF2E0 0%, #E8F4F2 100%);
  padding: 100px 0;
}
.protected-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.protected-card {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  border: 2px solid rgba(74, 157, 168, 0.2);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.protected-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-deep); }
.protected-card__art {
  height: 200px;
  overflow: hidden;
}
.protected-card__art svg { width: 100%; height: 100%; display: block; }
.protected-card__body { padding: 20px 22px 24px; }
.protected-card__shield {
  display: inline-block;
  background: rgba(74, 157, 168, 0.15);
  color: var(--teal-deep);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.protected-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--blue-deep);
  font-weight: 600;
}
.protected-card__sci {
  display: block;
  font-style: italic;
  color: var(--teal-deep);
  font-size: 0.85rem;
  margin: 2px 0 12px;
}
.protected-card__desc {
  font-size: 0.92rem;
  color: var(--blue);
  line-height: 1.55;
  margin-bottom: 12px;
}
.protected-card__note {
  font-size: 0.85rem;
  color: var(--blue-deep);
  padding: 10px 14px;
  background: rgba(74, 157, 168, 0.1);
  border-radius: 12px;
}

/* === RICETTE === */
.section--ricette {
  background: linear-gradient(180deg, #E8F4F2 0%, var(--cream) 100%);
  padding: 100px 0;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.recipe-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
}
.recipe-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-deep); }
.recipe-card__art {
  height: 200px;
  overflow: hidden;
}
.recipe-card__art svg,
.recipe-card__art img { width: 100%; height: 100%; display: block; transition: transform 0.6s var(--ease); }
.recipe-card__art img { object-fit: cover; }
.recipe-card:hover .recipe-card__art svg,
.recipe-card:hover .recipe-card__art img { transform: scale(1.05); }
.recipe-card__body { padding: 20px 22px 24px; }
.recipe-card__meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.recipe-card__time,
.recipe-card__diff {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.recipe-card__time { background: rgba(255, 140, 66, 0.15); color: var(--koi-deep); }
.recipe-card__diff { background: rgba(74, 157, 168, 0.15); color: var(--teal-deep); }
.recipe-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--blue-deep);
  font-weight: 600;
  margin-bottom: 4px;
}
.recipe-card__fish {
  display: block;
  font-size: 0.82rem;
  color: var(--teal-deep);
  margin-bottom: 10px;
  font-weight: 500;
}
.recipe-card__body p {
  font-size: 0.92rem;
  color: var(--blue);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .fish-modal__body { padding: 22px 20px 28px; }
  .fish-modal__info-grid { grid-template-columns: 1fr; padding: 16px; }
  .info-cell--full { grid-column: span 1; }
  .glossario-hero { padding: 130px 0 50px; }
  .section--zone, .section--all-fish, .section--video-glossario,
  .section--aliene, .section--protette, .section--ricette { padding: 70px 0; }
  .section--video-glossario .video-slider__head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ============================================
   SPLINE 3D SECTION
   ============================================ */
.section--spline {
  padding: 110px 0;
  background: linear-gradient(180deg, var(--cream) 0%, #E8F4F2 50%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}
.spline-frame {
  position: relative;
  width: 100%;
  height: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Sfondo trasparente: il pesce galleggia direttamente sulla sezione, niente riquadro */
  background: transparent;
  box-shadow: none;
}
.spline-frame spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent !important;
}
/* Hide the default Spline watermark overlay if present */
.spline-frame spline-viewer::part(logo) { display: none !important; }
/* <model-viewer> riempie il frame come faceva spline-viewer */
.spline-frame model-viewer {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: #1E5F7E;
  --progress-mask: rgba(13, 59, 92, 0.0);
}
/* Pulsanti +/- per lo zoom del modello (lo zoom con lo scroll è disattivato) */
.model-zoom-ctrl {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.model-zoom-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(13, 59, 92, 0.16);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #0D3B5C;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(13, 59, 92, 0.18);
  transition: background 0.15s ease, transform 0.1s ease;
}
.model-zoom-btn:hover { background: #fff; }
.model-zoom-btn:active { transform: scale(0.9); }

@media (max-width: 760px) {
  .section--spline { padding: 70px 0; }
  .spline-frame { height: 460px; border-radius: 22px; }
}

/* ============================================
   METEO MARE PAGE
   ============================================ */
.page-meteo { background: var(--cream); }

/* Compact header — single horizontal row */
.meteo-header {
  padding: 124px 0 18px;
  background: linear-gradient(180deg, #DCEEF0 0%, #C5E4E7 100%);
}
.meteo-header .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
}
.meteo-header__left { max-width: 760px; }
.meteo-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--blue-deep);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 6px 0 6px;
}
.meteo-header h1 em { color: var(--teal-deep); font-style: italic; }
.meteo-header p {
  color: var(--blue);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 580px;
  margin: 0;
}
.meteo-header__date {
  background: var(--cream);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-paper);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.meteo-header__day {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1;
}
.meteo-header__date-num {
  font-size: 0.8rem;
  color: var(--blue);
}
.meteo-header__location {
  padding-left: 12px;
  border-left: 1px dashed rgba(13, 59, 92, 0.18);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--koi-deep);
}

/* === Map (tall hero-size, no scroll-zoom) === */
.meteo-map-section {
  background: #C5E4E7;
  padding: 14px 0 22px;
}
.meteo-map-wrap {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60vh;
  min-height: 480px;
  max-height: 820px;
}
#meteo-map {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--sky);
  box-shadow: 0 18px 44px -14px rgba(13, 59, 92, 0.3);
}
.leaflet-container {
  background: #B8DBD9;
  font-family: 'Inter', sans-serif;
  border-radius: 18px;
}

/* Floating geolocation button — top right */
.meteo-map-geo-wrap {
  position: absolute;
  top: 16px; right: 40px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 220px;
}
.meteo-map-geo {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(250, 243, 231, 0.96);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(13, 59, 92, 0.12);
  border-radius: 100px;
  padding: 9px 14px;
  box-shadow: 0 10px 26px -6px rgba(13, 59, 92, 0.3);
  color: var(--koi-deep);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  transition: color 0.3s, transform 0.2s;
}
.meteo-map-geo:hover { color: var(--koi); transform: translateY(-1px); }
.meteo-map-geo:disabled { opacity: 0.5; cursor: not-allowed; }

/* Pulsante posizione anche sulla mappa home (riusa lo stile .meteo-map-geo) */
.map-frame .meteo-map-geo-wrap { top: 16px; right: 16px; }

/* Pulsante "schermo intero" delle mappe (home + meteo-mare) — basso a destra,
   angolo libero su entrambe (zoom + ri-blocca in alto a sx, geoloc in alto a dx).
   Logica in js/map-fullscreen.js. */
.map-fs-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1.5px solid rgba(13, 59, 92, 0.12); border-radius: 12px;
  background: rgba(250, 243, 231, 0.96); backdrop-filter: blur(10px);
  color: var(--koi-deep); cursor: pointer;
  box-shadow: 0 10px 26px -6px rgba(13, 59, 92, 0.3);
  transition: color 0.2s, transform 0.15s, background 0.2s;
}
.map-fs-btn:hover { color: var(--koi); transform: translateY(-1px); }
.map-fs-btn svg { width: 20px; height: 20px; display: block; }
/* Impilato nel gruppo controlli in alto a destra, sotto "La mia posizione"
   (il wrap è flex-column allineato a destra); la barra del tempo tiene occupato il
   fondo, quindi qui è l'angolo libero su entrambe le mappe. */
.meteo-map-geo-wrap .map-fs-btn { margin-top: 8px; }
/* Fallback: nessun gruppo geoloc → fluttua nell'angolo in alto a destra. */
.map-fs-btn--float { position: absolute; top: 16px; right: 16px; z-index: 500; }

/* Stato schermo intero: il contenitore della mappa riempie lo schermo, senza
   bordo/raggio/padding. `:fullscreen` batte `.map-frame--full` (56vh) per la
   specificità del pseudo-selettore. Regole separate per lo standard e per Safari
   (`-webkit-`): un selettore ignoto in un gruppo separato da virgole scarterebbe
   l'intera regola. */
.map-frame:fullscreen, .meteo-map-wrap:fullscreen {
  width: 100vw; height: 100vh; max-width: none; max-height: none; min-height: 0;
  margin: 0; padding: 0; border: none; border-radius: 0; background: var(--sky);
}
.map-frame:-webkit-full-screen, .meteo-map-wrap:-webkit-full-screen {
  width: 100vw; height: 100vh; max-width: none; max-height: none; min-height: 0;
  margin: 0; padding: 0; border: none; border-radius: 0; background: var(--sky);
}
.map-frame:fullscreen #marine-map, .map-frame:fullscreen #meteo-map,
.meteo-map-wrap:fullscreen #marine-map, .meteo-map-wrap:fullscreen #meteo-map {
  height: 100% !important; min-height: 0 !important; border-radius: 0;
}
.map-frame:-webkit-full-screen #marine-map, .map-frame:-webkit-full-screen #meteo-map,
.meteo-map-wrap:-webkit-full-screen #marine-map, .meteo-map-wrap:-webkit-full-screen #meteo-map {
  height: 100% !important; min-height: 0 !important; border-radius: 0;
}
.map-frame:fullscreen .leaflet-container, .meteo-map-wrap:fullscreen .leaflet-container { border-radius: 0; }
.map-frame:-webkit-full-screen .leaflet-container, .meteo-map-wrap:-webkit-full-screen .leaflet-container { border-radius: 0; }

/* Controlli zoom Leaflet — stile paper-cut CUP8 (home + meteo mare):
   due riquadri crema arrotondati e staccati, come il pulsante "La mia posizione". */
.leaflet-control-zoom.leaflet-bar {
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.leaflet-control-zoom a.leaflet-control-zoom-in,
.leaflet-control-zoom a.leaflet-control-zoom-out {
  width: 38px;
  height: 38px;
  line-height: 36px;
  font-size: 22px;
  font-weight: 700;
  color: var(--koi-deep);
  background: rgba(250, 243, 231, 0.96);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(13, 59, 92, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 26px -6px rgba(13, 59, 92, 0.3);
  transition: color 0.25s, background 0.25s, transform 0.2s;
}
.leaflet-control-zoom a.leaflet-control-zoom-in:hover,
.leaflet-control-zoom a.leaflet-control-zoom-out:hover {
  color: var(--koi);
  background: #fff;
  transform: translateY(-1px);
}
.leaflet-control-zoom a.leaflet-disabled {
  opacity: 0.45;
  color: var(--blue);
  background: rgba(250, 243, 231, 0.7);
}

/* Pulse usato dal marker della mappa (.cup8-marker) */
@keyframes meteoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 140, 66, 0.6); }
  50%      { box-shadow: 0 0 0 10px rgba(255, 140, 66, 0); }
}

/* === Stats grid === */
.meteo-stats-section {
  background: var(--cream);
  padding: 22px 0 40px;
}
.meteo-stats-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.meteo-stats-head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--blue-deep);
  font-weight: 600;
  margin: 4px 0 0;
}
.meteo-stats-head h2 em { color: var(--teal-deep); font-style: italic; }

.meteo-fishing-score {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(74, 157, 168, 0.12);
  border: 1.5px solid rgba(74, 157, 168, 0.25);
  transition: background 0.4s, border-color 0.4s;
}
.meteo-fishing-score__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.meteo-fishing-score__num {
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1;
}
.meteo-fishing-score__verdict {
  font-family: 'Fraunces', serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--teal-deep);
}

/* === Bento grid: la gerarchia la fanno le dimensioni delle tile ===
   1 tile hero (onde, 4col × 2righe) + 4 medie + 1 larga + 2 piccole su 12 colonne. */
.meteo-stats-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  padding-top: 8px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  background: var(--cream);
  padding: 18px;
  border-radius: 20px;
  border: 1.5px solid rgba(13, 59, 92, 0.08);
  box-shadow: var(--shadow-paper);
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); }
.stat-card--loading {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  padding: 48px;
  color: var(--blue);
  font-style: italic;
}
.stat-card--primary { background: linear-gradient(135deg, rgba(197, 228, 231, 0.6), rgba(74, 157, 168, 0.15)); }
.stat-card--water   { background: linear-gradient(135deg, rgba(197, 228, 231, 0.4), rgba(168, 221, 240, 0.25)); }
.stat-card--sun     { background: linear-gradient(135deg, rgba(255, 192, 122, 0.18), rgba(255, 140, 66, 0.1)); }

/* — Tile HERO: tipografia editoriale a sinistra, icona 3D gigante in basso a destra — */
.stat-card--hero {
  grid-column: span 4;
  grid-row: span 2;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 28px 30px;
  min-height: 330px;
}
/* Le onde sono una fascia a tutta larghezza sul fondo: i bordi del canvas
   coincidono con quelli della card, niente tagli a vista */
.stat-card--hero .stat-card__icon {
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  width: auto; height: 46%;
}
.stat-card--hero .stat-card__body { position: relative; z-index: 1; }
.stat-card--hero .stat-card__label { font-size: 0.76rem; margin-bottom: 10px; }
.stat-card--hero .stat-card__value { justify-content: flex-start; }
.stat-card--hero .stat-card__num { font-size: clamp(3rem, 4.5vw, 4.4rem); letter-spacing: -0.02em; }
.stat-card--hero .stat-card__unit { font-size: 1.15rem; }
.stat-card--hero .stat-card__sub { font-size: 0.95rem; margin-top: 8px; }

/* — Tile medie: icona a sinistra, dati a destra — */
.stat-card--med {
  grid-column: span 4;
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  gap: 16px;
  padding: 14px 22px;
  min-height: 158px;
}
.stat-card--med .stat-card__icon { width: 112px; height: 112px; }
.stat-card--med .stat-card__value { justify-content: flex-start; }

/* — Tile piccole (accent): composizione centrata compatta — */
.stat-card--small {
  grid-column: span 3;
  padding: 16px 14px 18px;
}
.stat-card--small .stat-card__icon { width: 94px; height: 94px; }
.stat-card--small .stat-card__num { font-size: 1.55rem; }

/* — Tile larga (alba & tramonto): orizzontale, respiro da banner — */
.stat-card--wide {
  grid-column: span 6;
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  gap: 24px;
  padding: 14px 30px;
}
.stat-card--wide .stat-card__icon { width: 122px; height: 122px; }
.stat-card--wide .stat-card__value { justify-content: flex-start; }

@media (max-width: 1100px) {
  .stat-card--hero  { grid-column: span 6; }
  .stat-card--med   { grid-column: span 6; }
  .stat-card--small { grid-column: span 6; }
  .stat-card--wide  { grid-column: span 12; }
}
@media (max-width: 640px) {
  .stat-card--hero  { grid-column: span 12; min-height: 300px; }
  .stat-card--med   { grid-column: span 12; }
  .stat-card--small { grid-column: span 6; }
  .stat-card--wide  { grid-column: span 12; }
  .stat-card--hero .stat-card__icon { height: 42%; }
}

/* Icona 3D: nessun riquadro né ombra, vive direttamente sullo sfondo della card */
.stat-card__icon {
  flex-shrink: 0;
  width: 112px; height: 112px;
  display: grid;
  place-items: center;
  background: transparent;
}
.stat-card__icon svg { width: 68px; height: 68px; } /* fallback no-WebGL */
.stat-card__icon canvas { width: 100%; height: 100%; display: block; }
.stat-card__body { min-width: 0; }
.stat-card__label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.stat-card__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}
.stat-card__num {
  font-family: 'Fraunces', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1;
}
.stat-card__unit {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 600;
}
.stat-card__sub {
  display: block;
  font-size: 0.78rem;
  color: var(--blue);
  margin-top: 5px;
  line-height: 1.25;
}

/* === Hourly forecast === */
.meteo-hourly-section {
  background: linear-gradient(180deg, var(--cream) 0%, #E8F4F2 100%);
  padding: 60px 0 80px;
}
.meteo-hourly-head {
  text-align: center;
  margin-bottom: 28px;
}
.meteo-hourly-head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--blue-deep);
  font-weight: 600;
  margin: 6px 0 8px;
}
.meteo-hourly-head h2 em { color: var(--teal-deep); font-style: italic; }
.meteo-hourly-head p {
  color: var(--blue);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.meteo-hourly {
  background: var(--cream);
  padding: 26px 28px 20px;
  border-radius: 20px;
  box-shadow: var(--shadow-paper);
  border: 1.5px solid rgba(13, 59, 92, 0.08);
}

/* Pannello grafico (onde / vento): area smooth + striscia difficoltà + ore */
.hourly-chart + .hourly-chart {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1.5px dashed rgba(13, 59, 92, 0.14);
}
.hourly-chart__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.hourly-chart__title {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}
.hourly-chart__now {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1;
}
.hourly-chart__now .trend {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
}
.hourly-chart__legend {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--blue);
}
.hourly-chart__legend i {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -1px;
}
.hourly-chart__plot { position: relative; }
.hourly-chart__plot svg { width: 100%; height: 150px; display: block; }
/* pallini del grafico come overlay HTML: cerchi perfetti a qualsiasi larghezza
   (dentro l'SVG con preserveAspectRatio="none" verrebbero stirati in ellissi) */
.hourly-dots {
  position: absolute;
  inset: 0;
  height: 150px;
  pointer-events: none;
}
.hourly-dots span {
  position: absolute;
  width: 8px; height: 8px;
  box-sizing: content-box;
  border-radius: 50%;
  border: 2px solid #FAF3E7;
  transform: translate(-50%, -50%);
}
.hourly-dots span.hourly-dots__now {
  width: 11px; height: 11px;
  border-width: 2.5px;
}
.hourly-tooltip {
  position: absolute;
  top: 12px; left: 0;
  transform: translateX(-50%);
  background: var(--blue-deep);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 8px 20px -6px rgba(13, 59, 92, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  z-index: 5;
}
/* striscia "heat": un segmento per ora, colorato per difficoltà */
.hourly-heat {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 2px;
  height: 8px;
  margin-top: 10px;
}
.hourly-heat span { border-radius: 3px; }
.hourly-hours-row {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 2px;
  margin-top: 5px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.hourly-hours-row span { text-align: center; }
.hourly-hours-row span:nth-child(3n+1) { color: var(--blue-deep); }
.hourly-hours-row span:not(:nth-child(3n+1)) { opacity: 0.4; }
@media (max-width: 640px) {
  .hourly-chart__legend { display: none; }
  .hourly-hours-row span:not(:nth-child(4n+1)) { visibility: hidden; }
}

/* === Geo hint (under "La mia posizione" button) === */
.geo-hint {
  margin-top: 10px;
  padding: 9px 12px;
  background: rgba(197, 68, 58, 0.12);
  color: #C5443A;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.35;
  border: 1px solid rgba(197, 68, 58, 0.2);
}

/* === Tide + Pressure section === */
.section--meteo-tide-pressure {
  background: linear-gradient(180deg, #E8F4F2 0%, var(--cream) 100%);
  padding: 70px 0;
}
.section--meteo-tide-pressure .section__head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--blue-deep);
  font-weight: 600;
  margin: 6px 0 8px;
}
.section--meteo-tide-pressure .section__head h2 em { color: var(--teal-deep); font-style: italic; }
.section--meteo-tide-pressure .section__head p { color: var(--blue); max-width: 580px; margin: 0 auto; font-size: 0.95rem; }

.meteo-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 820px) { .meteo-twocol { grid-template-columns: 1fr; } }

.meteo-chart-card {
  background: var(--cream);
  border-radius: 18px;
  padding: 22px 24px 18px;
  box-shadow: var(--shadow-paper);
  border: 1.5px solid rgba(13, 59, 92, 0.08);
}
.meteo-chart-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.meteo-chart-card__label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.meteo-chart-card__now {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.meteo-chart-card__now strong {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-deep);
}
.trend {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.trend--up   { background: rgba(46, 142, 90, 0.14); color: #2A8E5A; }
.trend--down { background: rgba(255, 140, 66, 0.16); color: var(--koi-deep); }
.trend--flat { background: rgba(74, 157, 168, 0.14); color: var(--teal-deep); }

.meteo-chart {
  width: 100%;
  height: 140px;
  display: block;
}
.meteo-chart__axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--blue);
  margin-top: 4px;
  padding: 0 8px;
  font-weight: 600;
}

/* === Moon phase section === */
.section--meteo-moon {
  background: linear-gradient(180deg, var(--cream) 0%, #DCE5F0 100%);
  padding: 60px 0;
}
.meteo-moon-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, #0F1F3E 0%, #1A2A4A 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15, 31, 62, 0.5);
}
.meteo-moon-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(250, 241, 216, 0.08) 0%, transparent 45%);
  pointer-events: none;
}
.meteo-moon-card::after {
  content: "★";
  position: absolute;
  top: 28px; right: 60px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 8px;
  letter-spacing: 36px;
  word-spacing: 4px;
}
.meteo-moon-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}
.meteo-moon-info {
  position: relative;
  z-index: 1;
  color: #FAF1D8;
}
.meteo-moon-info .eyebrow {
  background: rgba(250, 241, 216, 0.12);
  color: #FAF1D8;
  border: 1px solid rgba(250, 241, 216, 0.2);
}
.meteo-moon-info h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 600;
  color: #FAF1D8;
  margin: 10px 0 18px;
}
.meteo-moon-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
  max-width: 360px;
}
.meteo-moon-stats > div, .meteo-moon-next > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meteo-moon-stats span, .meteo-moon-next span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 241, 216, 0.6);
}
.meteo-moon-stats strong, .meteo-moon-next strong {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #FAF1D8;
}
.meteo-moon-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(250, 241, 216, 0.15);
  border-bottom: 1px solid rgba(250, 241, 216, 0.15);
  margin-bottom: 18px;
  max-width: 460px;
}
.meteo-moon-hint {
  font-size: 0.88rem;
  color: rgba(250, 241, 216, 0.78);
  line-height: 1.5;
  max-width: 540px;
}
.meteo-moon-hint strong { color: #FFC07A; font-weight: 700; }

@media (max-width: 760px) {
  .meteo-moon-card { grid-template-columns: 1fr; padding: 32px 28px; text-align: left; gap: 22px; }
  .meteo-moon-visual { justify-content: flex-start; }
  .meteo-moon-stats, .meteo-moon-next { grid-template-columns: 1fr 1fr; max-width: none; }
}

/* === 7-day forecast === */
.section--meteo-forecast {
  background: var(--cream);
  padding: 70px 0;
}
.section--meteo-forecast .section__head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--blue-deep);
  font-weight: 600;
  margin: 6px 0 8px;
}
.section--meteo-forecast .section__head h2 em { color: var(--teal-deep); font-style: italic; }
.section--meteo-forecast .section__head p { color: var(--blue); max-width: 600px; margin: 0 auto; font-size: 0.95rem; }

.meteo-forecast-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
@media (max-width: 1100px) { .meteo-forecast-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .meteo-forecast-grid { grid-template-columns: repeat(2, 1fr); } }

.forecast-day {
  background: var(--cream);
  border-radius: 16px;
  padding: 16px 14px;
  border: 1.5px solid rgba(13, 59, 92, 0.08);
  box-shadow: var(--shadow-paper);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--score-color, var(--teal));
}
.forecast-day:hover { transform: translateY(-3px); box-shadow: var(--shadow-deep); }
.forecast-day--today {
  background: linear-gradient(180deg, rgba(255, 230, 191, 0.4) 0%, var(--cream) 100%);
  border-color: rgba(255, 140, 66, 0.3);
}
.forecast-day__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.forecast-day__day {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--blue-deep);
  font-size: 1rem;
}
.forecast-day__date {
  font-size: 0.74rem;
  color: var(--blue);
  font-weight: 600;
}
.forecast-day__icon {
  font-size: 2rem;
  text-align: center;
  margin: 4px 0 8px;
  line-height: 1;
}
.forecast-day__score {
  text-align: center;
  margin-bottom: 12px;
}
.forecast-day__score-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--score-color, var(--blue-deep));
  line-height: 1;
}
.forecast-day__score-verdict {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--score-color, var(--blue-deep));
}
.forecast-day__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px dashed rgba(13, 59, 92, 0.15);
}
.forecast-day__stats > div { display: flex; flex-direction: column; gap: 1px; }
.forecast-day__stats small {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.forecast-day__stats strong {
  font-family: 'Fraunces', serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue-deep);
}

/* === Final CTA === */
.section--meteo-cta {
  padding: 100px 0;
  background: var(--cream);
}
.meteo-final-cta {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-night) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(13, 59, 92, 0.5);
}
.meteo-final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 140, 66, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(74, 157, 168, 0.25) 0%, transparent 50%);
}
.meteo-final-cta__text {
  position: relative;
  z-index: 1;
}
.meteo-final-cta .eyebrow {
  background: rgba(255, 230, 191, 0.15);
  color: #FFE6BF;
  border: 1px solid rgba(255, 230, 191, 0.3);
}
.meteo-final-cta h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--cream);
  font-weight: 600;
  margin: 14px 0 12px;
  line-height: 1.1;
}
.meteo-final-cta h2 em { color: #FFE6BF; font-style: italic; }
.meteo-final-cta p {
  color: rgba(245, 235, 224, 0.85);
  line-height: 1.55;
  margin-bottom: 0;
}
.meteo-final-cta form { position: relative; z-index: 1; }

/* Custom Leaflet marker */
.cup8-marker {
  background: var(--koi);
  width: 26px !important; height: 26px !important;
  border-radius: 50%;
  border: 3px solid var(--cream);
  box-shadow: 0 6px 16px rgba(13, 59, 92, 0.4);
  animation: meteoPulse 2s ease-in-out infinite;
}

@media (max-width: 880px) {
  .meteo-header { padding: 110px 0 24px; }
  .meteo-map-wrap { height: 70vh; min-height: 460px; padding: 0 16px; }
  .meteo-map-geo-wrap { top: 14px; right: 28px; }
  .meteo-final-cta { grid-template-columns: 1fr; padding: 36px 28px; }
}

/* ============================================
   ARTICOLI PAGE (showreel)
   ============================================ */
.page-articoli { background: var(--cream); }

.articoli-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 60px;
  background: #DCEEF0 url('../assets/articoli-hero-bg.webp') center / cover no-repeat;
  text-align: center;
}
/* Velo cream dietro la colonna di testo centrale: garantisce la leggibilità di
   titolo/paragrafo/search, lasciando visibili l'uomo che legge (sx) e la
   scogliera (dx) che sfumano ai bordi dell'header paper-cut. */
.articoli-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 56% 92% at 50% 46%,
    rgba(250, 243, 231, 0.88) 0%,
    rgba(250, 243, 231, 0.6) 46%,
    rgba(250, 243, 231, 0) 80%);
  pointer-events: none;
}
.articoli-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.articoli-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  color: var(--blue-deep);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 18px;
}
.articoli-hero h1 em { color: var(--teal-deep); font-style: italic; }
.articoli-hero p {
  font-size: 1.08rem;
  color: var(--blue);
  line-height: 1.55;
  margin-bottom: 30px;
}

.articoli-search {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 580px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 100px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 18px 40px -10px rgba(13, 59, 92, 0.25);
  transition: box-shadow 0.3s, transform 0.3s;
}
.articoli-search:focus-within {
  box-shadow: 0 22px 48px -10px rgba(255, 140, 66, 0.35), 0 0 0 3px rgba(255, 140, 66, 0.2);
}
.articoli-search svg { color: var(--teal-deep); flex-shrink: 0; }
.articoli-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 14px 4px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--blue-deep);
  outline: none;
  min-width: 0;
}
.articoli-search input::placeholder { color: rgba(13, 59, 92, 0.45); }
.articoli-search button {
  background: var(--blue-deep);
  color: var(--cream);
  border: 0;
  padding: 13px 24px;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: background 0.3s;
}
.articoli-search button:hover { background: var(--koi); }
.articoli-hero__hint {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--blue);
}
.articoli-hero__cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* Category section heads */
.section--articoli-cat {
  padding: 90px 0;
  background: var(--cream);
}
.section--articoli-cat--news {
  background: linear-gradient(180deg, var(--cream) 0%, #FFF2E0 100%);
}
.section--articoli-cat--leggi {
  background: linear-gradient(180deg, #FFF2E0 0%, #E8F4F2 100%);
}
.section--articoli-cat:nth-child(4) {
  background: linear-gradient(180deg, #E8F4F2 0%, var(--cream) 100%);
}
.cat-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.cat-section-head__text { max-width: 620px; }
.cat-section-head .section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 8px;
}
.cat-section-head .section__lead {
  margin-bottom: 0;
  max-width: 580px;
}
.cat-section-head__cta {
  flex-shrink: 0;
  padding: 11px 20px;
  font-size: 0.9rem;
}

/* Featured row → horizontal slider (swipe su mobile, frecce su desktop) */
.artic-slider { position: relative; }
.articoli-featured {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;     /* momentum iOS */
  overscroll-behavior-x: contain;
  scroll-padding: 0 4px;
  padding: 6px 4px 16px;
  margin: 0 -4px;                         /* compensa il padding interno */
  scrollbar-width: none;                  /* Firefox */
  -ms-overflow-style: none;               /* Edge/IE */
}
.articoli-featured::-webkit-scrollbar { display: none; } /* WebKit */
.articoli-featured .article-card-v2 {
  flex: 0 0 320px;
  width: 320px;
  max-width: 86vw;
  scroll-snap-align: start;
}
/* annulla l'eventuale dimensionamento "featured" della vecchia griglia */
.articoli-featured .article-card-v2:first-child { grid-row: auto; grid-column: auto; }

/* Frecce di scorrimento (solo dispositivi con puntatore) */
.artic-slider__nav {
  position: absolute;
  top: 46%;
  z-index: 4;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(13, 59, 92, 0.12);
  background: var(--cream);
  color: var(--blue-deep);
  box-shadow: var(--shadow-paper);
  cursor: pointer;
  transition: opacity .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.artic-slider__nav:hover { background: var(--blue-deep); color: var(--cream); }
.artic-slider__nav--prev { left: -8px;  transform: translateY(-50%) rotate(180deg); }
.artic-slider__nav--next { right: -8px; transform: translateY(-50%); }
.artic-slider__nav.is-hidden { opacity: 0; pointer-events: none; }

@media (hover: none), (max-width: 760px) {
  .artic-slider__nav { display: none; }  /* touch: si scorre con lo swipe */
}
@media (max-width: 560px) {
  .articoli-featured { gap: 16px; }
  .articoli-featured .article-card-v2 { flex-basis: 82%; width: 82%; }
}

/* Card v2 (unified) */
.article-card-v2 {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-paper);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.article-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
}
.article-card-v2__art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.article-card-v2--featured .article-card-v2__art {
  aspect-ratio: 16 / 11;
}
.article-card-v2__art svg,
.article-card-v2__art img {
  width: 100%; height: 100%;
  display: block;
  transition: transform 0.6s var(--ease);
}
.article-card-v2__art img { object-fit: cover; }
.article-card-v2:hover .article-card-v2__art svg,
.article-card-v2:hover .article-card-v2__art img { transform: scale(1.06); }

.article-card-v2__body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.article-card-v2__cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 4px;
}
.article-card-v2 h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--blue-deep);
  font-weight: 600;
  line-height: 1.25;
}
.article-card-v2--featured h3 { font-size: 1.4rem; }
.article-card-v2 p {
  font-size: 0.92rem;
  color: var(--blue);
  line-height: 1.55;
  margin: 4px 0 0;
}
.article-card-v2__meta {
  display: flex;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--blue);
  margin-top: auto;
  padding-top: 8px;
}

/* Search results section */
.section--articoli-search-results {
  padding: 90px 0;
  background: var(--cream);
}
.articoli-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.articoli-empty {
  text-align: center;
  padding: 40px;
  color: var(--blue);
  font-size: 1rem;
}
.articoli-empty a { color: var(--koi); font-weight: 600; }

/* Final CTA */
.section--articoli-final-cta {
  padding: 100px 0;
  background: var(--cream);
}
.articoli-final-cta {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-night) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 30px 60px -20px rgba(13, 59, 92, 0.5);
  position: relative;
  overflow: hidden;
}
.articoli-final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 140, 66, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(74, 157, 168, 0.25) 0%, transparent 50%);
}
.articoli-final-cta__text {
  position: relative;
  z-index: 1;
  max-width: 540px;
}
.articoli-final-cta .eyebrow {
  background: rgba(255, 230, 191, 0.15);
  color: #FFE6BF;
  border: 1px solid rgba(255, 230, 191, 0.3);
}
.articoli-final-cta h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--cream);
  font-weight: 600;
  margin: 14px 0 12px;
}
.articoli-final-cta h2 em { color: #FFE6BF; font-style: italic; }
.articoli-final-cta p {
  color: rgba(245, 235, 224, 0.85);
  line-height: 1.5;
  margin-bottom: 0;
}
.articoli-final-cta .btn { position: relative; z-index: 1; flex-shrink: 0; }

@media (max-width: 760px) {
  .articoli-hero { padding: 120px 0 50px; }
  .section--articoli-cat { padding: 60px 0; }
  .cat-section-head { flex-direction: column; align-items: flex-start; }
  .articoli-final-cta { padding: 36px 28px; flex-direction: column; align-items: flex-start; }
}

/* ============================================
   BLOG PAGE (tutti-gli-articoli) — infinite scroll
   ============================================ */
.page-blog { background: var(--cream); }

.blog-hero {
  padding: 130px 0 50px;
  background: linear-gradient(180deg, #DCEEF0 0%, var(--cream) 100%);
  text-align: center;
}
.blog-hero__breadcrumb {
  margin-bottom: 14px;
}
.blog-hero__breadcrumb a {
  color: var(--teal-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.3s;
}
.blog-hero__breadcrumb a:hover { color: var(--koi); }
.blog-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--blue-deep);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
}
.blog-hero h1 em { color: var(--teal-deep); font-style: italic; }
.blog-hero p { font-size: 1rem; color: var(--blue); }

.section--blog-content {
  background: var(--cream);
  padding: 40px 0 120px;
}
.blog-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 24px;
  background: var(--cream);
  border-radius: 100px;
  padding: 4px 4px 4px 22px;
  border: 2px solid rgba(13, 59, 92, 0.12);
  box-shadow: var(--shadow-paper);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.blog-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(74, 157, 168, 0.18);
}
.blog-search svg { color: var(--teal-deep); flex-shrink: 0; }
.blog-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--blue-deep);
  outline: none;
}
.blog-search input::placeholder { color: rgba(13, 59, 92, 0.45); }

.blog-filter {
  justify-content: center;
  margin-bottom: 18px;
}
.blog-count {
  text-align: center;
  font-size: 0.88rem;
  color: var(--blue);
  margin-bottom: 32px;
}
.blog-count span {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  color: var(--blue-deep);
  font-size: 1.1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  animation: blogCardIn 0.5s var(--ease) both;
  display: flex;
  flex-direction: column;
}
@keyframes blogCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
}
.blog-card__art {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.blog-card__art svg {
  width: 100%; height: 100%;
  display: block;
  transition: transform 0.6s var(--ease);
}
.blog-card:hover .blog-card__art svg { transform: scale(1.05); }
.blog-card__body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.blog-card__cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 2px;
}
.blog-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--blue-deep);
  font-weight: 600;
  line-height: 1.25;
}
.blog-card p {
  font-size: 0.9rem;
  color: var(--blue);
  line-height: 1.55;
  margin: 4px 0 0;
}
.blog-card__meta {
  display: flex;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--blue);
  margin-top: auto;
  padding-top: 8px;
}

.blog-sentinel { height: 20px; margin-top: 20px; }
.blog-loading {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 36px 0;
}
.blog-loading__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  animation: loadingPulse 1.2s ease-in-out infinite;
}
.blog-loading__dot:nth-child(2) { animation-delay: 0.15s; }
.blog-loading__dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes loadingPulse {
  0%, 100% { transform: scale(0.6); opacity: 0.4; }
  50%      { transform: scale(1.2); opacity: 1; }
}
.blog-end, .blog-empty {
  text-align: center;
  padding: 50px 24px;
  color: var(--blue);
  font-size: 0.98rem;
  max-width: 540px;
  margin: 40px auto 0;
}

/* === RICETTE PAGE === */
.page-ricette { background: var(--cream); }
.ricette-hero {
  position: relative;
  padding: 150px 0 80px;
  overflow: hidden;
  background: #FFF2E0 url('../assets/ricette-hero-bg.webp') center / cover no-repeat;
}
.ricette-hero__bg { display: none; }
.ricette-hero__bg > svg:first-child {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.ricette-hero__deco {
  position: absolute;
  z-index: 1;
  animation: floatDeco 8s ease-in-out infinite;
}
.ricette-hero__deco--1 { top: 18%; left: 8%; width: 80px; }
.ricette-hero__deco--2 { top: 24%; right: 10%; width: 90px; animation-duration: 10s; animation-direction: reverse; }
.ricette-hero__deco--3 { top: 60%; left: 14%; width: 70px; animation-duration: 9s; animation-delay: -2s; }
@keyframes floatDeco {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-12px) rotate(4deg); }
}

.ricette-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.ricette-hero__content h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  color: var(--blue-deep);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 22px;
}
.ricette-hero__content h1 em { color: var(--koi-deep); font-style: italic; }
.ricette-hero__content p {
  font-size: 1.1rem;
  color: var(--blue);
  line-height: 1.6;
}

.section--ricette-list {
  background: var(--cream);
  padding: 70px 0 100px;
}
.ricette-filter {
  justify-content: center;
  margin-bottom: 50px;
}
.recipe-grid--full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.recipe-grid--full .recipe-card {
  animation: recipeIn 0.6s var(--ease) both;
}
@keyframes recipeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CTA card at bottom */
.section--ricette-cta {
  background: linear-gradient(180deg, var(--cream) 0%, #F5E8D0 100%);
  padding: 80px 0 120px;
}
.ricette-cta-card {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-night) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(13, 59, 92, 0.5);
}
.ricette-cta-card::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.25) 0%, transparent 70%);
}
.ricette-cta-card::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -50px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(74, 157, 168, 0.25) 0%, transparent 70%);
}
.ricette-cta-card__text {
  position: relative;
  z-index: 1;
  max-width: 540px;
}
.ricette-cta-card .eyebrow {
  background: rgba(255, 230, 191, 0.15);
  border: 1px solid rgba(255, 230, 191, 0.3);
  color: #FFE6BF;
}
.ricette-cta-card h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  font-weight: 600;
  line-height: 1.05;
  margin: 14px 0 18px;
}
.ricette-cta-card h2 em { color: #FFE6BF; font-style: italic; }
.ricette-cta-card p {
  color: rgba(245, 235, 224, 0.85);
  line-height: 1.55;
  margin-bottom: 24px;
  font-size: 1rem;
}
.ricette-cta-card .btn--primary { background: var(--koi); }
.ricette-cta-card .btn--primary:hover { background: var(--koi-deep); }

@media (max-width: 720px) {
  .ricette-hero { padding: 130px 0 50px; }
  .ricette-hero__deco { display: none; }
  .ricette-cta-card { padding: 36px 28px; }
}

/* === TUTTI I PESCI PAGE === */
.tutti-hero {
  padding: 140px 0 50px;
  background: linear-gradient(180deg, #DCEEF0 0%, var(--cream) 100%);
  text-align: center;
}
.tutti-hero__breadcrumb {
  margin-bottom: 16px;
}
.tutti-hero__breadcrumb a {
  color: var(--teal-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.3s;
}
.tutti-hero__breadcrumb a:hover { color: var(--koi); }
.tutti-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--blue-deep);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}
.tutti-hero h1 em { color: var(--teal-deep); font-style: italic; }
.tutti-hero p {
  font-size: 1.05rem;
  color: var(--blue);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto;
}

.section--all-species-list {
  background: var(--cream);
  padding: 60px 0 120px;
}
.all-species-filter {
  justify-content: center;
  margin-bottom: 24px;
}
.all-species-filter .chip--alien {
  border-color: rgba(197, 68, 58, 0.25);
  color: #C5443A;
}
.all-species-filter .chip--alien.chip--active {
  background: #C5443A;
  color: var(--cream);
  border-color: #C5443A;
}
.all-species-filter .chip--protected {
  border-color: rgba(74, 157, 168, 0.35);
  color: var(--teal-deep);
}
.all-species-filter .chip--protected.chip--active {
  background: var(--teal-deep);
  color: var(--cream);
  border-color: var(--teal-deep);
}

.all-species-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 18px;
  background: var(--cream);
  border-radius: 100px;
  padding: 4px 4px 4px 22px;
  border: 2px solid rgba(13, 59, 92, 0.12);
  box-shadow: var(--shadow-paper);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.all-species-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(74, 157, 168, 0.18);
}
.all-species-search svg { color: var(--teal-deep); flex-shrink: 0; }
.all-species-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--blue-deep);
  outline: none;
}
.all-species-search input::placeholder { color: rgba(13, 59, 92, 0.45); }

.all-species-count {
  text-align: center;
  font-size: 0.88rem;
  color: var(--blue);
  margin-bottom: 32px;
}
.all-species-count span {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  color: var(--blue-deep);
  font-size: 1.1rem;
}

.all-species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.all-species-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--blue);
  font-size: 1.05rem;
}

.species-card {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-paper);
  border: 2px solid transparent;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  animation: speciesIn 0.5s var(--ease) both;
}
@keyframes speciesIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.species-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
}
.species-card--alien { border-color: rgba(197, 68, 58, 0.2); }
.species-card--alien:hover { border-color: rgba(197, 68, 58, 0.45); }
.species-card--protected { border-color: rgba(74, 157, 168, 0.25); }
.species-card--protected:hover { border-color: rgba(74, 157, 168, 0.55); }

.species-card__art {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.species-card__art svg {
  width: 100%; height: 100%;
  display: block;
  transition: transform 0.5s var(--ease);
}
.species-card:hover .species-card__art svg { transform: scale(1.06); }

.species-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}
.species-badge--alien {
  background: rgba(197, 68, 58, 0.92);
  color: #FFFFFF;
}
.species-badge--protected {
  background: rgba(46, 110, 142, 0.92);
  color: #FFFFFF;
}

.species-card__body { padding: 16px 18px 20px; }
.species-card__body h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--blue-deep);
  font-weight: 600;
  margin-bottom: 2px;
}
.species-card__sci {
  display: block;
  font-style: italic;
  color: var(--teal-deep);
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.species-card__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.species-card__meta span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  background: rgba(74, 157, 168, 0.15);
  color: var(--teal-deep);
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.species-card__meta span.tag-koi {
  background: rgba(255, 140, 66, 0.18);
  color: var(--koi-deep);
}

/* Modal extra badges: protetto (rosso) · alieno/alloctona (ambra) · velenoso (viola) */
.modal-badge--alien {
  background: rgba(214, 143, 46, 0.18);
  color: #B4740E;
}
.modal-badge--venomous {
  background: rgba(123, 63, 152, 0.16);
  color: #7B3F98;
}
.fish-modal__note--info {
  background: rgba(74, 157, 168, 0.12);
  border-left-color: var(--teal-deep);
  color: var(--blue-deep);
}

/* ============================================
   APP PAGE — Detailed features layout
   ============================================ */
.page-app { background: var(--cream); }

/* === APP HERO === */
.app-page-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, #DCEEF0 0%, #C5E4E7 60%, #A5D2D8 100%);
}
.app-page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.app-page-hero__bg svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.app-page-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.app-page-hero__text h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: var(--blue-deep);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 22px;
}
.app-page-hero__text h1 em { color: var(--teal-deep); font-style: italic; font-weight: 600; }
.app-page-hero__lead {
  font-size: 1.1rem;
  color: var(--blue);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 560px;
}
.app-page-hero__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.feature-chip {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--cream);
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border: 2px solid rgba(13, 59, 92, 0.12);
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-paper);
}
.feature-chip:hover {
  background: var(--blue-deep);
  color: var(--cream);
  border-color: var(--blue-deep);
  transform: translateY(-2px);
}

/* Phone mockup in hero */
.app-page-hero__phone {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-mock {
  position: relative;
  width: 280px;
  height: 560px;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 50px 90px -20px rgba(13, 59, 92, 0.5),
    0 30px 60px -30px rgba(13, 59, 92, 0.4),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  transform: rotate(-3deg);
  transition: transform 0.6s var(--ease);
}
.phone-mock:hover { transform: rotate(0deg) translateY(-6px); }
.phone-mock__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}
.phone-mock__screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #DCEEF0 0%, #B8E4F0 100%);
  border-radius: 28px;
  padding: 50px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
/* Variante "screenshot reale": l'immagine riempie lo schermo a tutto campo
   (niente padding/gradiente); gli angoli arrotondati li ritaglia
   .phone-mock__screen (border-radius + overflow:hidden) e il notch resta
   sopra come cornice. */
.phone-mock__screen--shot { padding: 0; background: #0D3B5C; }
.phone-mock__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.phone-mock__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-deep);
}
.phone-mock__brand { font-family: 'Fraunces', serif; }
.phone-mock__hero-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-paper);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.phone-mock__hero-card small { color: var(--blue); font-size: 0.72rem; }
.phone-mock__hero-card strong {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--blue-deep);
}
.phone-mock__score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}
.phone-mock__score-num {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--koi);
  line-height: 1;
}
.phone-mock__score-label {
  font-size: 0.7rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.phone-mock__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.phone-mock__tile {
  border-radius: 14px;
  padding: 14px 12px;
  box-shadow: var(--shadow-paper);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 72px;
}
.phone-mock__tile small {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(13, 59, 92, 0.7);
}
.phone-mock__tile span {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--blue-deep);
  font-size: 0.95rem;
}

/* === FEATURE ROWS === */
.app-features {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--cream) 0%, #F5EBE0 100%);
}
.app-features .section__head {
  margin-bottom: 100px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 60px 0;
  position: relative;
}
.feature-row + .feature-row {
  border-top: 1px dashed rgba(13, 59, 92, 0.15);
}
.feature-row--art-right .feature-row__art { order: 2; }
.feature-row--art-right .feature-row__text { order: 1; }

.feature-row__art {
  display: flex;
  justify-content: center;
}
.feature-art-card {
  width: 100%;
  max-width: 460px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-deep);
  transition: transform 0.5s var(--ease);
}
.feature-row:hover .feature-art-card {
  transform: translateY(-6px);
}
.feature-art-card svg,
.feature-art-card img {
  width: 100%; height: auto;
  display: block;
}
.feature-art-card img { border-radius: 12px; }

.feature-row__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--koi-deep);
  margin-bottom: 14px;
}
.feature-row__text h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--blue-deep);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.feature-row__text h3 em { color: var(--teal-deep); font-style: italic; font-weight: 600; }
.feature-row__desc {
  font-size: 1.05rem;
  color: var(--blue);
  line-height: 1.65;
  margin-bottom: 22px;
}
.feature-row__desc strong { color: var(--blue-deep); font-weight: 600; }

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-bullets li {
  position: relative;
  padding-left: 28px;
  color: var(--blue-deep);
  line-height: 1.5;
  font-size: 0.97rem;
}
.feature-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--koi);
  box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.18);
}
.feature-bullets li strong { color: var(--blue-deep); font-weight: 700; }

/* === FINAL CTA === */
.app-cta-final {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-night) 100%);
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.app-cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 140, 66, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(74, 157, 168, 0.25) 0%, transparent 50%);
}
.app-cta-final__inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.app-cta-final .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #FFE6BF;
  border: 1px solid rgba(255, 230, 191, 0.25);
}
.app-cta-final h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--cream);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 18px;
}
.app-cta-final h2 em { color: #FFE6BF; font-style: italic; }
.app-cta-final p {
  font-size: 1.1rem;
  color: rgba(245, 235, 224, 0.85);
  line-height: 1.55;
  margin-bottom: 32px;
}
.app-cta-final p strong { color: #FFE6BF; font-weight: 700; }
.app-cta-final .newsletter__note {
  color: rgba(245, 235, 224, 0.7);
}

@media (max-width: 880px) {
  .app-page-hero { padding: 130px 0 60px; }
  .app-page-hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .app-page-hero__phone { order: -1; }
  .phone-mock { transform: rotate(0deg); width: 240px; height: 480px; }
  .app-features { padding: 80px 0; }
  .app-features .section__head { margin-bottom: 60px; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; padding: 50px 0; }
  .feature-row--art-right .feature-row__art,
  .feature-row--art-right .feature-row__text { order: unset; }
  .app-cta-final { padding: 80px 0; }
}

/* ============================================
   COMING SOON — Dedicated section pages
   ============================================ */
.page-coming { background: var(--cream); }

.coming-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 0 280px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(74, 157, 168, 0.10) 0%, transparent 70%),
    linear-gradient(180deg, #FAF3E7 0%, #EFE3CC 100%);
}

.coming-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.coming-hero__waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 60%;
}
.coming-hero__waves svg {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 -8px 16px rgba(13, 59, 92, 0.18));
}

.coming-hero__decor {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.coming-hero__decor--left  { top: 18%; left: 4%;  width: 110px; opacity: 0.85; animation: floatDecor 8s ease-in-out infinite; }
.coming-hero__decor--right { top: 24%; right: 6%; width: 130px; opacity: 0.9;  animation: floatDecor 10s ease-in-out infinite reverse; }
@keyframes floatDecor {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-14px) rotate(3deg); }
}

.coming-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 24px;
  margin: 0 auto;
}
.coming-hero__content h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  color: var(--blue-deep);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 22px;
  font-weight: 600;
}
.coming-hero__content h1 em {
  color: var(--teal-deep);
  font-style: italic;
  font-weight: 600;
}
.coming-hero__lead {
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 32px;
  line-height: 1.6;
}

.coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-deep);
  color: var(--cream);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 36px;
  box-shadow: 0 16px 34px -10px rgba(13, 59, 92, 0.45);
}
.coming-badge::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--koi);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 140, 66, 0.6);
  animation: comingPulse 1.6s ease-in-out infinite;
}
@keyframes comingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 140, 66, 0.6); }
  50%      { box-shadow: 0 0 0 10px rgba(255, 140, 66, 0); }
}

.coming-pitch {
  color: var(--blue-deep);
  font-weight: 500;
  margin-bottom: 16px;
}

.coming-hero .newsletter { max-width: 460px; margin: 0 auto; }

.coming-back {
  margin-top: 36px;
  font-size: 0.92rem;
  color: var(--blue);
}
.coming-back a {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}
.coming-back a:hover { color: var(--koi); }

/* Active nav link state */
.nav__menu a.is-active { color: var(--koi); }
.nav__menu a.is-active::after { transform: scaleX(1); background: var(--koi); }

/* ============================================================================
   PAPER-CUT UI SYSTEM — bottoni, chip, eyebrow, tag, card (stile sottile/elegante)
   Solo CSS, niente immagini. Look "carta tagliata" coerente su tutto il sito:
   spessore-foglio (ombra solida sottile) + ombra morbida + micro-rotazione in
   hover + angoli "tagliati a mano" (raggio appena asimmetrico).
   ============================================================================ */

/* — Bottoni: foglio sollevato — */
.btn--primary  { box-shadow: 0 2px 0 rgba(8, 42, 71, 0.55), 0 11px 22px -10px rgba(13, 59, 92, 0.45); }
.btn--secondary{ box-shadow: 0 2px 0 rgba(200, 88, 22, 0.60), 0 11px 22px -10px rgba(255, 140, 66, 0.45); }
.btn--ghost    { box-shadow: 0 2px 0 rgba(13, 59, 92, 0.10), 0 9px 18px -10px rgba(13, 59, 92, 0.28); }
.btn--primary:hover, .btn--secondary:hover { transform: translateY(-3px) rotate(-0.5deg); }
.btn--ghost:hover { transform: translateY(-2px) rotate(-0.4deg); }
.btn:active { transform: translateY(-1px) rotate(0deg); }

/* Bottoni dei form (newsletter, ricerca zona) — stessa carta del primary */
.newsletter__btn, .zone-form__btn {
  box-shadow: 0 2px 0 rgba(8, 42, 71, 0.50), 0 9px 18px -10px rgba(13, 59, 92, 0.40);
}
.newsletter__btn:hover, .zone-form__btn:hover { transform: translateY(-2px) rotate(-0.5deg); }

/* — Chip / filtri — */
.chip {
  border-radius: 100px 100px 98px 100px;
  box-shadow: 0 1.5px 0 rgba(8, 42, 71, 0.12), 0 6px 12px -9px rgba(13, 59, 92, 0.30);
}
.chip:hover { transform: translateY(-2px) rotate(-0.6deg); }
.chip--active { box-shadow: 0 2px 0 rgba(8, 42, 71, 0.50), 0 8px 14px -8px rgba(13, 59, 92, 0.40); }

/* — Eyebrow / badge: carta sottile, angolo tagliato — */
.eyebrow {
  border-radius: 100px 100px 94px 100px;
  box-shadow: 0 1px 0 rgba(8, 42, 71, 0.08), 0 4px 9px -6px rgba(13, 59, 92, 0.22);
}

/* — Tag (articoli, schede pesce/dettaglio, ricette) — */
.article-card__tag, .detail-tag, .detail-badge,
.fish-card__meta span, .recipe-card__diff, .recipe-card__time, .article-card-v2__cat {
  box-shadow: 0 1px 0 rgba(8, 42, 71, 0.07), 0 3px 7px -5px rgba(13, 59, 92, 0.20);
}

/* — Card: profondità "carta su carta" + angoli tagliati a mano (③ accenti) — */
.fish-card, .article-card, .article-card-v2, .recipe-card, .feature-art-card, .detail-card {
  border-radius: 20px 20px 19px 21px;
}
.fish-card, .article-card, .recipe-card {
  box-shadow: 0 2px 0 rgba(8, 42, 71, 0.05), 0 16px 30px -22px rgba(13, 59, 92, 0.42);
}

/* CTA "Vedi tutti i pesci" sotto la galleria 3D del glossario (home) */
.glossario-cta { text-align: center; margin-top: 30px; position: relative; z-index: 2; }

/* ============================================================================
   SFONDI PAPER-CUT (AI) — meteo-mare, sezioni glossario, card CTA, errori.
   Pattern: testo scuro su immagine → velo chiaro in alto; pannelli scuri con
   testo chiaro → overlay scuro sopra l'immagine.
   ============================================================================ */

/* — meteo-mare: UN UNICO sfondo continuo dietro header + mappa — */
.meteo-top {
  background: #C5E4E7 url('../assets/meteo/header.webp') center / cover no-repeat;
  position: relative;
}
.meteo-header, .meteo-map-section { background: transparent; }

/* — meteo-mare: maree/pressione (velo chiaro uniforme, dati leggibili) — */
.section--meteo-tide-pressure {
  background: var(--cream) url('../assets/meteo/tide.webp') center / cover no-repeat;
  position: relative;
}
.section--meteo-tide-pressure::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; background: rgba(250,243,231,0.6);
}
.section--meteo-tide-pressure .container { position: relative; z-index: 1; }

/* — meteo-mare: fase lunare (notte; la card è opaca sopra) — */
.section--meteo-moon {
  background: #16233c url('../assets/meteo/moon.webp') center / cover no-repeat;
}

/* — glossario: solo sezione video (velo chiaro per il section__head) — */
.section--video-glossario { background: #F5E8D0 url('../assets/glossario/video.webp') center top / cover no-repeat; position: relative; }
.section--video-glossario::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(250,243,231,0.93) 0%, rgba(250,243,231,0.62) 28%, rgba(250,243,231,0) 56%);
}
.section--video-glossario .container { position: relative; z-index: 1; }

/* — CTA card: home (testo scuro → velo chiaro) — */
.section--cta {
  background: var(--sky) url('../assets/cta/home.webp') center / cover no-repeat;
}
.section--cta::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(197,228,231,0.86) 0%, rgba(197,228,231,0.45) 42%, rgba(197,228,231,0.12) 100%);
}
.section--cta .container { position: relative; z-index: 1; }

/* — CTA card: app + ricette (pannelli scuri, testo chiaro → overlay scuro) — */
.app-cta-final {
  background: linear-gradient(135deg, rgba(13,59,92,0.82), rgba(8,42,71,0.9)), url('../assets/cta/app.webp') center / cover no-repeat;
}
.ricette-cta-card {
  background: linear-gradient(135deg, rgba(13,59,92,0.82), rgba(8,42,71,0.9)), url('../assets/cta/ricette.webp') center / cover no-repeat;
}

/* Stato vuoto (nessun risultato) con illustrazione */
.empty-state { text-align: center; padding: 30px 0; }
.empty-state img { width: min(360px, 70%); border-radius: 16px; margin: 0 auto 18px; display: block; box-shadow: 0 18px 40px -24px rgba(13, 59, 92, 0.4); }

/* ============================================================================
   HERO "OBLÒ DEL SOTTOMARINO" — header home: fondale paper-cut + oblò (GSAP)
   (fondale z0, oblò z2, strappo z3, testo z4)
   ============================================================================ */
.hero-school {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* dynamic: copre lo schermo anche quando la barra URL mobile sparisce */
}
/* Con GSAP attivo (js aggiunge .has-dive) la sezione si allunga: lo spazio di
   scroll in più guida lo zoom dentro l'oblò mentre l'interno resta sticky. */
.hero-school.has-dive { height: 175vh; }

.hero-school__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh; /* dynamic: l'hero segue il viewport quando la barra URL mobile appare/sparisce */
  display: grid;
  place-items: center;
  overflow: hidden;
  /* fondale blu/turchese: acqua di carta, dal chiaro in superficie al teal profondo
     (fallback dietro l'immagine del fondale) */
  background: linear-gradient(180deg, #A8D8DE 0%, #4A9DA8 48%, #2E6E8E 100%);
}
.hero-school__sea {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}
/* Acqua profonda: a metà tuffo copre il fondale (e le sue onde) con un blu
   pulito — è lo sfondo del blocco "chi siamo" (opacità guidata dallo scrub) */
.hero-school__deep {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #2E6E8E 0%, #1B4E79 48%, #0E3A5F 100%);
  opacity: 0;
  pointer-events: none;
}
/* Bolle di carta che salgono mentre si scende (y guidata dallo scrub GSAP) */
.hero-school__bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-school__bubble {
  position: absolute;
  top: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.8) 0 16%, rgba(234, 246, 247, 0.26) 17% 100%);
  border: 2px solid rgba(255, 255, 255, 0.45);
  opacity: 0;
}
/* Parete del sottomarino: immagine + dettagli micro-animati che zoomano insieme */
.hero-school__wall {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform-origin: 50% 50%;
  will-change: transform;
  pointer-events: none;
}
.hero-school__oblo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Goccia di condensa che scivola sul vetro dell'oblò */
.hero-school__drop {
  position: absolute;
  width: 9px;
  height: 15px;
  border-radius: 50% 50% 55% 55% / 42% 42% 58% 58%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(214, 238, 242, 0.32));
  box-shadow: 0 1px 2px rgba(13, 59, 92, 0.2);
  opacity: 0;
}
/* "Chi siamo" — compare a metà tuffo, nell'acqua profonda */
.hero-school__about {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: min(1040px, calc(100% - 40px)); /* larga come il box Nostradamus (.hero-pesca) */
  text-align: center;
  pointer-events: none;
}
.hero-school__about [data-about-item] { opacity: 0; } /* entrano con lo scrub */
.hero-school__about-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFE6BF;
  background: rgba(255, 230, 191, 0.14);
  border: 1px solid rgba(255, 230, 191, 0.38);
  padding: 7px 16px;
  border-radius: 100px 100px 96px 100px;
  margin-bottom: 18px;
}
.hero-school__about-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  color: var(--cream);
  text-shadow: 0 3px 0 rgba(8, 32, 54, 0.4), 0 18px 38px rgba(5, 25, 44, 0.5);
  margin: 0 0 18px;
}
.hero-school__about-title em {
  font-style: italic;
  color: #FFD9A0;
}
.hero-school__about-text {
  font-size: clamp(0.98rem, 1.7vw, 1.15rem);
  line-height: 1.65;
  color: #D9ECF2;
  text-shadow: 0 2px 12px rgba(5, 25, 44, 0.5);
  max-width: 760px;
  margin: 0 auto 26px;
}
.hero-school__about-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-school__about-pills li {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cream);
  background: rgba(250, 243, 231, 0.12);
  border: 1.5px solid rgba(250, 243, 231, 0.4);
  padding: 9px 18px;
  /* raggi irregolari = bordo "ritagliato a mano" come il badge dell'hero */
  border-radius: 100px 96px 100px 92px;
  box-shadow: 0 6px 16px -8px rgba(5, 25, 44, 0.6);
  padding: 0; /* il padding passa all'<a> così TUTTA la pill è cliccabile */
  overflow: hidden;
}
.hero-school__about-pills a {
  display: block;
  padding: 9px 18px;
  color: var(--cream);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.hero-school__about-pills a:hover { color: #FFD9A0; }

.hero-school__content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 120px 24px 90px;
  max-width: 860px;
}
.hero-school__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFE6BF;
  background: rgba(255, 230, 191, 0.16);
  border: 1px solid rgba(255, 230, 191, 0.4);
  padding: 7px 16px;
  border-radius: 100px 100px 96px 100px;
  backdrop-filter: blur(8px);
  margin-bottom: 20px;
}
.hero-school__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: clamp(4.6rem, 17vw, 12.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cream);
  /* bordo-foglio scuro sotto le lettere = ritaglio sollevato dall'acqua */
  text-shadow: 0 4px 0 rgba(13, 59, 92, 0.35), 0 24px 46px rgba(8, 42, 71, 0.45);
  margin: 4px 0 12px;
}
.hero-school__letter { display: inline-block; will-change: transform, opacity; }
.hero-school__tag {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  color: #EAF6F7;
  text-shadow: 0 2px 14px rgba(13, 59, 92, 0.45);
  max-width: 560px;
  margin: 0 auto 30px;
}
.hero-school__word { display: inline-block; }
.hero-school__news { max-width: 480px; }

.hero-school__scroll-hint {
  position: absolute;
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(250, 243, 231, 0.92);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(13, 59, 92, 0.4);
}
.hero-school__scroll-line {
  position: relative;
  width: 2px;
  height: 42px;
  border-radius: 2px;
  background: rgba(250, 243, 231, 0.3);
  overflow: hidden;
}
.hero-school__scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  border-radius: 2px;
  background: var(--koi);
  animation: heroScrollDrop 1.8s var(--ease) infinite;
}
@keyframes heroScrollDrop { from { top: -50%; } to { top: 110%; } }

.hero-school__torn {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 56px;
  z-index: 3;
  display: block;
  filter: drop-shadow(0 -6px 10px rgba(13, 59, 92, 0.07));
}

@media (max-width: 640px) {
  /* tuffo più corto: su telefono lo scrub lungo pesa di più */
  .hero-school.has-dive { height: 145vh; }
  .hero-school__content { padding: 100px 18px 76px; }
  .hero-school__scroll-hint { bottom: 70px; }
}

/* ============================================================================
   MICRO-ANIMAZIONI PAPER-CUT (tutto il sito)
   ============================================================================ */

/* Parole dei titoli di sezione: rivelate una a una da GSAP (solo dove c'è) */
.split-w { display: inline-block; will-change: transform; }

/* Card: il sollevamento prende anche una micro-rotazione da "ritaglio in mano" */
.article-card:hover { transform: translateY(-6px) rotate(-0.5deg); }
.social-card:hover  { transform: translateY(-6px) rotate(-0.6deg); }
.video-card:hover   { transform: translateY(-6px) rotate(0.5deg); }
.fish-card:hover    { transform: translateY(-8px) rotateX(2deg) rotate(-0.4deg); }

/* NOTA: niente blocco prefers-reduced-motion — sui PC Windows con gli
   "Effetti animazione" di sistema spenti Chrome lo dichiara sempre e
   l'header/le micro-animazioni risulterebbero ferme (visto sul PC del team). */

/* ============================================
   BUILD INDEX — indici statici crawlabili generati da build.js
   ============================================ */
.build-index { padding: 48px 0 64px; }
.build-index__title {
  font-family: 'Fraunces', serif; font-weight: 800;
  font-size: 1.4rem; margin: 0 0 18px; color: var(--blue-deep, #0D3B5C);
}
.build-index__links { display: flex; flex-wrap: wrap; gap: 10px; }
.build-index__links a {
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(74, 157, 168, 0.12); color: var(--blue-deep, #0D3B5C);
  transition: background 0.2s ease, color 0.2s ease;
}
.build-index__links a:hover { background: var(--koi, #FF8C42); color: #fff; }

/* ============================================
   METEO — Intelligenza pesca portata dall'app (solunare, pescabilità v2,
   coeff. marea, didascalie "come si legge"). Palette papercut condivisa.
   ============================================ */

/* Bottoncino ⓘ "come si legge" */
.info-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 4px; padding: 0;
  border: none; border-radius: 50%; cursor: pointer; vertical-align: middle;
  background: var(--teal, #4A9DA8); color: #fff;
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 700;
  font-size: 0.62rem; line-height: 1; transition: transform 0.2s, background 0.2s;
}
.info-dot:hover { background: var(--blue-deep, #0D3B5C); transform: scale(1.12); }

/* Popover delle didascalie (un solo elemento condiviso, posizionato via JS) */
.caption-pop {
  position: absolute; z-index: 3000; max-width: 360px;
  background: var(--cream, #FAF3E7); color: var(--blue-deep, #0D3B5C);
  border: 1.5px solid rgba(13, 59, 92, 0.16); border-radius: 16px;
  box-shadow: var(--shadow-deep, 0 20px 40px -10px rgba(13,59,92,0.35));
  padding: 16px 18px 14px; font-size: 0.85rem; line-height: 1.5;
  animation: captionPop 0.22s var(--ease, cubic-bezier(0.22,1,0.36,1));
}
@keyframes captionPop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.caption-pop__close {
  position: absolute; top: 8px; right: 10px; border: none; background: none;
  color: var(--blue, #1E5F7E); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.caption-pop__title { font-family: 'Fraunces', serif; font-size: 1.02rem; font-weight: 700; margin: 0 18px 6px 0; color: var(--teal-deep, #2E6E8E); }
.caption-pop__what { margin: 0 0 10px; }
.caption-pop__row { margin-top: 8px; }
.caption-pop__tag {
  display: inline-block; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff; background: var(--teal, #4A9DA8);
  padding: 2px 8px; border-radius: 100px; margin-bottom: 4px;
}
.caption-pop__tag--fish { background: var(--koi-deep, #E8743C); }
.caption-pop__row p { margin: 2px 0 0; }

/* Dettaglio "perché" della pescabilità */
.fscore-detail { margin: 4px 0 14px; }
.fscore-detail > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--blue, #1E5F7E); padding: 6px 0;
}
.fscore-detail > summary::-webkit-details-marker { display: none; }
.fscore-detail > summary::before { content: '▸'; transition: transform 0.2s; color: var(--teal, #4A9DA8); }
.fscore-detail[open] > summary::before { transform: rotate(90deg); }
.fscore-breakdown { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; max-width: 720px; }
.fscore-row {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(74, 157, 168, 0.08); border-radius: 12px; padding: 8px 12px;
  font-size: 0.85rem;
}
.fscore-row__pts {
  flex: 0 0 auto; min-width: 34px; text-align: center;
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 0.92rem;
  border-radius: 8px; padding: 2px 6px;
}
.fscore-row__pts--up { color: #2A8E5A; background: rgba(42, 142, 90, 0.14); }
.fscore-row__pts--down { color: #C5443A; background: rgba(197, 68, 58, 0.14); }
.fscore-row__pts--flat { color: var(--blue, #1E5F7E); background: rgba(30, 95, 126, 0.1); }
.fscore-row__txt { color: var(--blue-deep, #0D3B5C); }
.fscore-row__txt strong { color: var(--teal-deep, #2E6E8E); }

/* Coefficiente di marea (acque vive/morte) nella card marea */
.tide-coeff { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; }
.tide-coeff__val {
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.3rem; line-height: 1;
  padding: 2px 10px; border-radius: 10px; color: #fff;
}
.tide-coeff__val--vivaforte { background: #2A8E5A; }
.tide-coeff__val--viva { background: var(--teal, #4A9DA8); }
.tide-coeff__val--media { background: #E8A040; }
.tide-coeff__val--morta { background: #9AA7AD; }
.tide-coeff__lbl { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue, #1E5F7E); }

/* ---- Pannello SOLUNARE ---- */
.solunar-panel {
  margin-top: 22px; padding: 26px 28px; border-radius: var(--radius, 24px);
  background: var(--cream, #FAF3E7); border: 1.5px solid rgba(13, 59, 92, 0.12);
  box-shadow: var(--shadow-soft, 0 10px 25px -5px rgba(13,59,92,0.2));
}
.solunar-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.solunar-rating {
  --sol-color: var(--teal, #4A9DA8);
  flex: 0 0 auto; width: 92px; height: 92px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--sol-color) 22%, var(--cream)) 0%, var(--cream) 72%);
  border: 4px solid var(--sol-color); color: var(--blue-deep, #0D3B5C);
}
.solunar-rating__num { font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--sol-color); }
.solunar-rating__lbl { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue, #1E5F7E); margin-top: 2px; }
.solunar-head__txt { flex: 1 1 240px; }
.solunar-head__txt h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 4px 0; color: var(--blue-deep, #0D3B5C); }
.solunar-head__txt h3 em { color: var(--teal-deep, #2E6E8E); font-style: italic; }
.solunar-next { font-size: 0.86rem; color: var(--blue, #1E5F7E); margin: 0; }
.solunar-next strong { color: var(--koi-deep, #E8743C); }
.solunar-periods { list-style: none; margin: 18px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.solunar-period {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px;
  background: rgba(74, 157, 168, 0.09); border-left: 4px solid var(--teal, #4A9DA8);
}
.solunar-period--major { border-left-color: var(--koi, #FF8C42); background: rgba(255, 140, 66, 0.1); }
.solunar-period.is-active { box-shadow: 0 0 0 2px var(--koi, #FF8C42); }
.solunar-period__kind { font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue, #1E5F7E); }
.solunar-period__label { font-weight: 600; font-size: 0.9rem; color: var(--blue-deep, #0D3B5C); }
.solunar-period__time { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.05rem; color: var(--teal-deep, #2E6E8E); }
.solunar-foot { font-size: 0.78rem; color: var(--blue, #1E5F7E); margin: 0; }
.solunar-foot strong { color: var(--teal-deep, #2E6E8E); }
@media (max-width: 640px) {
  .solunar-head { gap: 16px; }
  .solunar-rating { width: 76px; height: 76px; }
  .solunar-rating__num { font-size: 1.5rem; }
}

/* ============================================================================
   SI PESCA OGGI? — widget pescabilità above-the-fold (js/home-fishability.js)
   ============================================================================ */
/* "Si pesca oggi" vive DENTRO il tuffo, subito sotto "Chi siamo" (stesso schermo).
   Il blocco .hero-school__about è pointer-events:none → qui riattiviamo i click,
   ma solo quando il box è visibile (gestito via JS in hero-fish.js, onUpdate). */
.hero-pesca {
  margin: clamp(14px, 3vh, 28px) auto 0;
  /* il box Nostradamus esce più largo della colonna di testo (720px), centrato sul viewport */
  width: min(1040px, calc(100vw - 40px));
  position: relative; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.pesca-oggi__card--hero {
  padding: clamp(18px, 3vw, 26px) clamp(22px, 3.4vw, 34px);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(5,25,44,0.45), inset 0 1px 0 rgba(255,255,255,0.6);
}
/* Layout ORIZZONTALE: testo a sinistra, bottone a destra (card larga e bassa). */
.pesca-oggi__card--hero .pesca-oggi__intro {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  text-align: left;
  max-width: none;
  margin: 0;
}
/* quando il risultato è pronto, il JS fa hidden=true sull'intro: deve sparire
   davvero (il display:flex qui sopra batteva la regola [hidden] del browser). */
.pesca-oggi__card--hero .pesca-oggi__intro[hidden] { display: none; }
.pesca-oggi__card--hero .pesca-oggi__txt { flex: 1 1 auto; min-width: 0; }
.pesca-oggi__card--hero .pesca-oggi__title { font-size: clamp(1.3rem, 2.8vw, 1.8rem); margin: 4px 0 6px; }
.pesca-oggi__card--hero .pesca-oggi__lead { font-size: 0.92rem; line-height: 1.4; margin: 0; }
.pesca-oggi__card--hero .pesca-oggi__btn { flex: none; margin: 0; white-space: nowrap; }

/* Mobile: "Chi siamo" + box devono stare nello stesso schermo del tuffo →
   compattiamo (niente pills, lead del box nascosta, margini ridotti). */
@media (max-width: 640px) {
  .hero-school__about-pills { display: none; }
  .hero-school__about-title { margin-bottom: 12px; }
  .hero-school__about-text { margin-bottom: 16px; font-size: 0.95rem; line-height: 1.5; }
  .hero-pesca { margin-top: 12px; width: 100%; }
  .pesca-oggi__card--hero { padding: 16px 18px; }
  /* su telefono torna verticale e centrato (l'orizzontale non ci sta) */
  .pesca-oggi__card--hero .pesca-oggi__intro { flex-direction: column; text-align: center; gap: 12px; }
  .pesca-oggi__card--hero .pesca-oggi__title { font-size: 1.3rem; margin: 2px 0 0; }
  .pesca-oggi__card--hero .pesca-oggi__lead { display: none; }
  .pesca-oggi__card--hero .pesca-oggi__btn { margin: 0 auto; }
}

/* Quando si apre il RISULTATO pescabilità, il box dentro il tuffo crescerebbe oltre lo
   schermo e verrebbe TAGLIATO (lo sticky è height:100vh + overflow:hidden). Vale a OGNI
   risoluzione: prima lo sblocco era solo ≤820px, perciò su DESKTOP il pannello restava
   tagliato in basso (le card disciplina mozzate). home-fishability.js aggiunge
   .has-pesca-result: l'hero esce dallo sticky e si ALLUNGA in flusso normale → il box
   entra tutto, niente taglio, niente scroll interno.
   (Lo sticky è CSS, non un pin GSAP: cambiarlo non fa saltare lo scroll.) */
.hero-school.has-pesca-result { height: auto; }
.hero-school.has-pesca-result .hero-school__sticky {
  position: relative;
  height: auto;
  /* niente min-height:100dvh: l'hero sbloccato si dimensiona al CONTENUTO. Con il
     min-height su tablet/desktop (pannello ~490px < viewport) restava un grande
     riquadro blu vuoto sotto la card. */
  /* il pannello risultato può crescere in verticale (overflow-y visibile), ma gli
     elementi decorativi del tuffo (parete/contenuto oblò) NON devono sforare in
     orizzontale: con `overflow:visible` creavano scroll laterale (66–93px) sotto
     gli 820px. `overflow-x: clip` taglia solo l'asse X senza riattivare l'auto. */
  overflow-x: clip;
  overflow-y: visible;
  /* lo sticky è un grid con colonna `auto`: la dimensionava al max-content dei suoi
     figli (titolone "CUP8" + riga solunare non spezzata ≈ 413px), e #pesca-oggi
     risolveva il suo `width:100%` contro QUELLA colonna → card più larga della
     viewport (373px @320). Vincolando la colonna a minmax(0,1fr) il `100%` torna
     a valere la larghezza reale dello schermo. */
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: 92px 0 56px;
}
/* Ricostruiamo la struttura del tuffo in FLUSSO NORMALE: il titolone "CUP8" resta la
   PRIMA schermata (riga 1, alta quanto il viewport), poi "Chi siamo" + box scorrono
   sotto (riga 2). Così: in cima si vede SOLO il titolo (il box è sotto la piega →
   "sparisce" come prima); scrollando giù appaiono insieme "Chi siamo" e il box, leggibili
   per intero (niente clip, niente riquadro vuoto). Le due voci sono così davvero collegate. */
.hero-school.has-pesca-result .hero-school__content {
  grid-row: 1;
  min-height: 100dvh;
}
.hero-school.has-pesca-result .hero-school__about {
  grid-row: 2;
  position: relative;
  top: auto; left: auto;
  transform: none;
  margin: 0 auto;
  padding-bottom: 8px;
}
/* Box pescabilità in flusso normale. Annulla il trucco di centratura sul viewport
   (left:50% + translateX): con transform:none qui sopra il translateX sparirebbe e il
   box resterebbe spinto a destra e FUORI schermo (overflow orizzontale). Lo rendiamo
   quindi un blocco a piena larghezza dell'about (che è già max 1040px e centrato).
   NB: opacity:1 SENZA !important → lo scrub GSAP del tuffo può ancora abbassarla
   scrollando verso l'alto, così il box SPARISCE insieme a "Chi siamo" (sono una sola
   sezione del tuffo); con !important restava appeso in cima. */
.hero-school.has-pesca-result #pesca-oggi {
  opacity: 1;
  position: relative;
  left: auto;
  transform: none !important;
  width: 100%;
  max-width: 100%;
  /* stacco dai 3 pill (Meteo/Glossario/News) sopra: senza, il box li toccava */
  margin: clamp(20px, 4vh, 32px) 0 0;
}
/* Le bolle restano nascoste (decorazione del tuffo). La PARETE/OBLÒ invece NON va
   nascosta: tornando in cima (scrub a progress 0) la sua scala torna 1 e mostra l'oblò
   del sottomarino — la "parte iniziale dell'header" della home. La vincoliamo però alla
   PRIMA schermata (height:100dvh) così non si stira sull'hero allungato; l'overflow-x:clip
   dello sticky assorbe la sua scala 8.5× a fine tuffo (invisibile, opacity 0). */
.hero-school.has-pesca-result .hero-school__bubbles { display: none; }
.hero-school.has-pesca-result .hero-school__wall { height: 100dvh; bottom: auto; }
/* col risultato espanso il tuffo è "finito": nascondi il suggerimento di scroll
   (altrimenti "SCORRI PER IMMERGERTI" + linea si sovrappongono al box). */
.hero-school.has-pesca-result .hero-school__scroll-hint { display: none; }

.pesca-oggi__card {
  position: relative;
  margin-top: 0;
  /* sfondo paper-cut generato + overlay crema per la leggibilità del testo;
     #FFFFFF come fallback se l'immagine non è ancora disponibile */
  background-color: #FFFFFF;
  background-image:
    linear-gradient(180deg, rgba(250,243,231,0.93) 0%, rgba(250,243,231,0.80) 52%, rgba(245,235,224,0.66) 100%),
    url('../assets/pesca-oggi-bg.webp');
  background-size: cover, cover;
  background-position: center, center bottom;
  background-repeat: no-repeat, no-repeat;
  border: 1px solid rgba(13,59,92,0.10);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(13,59,92,0.16), inset 0 1px 0 rgba(255,255,255,0.6);
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
}
.pesca-oggi__intro { text-align: center; max-width: 640px; margin: 0 auto; }
.pesca-oggi__intro .eyebrow { color: var(--koi, #FF8C42); }
.pesca-oggi__title { font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-size: clamp(1.8rem, 5vw, 2.7rem); color: var(--ink, #0D3B5C); margin: 10px 0 10px; line-height: 1.08; }
/* piccolo respiro a destra: l'overhang del corsivo "oggi" tocca la parola seguente */
.pesca-oggi__title em { font-style: italic; color: var(--koi, #FF8C42); padding-right: .1em; }
.pesca-oggi__lead { color: var(--blue, #1E5F7E); font-size: 1.04rem; line-height: 1.5; margin: 0 auto 26px; max-width: 520px; }
.pesca-oggi__btn { margin: 0 auto; box-shadow: 0 10px 26px rgba(255,140,66,0.35); }
.pesca-oggi__alt { display: inline-block; margin-top: 16px; color: var(--teal-deep, #2E6E8E); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.pesca-oggi__alt:hover { text-decoration: underline; color: var(--koi, #FF8C42); }

.po-res__err { text-align: center; color: var(--blue, #1E5F7E); margin: 0; }
.po-res__err a { color: var(--koi, #FF8C42); font-weight: 700; text-decoration: none; }

.po-res { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 40px); align-items: center; }
.po-res__score {
  display: grid; place-items: center; align-content: center;
  width: clamp(120px, 26vw, 168px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 22%, #fff), color-mix(in srgb, var(--c) 6%, #fff));
  border: 3px solid color-mix(in srgb, var(--c) 45%, #fff);
  box-shadow: inset 0 2px 14px color-mix(in srgb, var(--c) 18%, transparent);
}
.po-res__num { font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1; color: var(--c); }
.po-res__max { font-size: 0.85rem; font-weight: 700; color: var(--blue, #1E5F7E); opacity: 0.7; margin-top: 2px; }
.po-res__verdict { margin-top: 6px; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.82rem; }
.po-res__body { min-width: 0; }
/* Variante "in pagina" (es. fine di meteo-mare): flusso normale, non il breakout del hero. */
.meteo-nostra { margin: clamp(36px,6vw,72px) auto; }
/* Variante "pagina" (meteo-mare, sezione autonoma): NON è dentro il tuffo della home,
   quindi i click vanno SEMPRE attivi. Senza questo eredita pointer-events:none da
   .hero-pesca (riattivato sulla home solo dal JS del tuffo) e il bottone "Attiva
   posizione" risulta non cliccabile. */
.hero-pesca--page { position: static; left: auto; transform: none; width: 100%; max-width: 1040px; margin: clamp(32px, 6vw, 64px) auto 0; pointer-events: auto; }
.hero-pesca--page .pesca-oggi__card--hero { background: #fff; box-shadow: 0 18px 44px rgba(13,59,92,0.14), inset 0 1px 0 rgba(255,255,255,0.6); }
/* Indicazioni qualitative (niente numeri grezzi: onde/vento/marea li vede l'utente altrove). */
.po-res__cond { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 0; }
.po-res__cond li { background: #F4F8F6; border: 1px solid rgba(13,59,92,0.08); border-radius: 999px; padding: 5px 12px; font-size: 0.82rem; font-weight: 700; color: var(--blue, #1E5F7E); }
.po-res__headline { font-family: 'Fraunces', serif; font-size: clamp(1.15rem, 3vw, 1.5rem); color: var(--ink, #0D3B5C); margin: 0 0 8px; line-height: 1.2; }
.po-res__headline strong { color: var(--c); }
.po-res__solunar { margin: 0 0 12px; color: var(--teal-deep, #2E6E8E); font-weight: 600; font-size: 0.95rem; }
.po-res__tech { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.po-res__tech-lbl { font-size: 0.72rem; font-weight: 700; color: var(--blue, #1E5F7E); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 2px; }
.po-tech { font-family: inherit; cursor: pointer; font-size: 0.82rem; font-weight: 700; color: var(--blue, #1E5F7E);
  background: #F4F8F6; border: 2px solid rgba(13,59,92,0.12); border-radius: 999px; padding: 5px 12px; transition: all .15s; }
.po-tech:hover { border-color: var(--teal, #4A9DA8); }
.po-tech.is-on { background: var(--blue, #0D3B5C); color: #fff; border-color: var(--blue, #0D3B5C); }
.po-fc { margin: 4px 0 0; }
.po-fc__t { display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue, #1E5F7E); margin-bottom: 6px; }
.po-fc__strip { display: flex; gap: 6px; flex-wrap: wrap; }
.po-fc__day { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 42px; flex: 1; background: #F4F8F6; border: 1px solid rgba(13,59,92,0.08); border-radius: 10px; padding: 6px 4px; }
.po-fc__dow { font-size: 0.6rem; font-weight: 700; color: var(--blue, #1E5F7E); text-transform: uppercase; }
.po-fc__score { font-size: 0.82rem; font-weight: 800; color: #fff; border-radius: 7px; padding: 2px 7px; min-width: 26px; text-align: center; }
.po-res__src { display: inline-block; margin-left: 8px; vertical-align: middle; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.02em; color: #fff; background: var(--teal-deep, #2E6E8E); border-radius: 999px;
  padding: 3px 9px; text-decoration: none; white-space: nowrap; }
.po-res__src:hover { background: var(--koi, #FF8C42); }
/* 3 card "consigli per disciplina" (icone riusate dalla sezione account) */
.po-cats { margin: clamp(18px, 3vw, 26px) 0 0; }
.po-cats__t { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue, #1E5F7E); margin-bottom: 10px; }
.po-cats__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 14px); }
.po-cat { display: flex; flex-direction: column; gap: 6px; background: #F4F8F6; border: 1px solid rgba(13,59,92,0.08); border-top: 5px solid var(--cc, #4A9DA8); border-radius: 16px; padding: 16px 15px; }
.po-cat__head { display: flex; align-items: center; gap: 11px; }
.po-cat__icon { width: 52px; height: 52px; display: grid; place-items: center; font-size: 2.3rem; line-height: 1; flex: none; }
.po-cat__icon img { width: 52px; height: 52px; object-fit: contain; }
.po-cat__label { font-weight: 800; font-size: 0.82rem; color: var(--ink, #0D3B5C); line-height: 1.12; }
.po-cat__score { margin-left: auto; font-family: 'Fraunces', serif; font-weight: 900; font-size: 1.5rem; color: var(--cc, #4A9DA8); line-height: 1; }
.po-cat__verdict { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cc, #4A9DA8); }
.po-cat__tip { font-size: 0.8rem; color: var(--blue, #1E5F7E); line-height: 1.35; }
@media (max-width: 560px) { .po-cats__grid { grid-template-columns: 1fr; } }
/* "Orari migliori oggi" + finestra taglia (pannello pescabilità, meteo-mare) */
.po-bestwins { margin: clamp(16px, 2.6vw, 22px) 0 0; padding: 14px 16px; background: #F2F8F9; border: 1px solid rgba(13,59,92,0.10); border-radius: 14px; }
.po-bw__title { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue, #1E5F7E); margin-bottom: 10px; }
.po-bw__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.po-bw { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: #33444f; }
.po-bw--taglia { background: #FFF4E6; border: 1px solid #F3D2A3; border-radius: 9px; padding: 5px 9px; margin: -2px -5px; }
.po-bw__star { font-size: 0.66rem; min-width: 30px; line-height: 1; }
.po-bw__range { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 102px; color: var(--blue, #1E5F7E); }
.po-bw__label { color: #5a6b78; }
.po-bw__tag { margin-left: auto; font-size: 0.72rem; font-weight: 800; color: #C47A1E; white-space: nowrap; }
.po-bw__taglia { margin: 10px 0 0; font-size: 0.84rem; line-height: 1.45; color: #7A4A12; }
.po-bw__op { font-size: 0.68rem; font-weight: 800; color: #6B4BD6; white-space: nowrap; }
@media (max-width: 560px) { .po-bw__range { min-width: 90px; } .po-bw__label { font-size: 0.8rem; } }
/* Chip "Nostradamus" sulla card pescabilità sotto la mappa */
.fscore-src { display: inline-block; margin-top: 6px; font-size: 0.7rem; font-weight: 800; color: #6B4BD6; text-decoration: none; }
.fscore-src:hover { text-decoration: underline; }
/* "Pesci del periodo" + nota confidenza/interpolazione (pannello pescabilità) */
.po-fish { margin: clamp(16px, 2.6vw, 22px) 0 0; padding: 14px 16px; background: #EEF6EF; border: 1px solid #CFE6D3; border-radius: 14px; }
.po-fish__title { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #1D6B3A; }
.po-fish__lead { margin: 6px 0 10px; font-size: 0.86rem; color: #3A5A44; }
.po-fish__group { margin-top: 10px; }
.po-fish__gl { display: block; font-size: 0.74rem; font-weight: 800; color: #2f7a4a; margin-bottom: 6px; }
.po-fish__grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.po-fish__chip { background: #fff; border: 1px solid #CFE6D3; border-radius: 999px; padding: 5px 13px; font-size: 0.84rem; font-weight: 700; color: #1D6B3A; text-transform: capitalize; }
.po-fish__note { margin: 10px 0 0; font-size: 0.76rem; color: #6e8675; }
.po-note { margin: 10px 0 0; font-size: 0.78rem; color: #8A6D1E; }
.po-res__approx { margin: 4px 0 0; font-size: 0.8rem; font-weight: 600; color: #8A6D1E; }
/* Feedback "com'è andata?" — seme del feedback loop di calibrazione */
.po-fb { margin: clamp(16px, 2.6vw, 22px) 0 0; padding: 12px 16px; background: #FFF7EC; border: 1px solid #F0DDBE; border-radius: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.po-fb__q { font-size: 0.9rem; font-weight: 800; color: #8A5A12; }
.po-fb__q small { font-weight: 500; color: #a98a5e; }
.po-fb__btns { display: flex; gap: 8px; }
.po-fb__btn { border: 1px solid #E0C79A; background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 0.84rem; font-weight: 700; color: #8A5A12; cursor: pointer; transition: background 0.15s; }
.po-fb__btn:hover { background: #FFF0D6; }
.po-fb__thanks { font-size: 0.88rem; font-weight: 700; color: #2A8E5A; }
.po-res__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 14px; }
.po-res__chips li { background: #F4F8F6; border: 1px solid rgba(13,59,92,0.08); border-radius: 999px; padding: 5px 12px; font-size: 0.82rem; font-weight: 600; color: var(--blue, #1E5F7E); }
.po-res__why { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 7px; }
.po-res__why li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--blue, #1E5F7E); }
.po-res__why strong { color: var(--ink, #0D3B5C); }
.po-pts { flex: none; min-width: 34px; text-align: center; border-radius: 7px; font-weight: 800; font-size: 0.8rem; padding: 2px 6px; }
.po-pts--up { background: rgba(42,142,90,0.14); color: #2A8E5A; }
.po-pts--down { background: rgba(197,68,58,0.13); color: #C5443A; }
.po-pts--flat { background: rgba(30,95,126,0.10); color: #1E5F7E; }
.po-res__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ghost { background: transparent; border: 1.5px solid rgba(13,59,92,0.18); color: var(--ink, #0D3B5C); }
.btn--ghost:hover { border-color: var(--koi, #FF8C42); color: var(--koi, #FF8C42); }

@media (max-width: 640px) {
  .po-res { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .po-res__chips, .po-res__why { justify-content: center; }
  .po-res__why li { text-align: left; }
  .po-res__ctas { justify-content: center; }
}

/* ============================================================================
   RICERCA SITO — barra in home (js/search.js)
   ============================================================================ */
.site-search { padding: 36px 0 8px; }
.site-search .container { position: relative; max-width: 680px; }
.site-search__box {
  display: flex; align-items: center; gap: 10px;
  background: #FFFFFF;
  border: 1.5px solid rgba(13,59,92,0.12);
  border-radius: 999px;
  padding: 4px 6px 4px 18px;
  box-shadow: 0 10px 30px rgba(13,59,92,0.10);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.site-search__box:focus-within { border-color: var(--koi, #FF8C42); box-shadow: 0 12px 34px rgba(13,59,92,0.16); }
.site-search__icon { color: var(--teal-deep, #2E6E8E); flex: none; }
.site-search__input {
  flex: 1 1 auto; min-width: 0; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 1.02rem; color: var(--ink, #0D3B5C); padding: 12px 0;
}
.site-search__input::placeholder { color: #7A93A6; }
.site-search__clear {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: #F0F4F2; color: var(--blue, #1E5F7E); font-size: 0.9rem; line-height: 1;
}
.site-search__clear:hover { background: #E2EAE6; }
.site-search__results {
  list-style: none; margin: 8px 0 0; padding: 6px;
  position: absolute; left: 0; right: 0; z-index: 30;
  background: #FFFFFF; border: 1px solid rgba(13,59,92,0.10); border-radius: 18px;
  box-shadow: 0 20px 50px rgba(13,59,92,0.18); max-height: 60vh; overflow-y: auto;
}
.site-search__item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; cursor: pointer;
}
.site-search__item:hover, .site-search__item.is-active { background: #F4F8F6; }
.site-search__ic { flex: none; font-size: 1.1rem; width: 24px; text-align: center; }
.site-search__txt { flex: 1 1 auto; min-width: 0; color: var(--ink, #0D3B5C); font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-search__badge { flex: none; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--teal-deep, #2E6E8E); background: #EAF2F0; border-radius: 999px; padding: 3px 9px; }
.site-search__empty { padding: 14px; text-align: center; color: var(--blue, #1E5F7E); list-style: none; }

/* ============================================================================
   CALENDARIO DI PESCA (calendario.html + js/calendario-page.js)
   ============================================================================ */
.cal-hero { padding: 120px 0 28px; text-align: center; background: linear-gradient(180deg, #EAF4F2 0%, #FFFFFF 100%); }
.cal-hero h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-size: clamp(2rem, 6vw, 3.2rem); color: var(--ink, #0D3B5C); margin: 8px 0 12px; }
.cal-hero h1 em { font-style: italic; color: var(--koi, #FF8C42); }
.cal-hero p { max-width: 600px; margin: 0 auto; color: var(--blue, #1E5F7E); }

.section--calendario { padding-top: 18px; }
.cal-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.cal-citywrap { display: flex; flex-direction: column; gap: 5px; font-size: 0.8rem; font-weight: 700; color: var(--teal-deep, #2E6E8E); text-transform: uppercase; letter-spacing: 0.04em; }
.cal-city { font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--ink, #0D3B5C); padding: 10px 14px; border-radius: 12px; border: 1.5px solid rgba(13,59,92,0.14); background: #fff; min-width: 200px; }
.cal-nav { display: flex; align-items: center; gap: 14px; }
.cal-navbtn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(13,59,92,0.14); background: #fff; color: var(--ink, #0D3B5C); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cal-navbtn:hover { border-color: var(--koi, #FF8C42); color: var(--koi, #FF8C42); }
.cal-monthlabel { font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.25rem; color: var(--ink, #0D3B5C); min-width: 180px; text-align: center; text-transform: capitalize; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell { border-radius: 12px; }
.cal-cell--head { text-align: center; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--teal-deep, #2E6E8E); padding: 6px 0; }
.cal-cell--empty { background: transparent; }
.cal-day {
  position: relative; aspect-ratio: 1; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid rgba(13,59,92,0.08); background: #fff; cursor: pointer; padding: 4px;
  border-bottom: 4px solid var(--c, #9DB4C0); transition: transform .12s ease, box-shadow .12s ease;
}
.cal-day:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,59,92,0.12); }
.cal-day.is-selected { box-shadow: 0 0 0 2px var(--c, #4A9DA8); }
.cal-day.is-today .cal-day__n { color: var(--koi, #FF8C42); }
.cal-day__n { font-weight: 800; font-size: 0.95rem; color: var(--ink, #0D3B5C); }
.cal-day__moon { font-size: 0.8rem; line-height: 1; }
.cal-day__rating { font-family: 'Fraunces', serif; font-weight: 800; font-size: 0.85rem; color: var(--c, #4A9DA8); }

.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 18px 0 6px; font-size: 0.82rem; color: var(--blue, #1E5F7E); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

.cal-detail { margin-top: 20px; background: #fff; border: 1px solid rgba(13,59,92,0.08); border-radius: 18px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 12px 36px rgba(13,59,92,0.10); }
.cal-detail__empty { text-align: center; color: var(--blue, #1E5F7E); margin: 0; }
.cal-detail__head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.cal-detail__rating { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: color-mix(in srgb, var(--c) 14%, #fff); border: 3px solid color-mix(in srgb, var(--c) 40%, #fff); }
.cal-detail__rating span { font-family: 'Fraunces', serif; font-weight: 900; font-size: 1.7rem; color: var(--c); line-height: 1; }
.cal-detail__rating small { font-size: 0.7rem; color: var(--blue, #1E5F7E); }
.cal-detail__head h3 { font-family: 'Fraunces', serif; margin: 0 0 4px; color: var(--ink, #0D3B5C); text-transform: capitalize; }
.cal-detail__q { margin: 0; font-weight: 600; text-transform: capitalize; }
.cal-periods { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 14px; }
.cal-period { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: 12px; background: #F4F8F6; border: 1px solid rgba(13,59,92,0.08); }
.cal-period--major { background: #EAF5EE; border-color: rgba(42,142,90,0.25); }
.cal-period__kind { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--teal-deep, #2E6E8E); }
.cal-period--major .cal-period__kind { color: #2A8E5A; }
.cal-period__time { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.05rem; color: var(--ink, #0D3B5C); }
.cal-detail__foot { font-size: 0.85rem; color: var(--blue, #1E5F7E); margin: 0; }
.cal-detail__foot a { color: var(--koi, #FF8C42); font-weight: 700; text-decoration: none; }

@media (max-width: 560px) {
  .cal-day { min-height: 48px; border-bottom-width: 3px; }
  .cal-day__moon { display: none; }
  .cal-monthlabel { min-width: 130px; font-size: 1.05rem; }
  .cal-grid { gap: 4px; }
}

/* ============================================================================
   BANNER CONSENSO COOKIE (js/consent.js)
   ============================================================================ */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  max-width: 720px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between;
  background: #0D3B5C; color: #FAF3E7;
  border-radius: 16px; padding: 16px 20px;
  box-shadow: 0 18px 50px rgba(13,59,92,0.40);
  transform: translateY(160%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.cookie-banner.is-in { transform: translateY(0); }
.cookie-banner__txt { margin: 0; font-size: 0.88rem; line-height: 1.45; flex: 1 1 280px; }
.cookie-banner__txt a { color: #FFD9A0; }
.cookie-banner__btns { display: flex; gap: 10px; flex: none; }
.cookie-banner__btn { border: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 0.85rem; padding: 10px 18px; border-radius: 999px; }
.cookie-banner__btn--no { background: transparent; color: #FAF3E7; border: 1.5px solid rgba(250,243,231,0.35); }
.cookie-banner__btn--no:hover { border-color: #FAF3E7; }
.cookie-banner__btn--yes { background: #FF8C42; color: #fff; }
.cookie-banner__btn--yes:hover { background: #ff7a26; }
@media (max-width: 520px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner__btns { justify-content: center; }
}

/* ============================================
   POPUP PROFILAZIONE ISCRIZIONE APP
   (form newsletter con data-newsletter-profile)
   ============================================ */
.lead-modal-open { overflow: hidden; }

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 42, 71, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  overflow-y: auto;
}
.lead-modal.is-open { opacity: 1; }

.lead-modal__card {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: auto;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  padding: 36px 32px 28px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s var(--ease);
}
.lead-modal.is-open .lead-modal__card { transform: translateY(0) scale(1); }

.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--cream-soft);
  color: var(--blue-deep);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.lead-modal__close:hover { background: var(--sky); }

.lead-modal__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 6px;
}
.lead-modal__title {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  color: var(--blue-deep);
  margin-bottom: 10px;
}
.lead-modal__beta {
  font-size: 0.92rem;
  color: var(--blue);
  margin-bottom: 22px;
}
.lead-modal__beta strong { color: var(--koi-deep); }

.lead-modal__group { margin-bottom: 18px; }
.lead-modal__label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-deep);
  margin-bottom: 8px;
}
.lead-modal__label em { font-weight: 400; color: var(--teal-deep); font-style: normal; opacity: 0.85; }

.lead-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-chip {
  border: 1.5px solid rgba(46, 110, 142, 0.3);
  background: #fff;
  color: var(--blue);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.lead-chip:hover { border-color: var(--teal); }
.lead-chip.is-on {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
  box-shadow: var(--shadow-paper);
}

.lead-modal__select,
.lead-modal__textarea {
  width: 100%;
  border: 1.5px solid rgba(46, 110, 142, 0.3);
  border-radius: 14px;
  background: #fff;
  color: var(--blue-deep);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  padding: 12px 14px;
  transition: border-color 0.18s var(--ease);
}
.lead-modal__select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.lead-modal__textarea { resize: vertical; min-height: 76px; }
.lead-modal__select:focus,
.lead-modal__textarea:focus { outline: none; border-color: var(--teal); }

.lead-modal__actions { margin-top: 24px; }
.lead-modal__submit {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: var(--koi);
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 15px 24px;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.1s var(--ease);
}
.lead-modal__submit:hover { background: var(--koi-deep); }
.lead-modal__submit:active { transform: scale(0.99); }
.lead-modal__submit:disabled { opacity: 0.65; cursor: default; }

.lead-modal__error {
  display: block;
  margin-top: 12px;
  color: #c0392b;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 520px) {
  .lead-modal { padding: 0; align-items: flex-end; }
  .lead-modal__card {
    max-width: none;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 30px 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-modal,
  .lead-modal__card { transition: opacity 0.12s linear; transform: none; }
}
