/* =====================================================================
   CAMEROTALIVE — FOGLIO DI STILE
   Indice: 1 Variabili · 2 Base · 3 Layout · 4 Header · 5 Pulsanti
           6 Webcam · 7 Sezioni · 8 Schede · 9 Pubblicità · 10 Pagine
           11 Footer · 12 Utilità · 13 Responsive · 14 Movimento ridotto
   ===================================================================== */

/* 1 ─ Variabili ------------------------------------------------------ */
:root {
  --blue-900: #0A2A40;
  --blue-800: #103B59;
  --blue-600: #0F7697;   /* blu mediterraneo scurito: testo/link su chiaro (AA) */
  --blue-500: #168FB5;
  --teal-400: #48BFC6;
  --teal-200: #BDE7EA;
  --sand-100: #F3EFE7;
  --sand-50:  #FAF8F4;
  --ink-900:  #26343D;
  --ink-600:  #52616B;
  --line:     #E2DCD0;
  --white:    #FFFFFF;
  --live:     #E5383B;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 59, 89, .08), 0 2px 8px rgba(16, 59, 89, .06);
  --shadow: 0 10px 30px -12px rgba(10, 42, 64, .35);
  --shadow-lg: 0 30px 60px -25px rgba(0, 0, 0, .55);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2 ─ Base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--blue-800); }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-800); }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--teal-200); color: var(--blue-900); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--white); color: var(--blue-800); padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600; box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3 ─ Layout --------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--sand { background: var(--sand-100); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section__head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: .75rem;
}
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--ink-600); }

/* 4 ─ Header --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 42, 64, .92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .5); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: inline-flex; align-items: center; color: var(--white); text-decoration: none; flex-shrink: 0; }
.logo svg { height: 36px; width: auto; }
.logo:hover { color: var(--white); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: rgba(255, 255, 255, .86); text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: background-color .2s, color .2s;
}
.site-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.site-nav a[aria-current="page"] { color: var(--white); background: rgba(72, 191, 198, .18); box-shadow: inset 0 0 0 1px rgba(72, 191, 198, .45); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 5 ─ Pulsanti ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue-800); color: var(--white); }
.btn--primary:hover { background: var(--blue-900); color: var(--white); }
.btn--accent { background: var(--teal-400); color: var(--blue-900); }
.btn--accent:hover { background: #5fd0d6; color: var(--blue-900); }
.btn--ghost { background: transparent; color: var(--blue-800); border-color: rgba(16, 59, 89, .25); }
.btn--ghost:hover { border-color: var(--blue-800); color: var(--blue-800); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--ghost-light:hover { color: var(--white); border-color: var(--white); background: rgba(255,255,255,.06); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* 6 ─ Webcam --------------------------------------------------------- */
.hero-cam {
  position: relative; color: var(--white);
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(72, 191, 198, .22), transparent 60%),
    linear-gradient(180deg, var(--blue-900) 0%, var(--blue-800) 70%, #14496c 100%);
  padding: clamp(20px, 4vw, 48px) 0 clamp(36px, 5vw, 64px);
  overflow: hidden;
}
.hero-cam::after {
  /* onda decorativa di chiusura */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
  background: var(--white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 28' preserveAspectRatio='none'%3E%3Cpath d='M0 28V14C240 0 480 0 720 14s480 14 720 0v14z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 28' preserveAspectRatio='none'%3E%3Cpath d='M0 28V14C240 0 480 0 720 14s480 14 720 0v14z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero-cam__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(14px, 2.5vw, 24px); }
.hero-cam h1 { color: var(--white); margin: 0 0 .2em; }
.hero-cam__sub { margin: 0; color: rgba(255, 255, 255, .78); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.hero-cam__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 16px; font-size: .92rem; color: rgba(255, 255, 255, .75); }
.hero-cam__meta a { color: var(--teal-200); }
.hero-cam__meta a:hover { color: var(--white); }
.place { display: inline-flex; align-items: center; gap: 8px; }
.place svg { width: 16px; height: 16px; color: var(--teal-400); }

.player { position: relative; }
.player__frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-900);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06);
  isolation: isolate;
}
@supports not (aspect-ratio: 16 / 9) {
  .player__frame { height: 0; padding-top: 56.25%; }
}
.player__poster, .player__media, .player__media > * {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.player__poster { object-fit: cover; z-index: 0; }
.player__media { z-index: 1; }
.player__video { object-fit: cover; background: transparent; }
.player__iframe { border: 0; background: var(--blue-900); }
.player.is-fullscreen .player__frame, .player__frame:fullscreen { border-radius: 0; }
.player__frame:fullscreen .player__video { object-fit: contain; }

.player__overlay {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 16px;
  background: linear-gradient(180deg, rgba(10, 42, 64, .25), rgba(10, 42, 64, .72));
}
.player__card {
  max-width: 460px; text-align: center; padding: clamp(16px, 3vw, 28px);
  border-radius: var(--radius); background: rgba(10, 42, 64, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12);
}
.player__icon { display: block; width: 44px; height: 44px; margin: 0 auto 10px; color: var(--teal-400); }
.player__icon svg { width: 100%; height: 100%; }
.player__title { font-family: var(--font-serif); font-size: clamp(1.05rem, .9rem + .8vw, 1.45rem); font-weight: 700; margin: 0 0 6px; color: var(--white); }
.player__text { font-size: clamp(.85rem, .8rem + .25vw, .98rem); margin: 0 0 14px; color: rgba(255, 255, 255, .82); line-height: 1.5; }
.player__text:last-child { margin-bottom: 0; }
.player__remember { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.8); margin-top: 12px; cursor: pointer; }
.player__remember input { width: 18px; height: 18px; accent-color: var(--teal-400); }

