/* Facile Signage — design system locale.
   Idea: il sito "è" uno schermo. Nero da display, arancio segnale (dal logo storico),
   carta calda per le sezioni di lettura. Font: Archivo (titoli), Figtree (testo).
   NON importare questi token in altri siti del gruppo. */

:root {
  --ink: #0e0e10;          /* nero schermo */
  --ink-2: #18181c;
  --ink-3: #26262c;
  --paper: #f6f2ec;        /* carta calda */
  --paper-2: #ece6dc;
  --white: #ffffff;
  --text: #1b1b1f;
  --muted: #5d5a55;
  --muted-dark: #a9a6a0;
  --signal: #ff5a1f;       /* arancio segnale */
  --signal-dk: #d9420c;    /* per testo su chiaro: contrasto AA */
  --signal-soft: #ffe3d6;
  --live: #3ddc84;
  --line: #ddd5c8;
  --line-dark: #303036;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px -20px rgba(14, 14, 16, .35);
  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal-dk); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--white); padding: 8px 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 16, .94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-mark { width: 38px; height: 30px; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-name b { color: var(--signal); font-weight: 800; }
.brand-by {
  display: flex; flex-direction: column; line-height: 1.05;
  padding-left: 12px; margin-left: 2px; border-left: 1px solid #45454d;
}
.brand-by .by-k { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }
.brand-by .by-v { font-family: Georgia, "Times New Roman", serif; font-size: .95rem; color: var(--signal); }
@media (max-width: 560px) { .site-header .brand-by { display: none; } }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: #dcd9d4; text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: var(--ink-3); }
.nav a.nav-cta { background: var(--signal); color: var(--ink); font-weight: 600; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--white); color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 1px solid #45454d; color: var(--white);
  border-radius: 10px; width: 44px; height: 40px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .2s; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--ink); padding: 12px 16px 20px; border-bottom: 1px solid var(--line-dark);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-text); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 16px 24px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--white); color: var(--ink); }
.btn-ghost { border-color: #5a5a62; color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--signal-dk); color: var(--white); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Sezioni ---------- */
section { padding: 88px 0; }
.dark { background: var(--ink); color: #e9e6e1; }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark a:not(.btn) { color: var(--signal); }
.paper-2 { background: var(--paper-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--signal-dk); margin-bottom: 18px;
}
.dark .eyebrow { color: var(--signal); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.dark .section-head p { color: var(--muted-dark); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #cfccc6; max-width: 560px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(255, 90, 31, .16), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 44px; } }

/* Lo "schermo": cornice + barra palinsesto */
.screen {
  position: relative; background: #050506; border-radius: 18px; padding: 12px;
  box-shadow: 0 0 0 1px #2c2c33, 0 30px 80px -30px rgba(255, 90, 31, .45);
}
.screen-img { border-radius: 8px; overflow: hidden; aspect-ratio: 900 / 295; background: #111; }
.screen-img img { width: 100%; height: 100%; object-fit: cover; }
.screen-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 6px 2px; font-size: .78rem; color: var(--muted-dark);
}
.onair { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #e9e6e1; letter-spacing: .08em; text-transform: uppercase; }
.onair i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } }
.schedule { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.schedule li {
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 10px;
  padding: 10px 12px; font-size: .82rem; color: var(--muted-dark); line-height: 1.35;
}
.schedule li b { display: block; font-family: var(--f-display); color: var(--white); font-size: .98rem; }
.schedule li.now { border-color: var(--signal); }
.schedule li.now b::after { content: " · in onda"; color: var(--signal); font-family: var(--f-text); font-weight: 600; font-size: .72rem; }
@media (max-width: 480px) { .schedule { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .onair i { animation: none; } html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* ---------- Fatti in riga ---------- */
.facts { background: var(--signal); color: var(--ink); padding: 0; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { padding: 26px 24px; display: flex; gap: 14px; align-items: center; font-weight: 600; font-size: 1.04rem; line-height: 1.3; }
.facts li + li { border-left: 1px solid rgba(14, 14, 16, .18); }
.facts svg { flex: none; width: 30px; height: 30px; }
@media (max-width: 760px) {
  .facts ul { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; border-top: 1px solid rgba(14, 14, 16, .18); }
  .facts li { padding: 18px 4px; }
}

/* ---------- Griglie e card ---------- */
.grid { display: grid; gap: 22px; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g-3, .g-2, .g-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; position: relative;
}
.card p { color: var(--muted); margin: 0; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: var(--signal);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .ico svg { width: 24px; height: 24px; }
.card.feature { grid-column: span 1; }
.card.accent { background: var(--ink); border-color: var(--ink); color: #e9e6e1; }
.card.accent h3 { color: var(--white); }
.card.accent p { color: var(--muted-dark); }
.card.accent .ico { background: var(--signal); color: var(--ink); }

/* Casi d'uso: card-schermo con foto */
.use { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.use-img { padding: 10px 10px 0; }
.use-img img { width: 100%; aspect-ratio: 27 / 17; object-fit: cover; border-radius: 6px; }
.use-body { padding: 20px 22px 24px; }
.use-body h3 { font-size: 1.12rem; }
.use-body p { color: var(--muted-dark); margin: 0; font-size: .97rem; }
.use-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); font-weight: 600; display: block; margin-bottom: 8px; }

/* Passi */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.steps > li {
  counter-increment: step; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 26px; position: relative;
}
.steps > li::before {
  content: "0" counter(step); font-family: var(--f-display); font-weight: 800; font-size: 2.6rem;
  color: var(--signal); line-height: 1; display: block; margin-bottom: 14px;
}
.steps > li p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Split immagine/testo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.frame { background: var(--ink); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); }
.frame img { border-radius: 8px; width: 100%; }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e0e10' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Settori */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { background: var(--white); border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; font-weight: 500; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--f-display); font-weight: 700; font-size: 1.14rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--signal);
  display: grid; place-items: center; font-family: var(--f-text); font-size: 1.2rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 44px; }

/* CTA band */
.cta-band { text-align: left; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0; color: var(--muted-dark); }

/* ---------- Pagine interne ---------- */
.page-hero { padding: 64px 0 60px; }
.crumbs { font-size: .88rem; color: var(--muted-dark); margin-bottom: 20px; }
.crumbs a { color: var(--muted-dark); }
.crumbs a:hover { color: var(--white); }
.crumbs span { margin: 0 6px; }

/* ---------- Form ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fffdfa;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .form-card { padding: 26px 18px; } }
.req { color: var(--signal-dk); }
.consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .93rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--signal-dk); flex: none; }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.hp { position: absolute; left: -5000px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.contact-list small { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.contact-list a { font-weight: 600; font-size: 1.08rem; color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--signal-dk); }

/* ---------- Testi legali ---------- */
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .94rem; background: var(--white); }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--paper-2); }
.legal .table-wrap { overflow-x: auto; }
.legal code { font-size: .88em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 72px 0 28px; font-size: .95rem; }
.site-footer a { color: #dcd9d4; text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--f-text); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand p { margin: 16px 0 22px; max-width: 320px; }
.footer-brand .brand-by { display: flex; }
.group-sign { display: flex; flex-direction: column; gap: 8px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.group-sign img { height: 26px; width: auto; }
.foot-bottom {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem;
}
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* utilità */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.big-num { font-family: var(--f-display); font-weight: 800; font-size: 3rem; color: var(--signal); line-height: 1; }