/* spinner (solo in caricamento / riconnessione) */
.player__spinner {
  display: none; width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--teal-400);
  animation: spin .9s linear infinite;
}
.player[data-state="loading"] .player__spinner,
.player[data-state="reconnecting"] .player__spinner { display: block; }
.player[data-state="loading"] .player__icon,
.player[data-state="reconnecting"] .player__icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* indicatore di buffering durante la riproduzione */
.player__buffer {
  position: absolute; right: 14px; top: 14px; z-index: 3; display: none;
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--white);
  animation: spin .9s linear infinite;
}
.player.is-buffering .player__buffer { display: block; }

.player__badges { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px;
  border-radius: 999px; font: 700 .72rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); background: rgba(10, 42, 64, .62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.badge--live { background: var(--live); }
.badge--live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white);
  animation: pulse 1.6s ease-in-out infinite;
}
.badge--soft { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .78rem; }
@keyframes pulse { 50% { opacity: .35; } }

.player__controls { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: flex; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--white);
  background: rgba(10, 42, 64, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .2s;
}
.icon-btn:hover { background: rgba(10, 42, 64, .85); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .i-exit { display: none; }
.player.is-fullscreen .icon-btn .i-enter { display: none; }
.player.is-fullscreen .icon-btn .i-exit { display: block; }

.player__noscript { position: absolute; inset: auto 0 0 0; z-index: 4; padding: 12px 16px; background: rgba(10, 42, 64, .85); color: var(--white); font-size: .9rem; text-align: center; }

/* 7 ─ Sezioni -------------------------------------------------------- */
.intro { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.intro__text p:last-child { margin-bottom: 0; }
.facts { list-style: none; margin: 0; padding: 22px 24px; background: var(--sand-50); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: .97rem; line-height: 1.5; }
.facts svg { width: 22px; height: 22px; color: var(--blue-500); margin-top: 1px; }
.facts strong { display: block; color: var(--blue-800); font-size: .9rem; }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--blue-800), #135a80); color: var(--white);
}
.cta-band h2, .cta-band h3 { color: var(--white); margin-bottom: .25em; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); }

/* 8 ─ Schede --------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(16, 59, 89, .06);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--ink-600); font-size: .98rem; }
.card__body .link-arrow { margin-top: auto; }
.card__body .link-arrow::before { content: ""; position: absolute; inset: 0; } /* intera scheda cliccabile */
.placeholder-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 4px 9px; border-radius: 6px;
  font-size: .72rem; font-weight: 600; color: var(--white); background: rgba(10, 42, 64, .72);
}

/* 9 ─ Pubblicità ----------------------------------------------------- */
.ad-label {
  display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-600); margin-bottom: 8px;
}
.ad-slot .ad__link--banner { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.ad-slot .ad__link--banner img { width: 100%; aspect-ratio: 6 / 1; object-fit: cover; }
.ad-slot.is-empty .ad-label { display: none; }
.ad-empty {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  padding: 14px 20px; border: 1px dashed #CFC6B5; border-radius: var(--radius); background: var(--sand-50);
  font-size: .95rem; color: var(--ink-600);
}
.ad-empty strong { color: var(--blue-800); }

.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.ad__link--card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink-900); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ad__link--card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink-900); }
.ad__link--card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ad__name { padding: 12px 16px; font-weight: 600; font-size: .95rem; }
.sponsor-empty {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
}
.sponsor-empty p { margin: 0; color: var(--ink-600); max-width: 640px; }

/* 10 ─ Pagine interne ------------------------------------------------ */
.page-hero {
  color: var(--white); padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 5vw, 60px);
  background:
    radial-gradient(900px 360px at 85% 0%, rgba(72, 191, 198, .25), transparent 60%),
    linear-gradient(180deg, var(--blue-900), var(--blue-800));
}
.page-hero h1 { color: var(--white); max-width: 820px; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 680px; margin: 0; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); }
.page-hero .eyebrow { color: var(--teal-400); }
.breadcrumb { font-size: .85rem; margin-bottom: 14px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: rgba(255,255,255,.4); }
.breadcrumb a { color: var(--teal-200); }
.breadcrumb [aria-current] { color: rgba(255,255,255,.75); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 7vw, 88px); }
.feature--reverse .feature__media { order: 2; }
.feature__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature ul { padding-left: 1.2em; }
.feature li { margin-bottom: .35em; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 3vw, 28px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 28px); }
.panel { padding: clamp(20px, 3vw, 30px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.section--sand .panel { border-color: transparent; box-shadow: var(--shadow-sm); }
.panel h3 { margin-bottom: .4em; }
.panel p:last-child { margin-bottom: 0; }
.panel__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(22, 143, 181, .1); color: var(--blue-600); margin-bottom: 14px; }
.panel__icon svg { width: 24px; height: 24px; }
.panel__meta { font-size: .88rem; color: var(--ink-600); }

.notice {
  display: flex; gap: 14px; padding: 16px 20px; border-radius: var(--radius); margin: 0 0 32px;
  background: #FFF7E6; border: 1px solid #F1D9A6; color: #6B4E12; font-size: .95rem; line-height: 1.55;
}
.notice svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.notice p { margin: 0; }
.notice--info { background: #EAF6F8; border-color: #BFE2E8; color: #12495E; }

.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .todo { background: #FFF2CC; padding: 0 .3em; border-radius: 4px; font-weight: 600; color: #6B4E12; }

.contact-box { display: grid; gap: 14px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list__label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-600); }
.contact-list__value { font-size: 1.08rem; font-weight: 600; word-break: break-word; }
.muted { color: var(--ink-600); }

.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.error-page__code { font-family: var(--font-serif); font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--teal-200); margin: 0; }

/* 11 ─ Footer -------------------------------------------------------- */
.site-footer { background: var(--blue-900); color: rgba(255, 255, 255, .75); padding: clamp(48px, 6vw, 72px) 0 28px; font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-400); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand p { margin-top: 14px; max-width: 340px; }
.site-footer .contact-list { gap: 8px; }
.site-footer .contact-list__label { color: rgba(255,255,255,.5); font-size: .68rem; }
.site-footer .contact-list__value { font-size: .95rem; font-weight: 500; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: rgba(255, 255, 255, .55); }

/* 12 ─ Utilità ------------------------------------------------------- */
.stack > * + * { margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* 13 ─ Responsive ---------------------------------------------------- */
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 49;
    background: var(--blue-900); border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 12px var(--gutter) 20px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .25s var(--ease); }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .intro, .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
}
@media (max-width: 639px) {
  :root { --header-h: 58px; }
  body { font-size: 1rem; }
  .logo svg { height: 32px; }
  .hero-cam { padding-top: 14px; }
  .hero-cam .container { padding-inline: 0; }
  .hero-cam__head, .hero-cam__meta { padding-inline: var(--gutter); }
  .player__frame { border-radius: 0; box-shadow: none; }
  .player__card { background: rgba(10, 42, 64, .7); padding: 14px 16px; }
  .player__text { margin-bottom: 10px; }
  .player__icon { width: 32px; height: 32px; margin-bottom: 6px; }
  .player .btn { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
  .badge { height: 26px; font-size: .68rem; padding: 0 9px; }
  .cards, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cards .card:last-child:nth-child(odd) { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .ad-slot .ad__link--banner img { aspect-ratio: 3 / 1; }
}
@media (max-width: 420px) {
  /* su schermi piccoli il testo esteso del player viene ridotto */
  .player__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .player[data-state="consent"] .player__text { -webkit-line-clamp: 2; }
  .player__remember { margin-top: 8px; font-size: .78rem; }
}

/* 14 ─ Movimento ridotto -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .card:hover, .ad__link--card:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .player, .ad-slot { display: none !important; }
}
