:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --soft: #f1f1ed;
  --line: #c9c9c2;
  --muted: #66665f;
  --accent: #d1fe18;
  --accent-ink: #101400;
  --max: 1600px;
  --pad: clamp(1.25rem, 3.5vw, 4.5rem);
  color-scheme: light;
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; background: var(--accent); text-decoration: none; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, white 94%, transparent);
  backdrop-filter: blur(14px);
}

.logo-link img { width: 112px; }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.6rem); }
.site-header nav a { position: relative; color: var(--ink); font-size: .78rem; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.site-header nav a::after { position: absolute; right: 0; bottom: -.5rem; left: 0; height: 2px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.site-header nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.hero {
  position: relative;
  min-height: calc(100dvh - 78px);
  padding: clamp(3rem, 7vw, 7rem) var(--pad) 2rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-kicker, .section-label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.hero h1 { max-width: 12ch; margin: clamp(3rem, 8vh, 7rem) 0 0; font-size: clamp(4.3rem, 11.8vw, 12rem); font-weight: 500; letter-spacing: -.075em; line-height: .83; }
.hero h1 span { display: block; }
.hero-bottom { position: absolute; right: var(--pad); bottom: 2.5rem; left: var(--pad); display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem; }
.hero-bottom > p { max-width: 460px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.35rem); line-height: 1.35; }
.hero-actions { display: flex; justify-content: flex-end; align-items: center; gap: 2rem; }
.start-link { display: grid; min-width: 190px; grid-template-columns: 1fr 50px; align-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; text-transform: uppercase; }
.start-link { min-height: 58px; padding-left: 1rem; }
.start-link span { display: grid; height: 100%; place-items: center; border-left: 1px solid rgba(0,0,0,.25); }
.services-link { padding: .6rem 0; border-bottom: 1px solid var(--ink); font-weight: 700; text-decoration: none; }
.hero-signal { position: absolute; top: 2.5rem; right: 0; display: grid; width: clamp(110px, 15vw, 240px); aspect-ratio: 1; place-items: center; background: var(--accent); clip-path: circle(50% at 100% 0); }
.hero-signal span { position: absolute; top: 1.2rem; right: 1.4rem; font-size: .7rem; font-weight: 700; }

.section-shell { max-width: var(--max); margin: 0 auto; padding: clamp(5rem, 10vw, 10rem) var(--pad); }
#connected-tv, #contenuti, #advertising, #prospect, #servizi, #progetto, #footer { scroll-margin-top: 78px; }
.prospect { position: relative; width: 100%; background: var(--soft); }
.prospect-intro { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 3rem; margin: 3rem 0 5rem; }
.prospect-intro h2, .services-heading h2, .project-form h2 { margin: 0; font-size: clamp(3.5rem, 7.6vw, 8rem); font-weight: 500; letter-spacing: -.065em; line-height: .88; }
.prospect-intro p, .services-heading > p { max-width: 470px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.prospect-options { border-top: 1px solid var(--ink); }
.prospect-options button { display: grid; width: 100%; min-height: 92px; grid-template-columns: 1fr auto; align-items: center; padding: 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: inherit; text-align: left; cursor: pointer; transition: padding .22s ease, background .22s ease; }
.prospect-options button span { font-size: clamp(2rem, 4vw, 4.5rem); letter-spacing: -.04em; text-transform: uppercase; }
.prospect-options button b { font-size: .7rem; }
.prospect-options button:hover, .prospect-options button.is-active { padding: 0 1.2rem; background: var(--accent); }
.prospect-response { min-height: 1.5em; margin: 2rem 0 0; color: var(--muted); }

.services { position: relative; }
.services-heading { display: grid; grid-template-columns: 1fr .45fr; align-items: end; gap: 3rem; margin-bottom: 5rem; }
.services-heading h2 { margin-top: 2rem; }
.service-list { border-top: 1px solid var(--ink); }
.service-item { border-bottom: 1px solid var(--ink); }
.service-item summary { display: grid; min-height: 94px; grid-template-columns: 70px 1fr 32px; align-items: center; list-style: none; cursor: pointer; }
.service-item summary::-webkit-details-marker { display: none; }
.service-number { font-size: .7rem; }
.service-item summary strong { font-size: clamp(1.7rem, 3.4vw, 3.5rem); font-weight: 500; letter-spacing: -.04em; }
.service-item summary i { position: relative; width: 26px; height: 26px; }
.service-item summary i::before, .service-item summary i::after { position: absolute; top: 12px; left: 2px; width: 22px; height: 1px; background: currentColor; content: ""; transition: transform .25s ease; }
.service-item summary i::after { transform: rotate(90deg); }
.service-item[open] summary i::after { transform: rotate(0); }
.service-item[open] summary { background: var(--accent); }
.service-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .72fr) auto; gap: 3rem; align-items: center; padding: 2.2rem 0 2.5rem 70px; }
.service-content p { max-width: 640px; margin: 0; font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.25; }
.service-content small { display: flex; min-height: 44px; align-items: center; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.service-content label, .service-content a { display: inline-flex; min-height: 44px; align-items: center; gap: .6rem; padding: 0 .9rem; border: 1px solid var(--ink); font-size: .72rem; font-weight: 700; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.service-content label:has(input:checked) { background: var(--accent); }
.service-content input { width: 16px; height: 16px; accent-color: var(--ink); }

.ctv { position: relative; display: grid; min-height: 100dvh; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--paper); }
.ctv-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 8vw, 9rem) var(--pad); }
.section-label.light { color: var(--accent); }
.ctv h2 { max-width: 10ch; margin: 3rem 0; font-size: clamp(4rem, 7.8vw, 8rem); font-weight: 500; letter-spacing: -.07em; line-height: .86; }
.ctv-answer { font-size: clamp(1.2rem, 2.2vw, 2rem); line-height: 1.3; }
.ctv-answer strong { color: var(--accent); }
.ctv-claim { margin: auto 0 2rem; font-size: clamp(1.6rem, 3vw, 3rem); letter-spacing: -.04em; line-height: 1.05; }
.ctv-platforms { display: flex; align-items: center; gap: 1rem; }
.ctv-platforms img { width: auto; height: 74px; border: 1px solid #555; border-radius: 6px; background: white; object-fit: contain; }
.ctv-note { max-width: 700px; margin: 2rem 0 0; color: #a8a8a8; font-size: .75rem; line-height: 1.55; }
.tv-stage { display: grid; place-content: center; padding: var(--pad); background: var(--accent); color: var(--accent-ink); }
.tv-frame { width: min(100%, 720px); padding: 18px 18px 50px; border: 3px solid var(--ink); border-radius: 18px; background: #171717; box-shadow: 0 34px 80px rgba(0,0,0,.25); }
.tv-screen { display: flex; min-height: 430px; flex-direction: column; padding: clamp(1.5rem, 4vw, 3.5rem); background: #f8f8f3; }
.tv-screen > span { font-size: .65rem; font-weight: 700; letter-spacing: .12em; }
.tv-screen strong { margin: auto 0; font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 500; letter-spacing: -.065em; line-height: .82; }
.tv-screen small { border-top: 1px solid; padding-top: 1rem; }
.tv-meta { display: flex; justify-content: space-between; width: min(100%, 720px); margin-top: 1rem; font-size: .65rem; letter-spacing: .08em; }

.channel-showcase { width: 100%; background: var(--paper); }
.content-production { position: relative; display: grid; min-height: 100dvh; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); }
.content-production-copy { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(4rem, 8vw, 9rem) var(--pad); }
.content-production h2 { max-width: 9ch; margin: 3rem 0; font-size: clamp(4rem, 7.8vw, 8rem); font-weight: 500; letter-spacing: -.07em; line-height: .86; }
.content-production p { max-width: 620px; margin: auto 0 0; color: var(--muted); font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.5; }
.content-visual { position: relative; min-width: 0; min-height: 100%; margin: 0; overflow: hidden; background: var(--ink); }
.content-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.content-visual figcaption { position: absolute; right: 0; bottom: 0; padding: 1rem 1.25rem; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.channel-grid { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
.channel-card { position: relative; display: flex; min-height: 82dvh; flex-direction: column; padding: clamp(2rem, 4vw, 4.5rem) var(--pad); border-bottom: 1px solid var(--ink); }
.channel-card-meta { border-right: 1px solid var(--ink); background: var(--accent); color: var(--accent-ink); }
.channel-card-google { background: var(--ink); color: var(--paper); }
.channel-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.brand-mark { display: grid; width: clamp(72px, 7vw, 104px); aspect-ratio: 1; flex: 0 0 auto; place-items: center; border: 1px solid currentColor; background: var(--paper); }
.brand-mark img { width: 56%; height: 56%; object-fit: contain; }
.channel-card-copy { margin: auto 0 clamp(3rem, 6vw, 6rem); }
.channel-card h3 { max-width: 10ch; margin: 0 0 2rem; font-size: clamp(3.5rem, 6.5vw, 7rem); font-weight: 500; letter-spacing: -.07em; line-height: .85; }
.channel-card h3 span { display: block; }
.channel-card-google h3 { max-width: none; font-size: clamp(2.45rem, 5.2vw, 5.7rem); }
.channel-card-google h3 span { white-space: nowrap; }
.channel-card p { max-width: 680px; margin: 0; font-size: clamp(.95rem, 1.1vw, 1.05rem); letter-spacing: -.015em; line-height: 1.5; }
.channel-card-copy p span { display: block; }
.channel-card-google p { color: #b6b6b6; }
.platform-row, .ads-formats { display: flex; min-height: 72px; align-items: stretch; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.platform-row > div { display: flex; flex: 1 1 50%; align-items: center; gap: .85rem; padding: .9rem 1rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.platform-row > div + div { border-left: 1px solid currentColor; }
.platform-row img { width: 34px; height: 34px; object-fit: contain; }
.ads-formats span { display: grid; flex: 1 1 auto; place-items: center; padding: 0 1rem; color: var(--paper); font-size: .72rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.ads-formats span + span { border-left: 1px solid currentColor; }

.next-block { position: absolute; right: var(--pad); bottom: 1.5rem; z-index: 5; display: grid; width: 56px; height: 56px; place-items: center; border: 1px solid currentColor; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); text-decoration: none; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.next-block span { display: block; font-size: 1.35rem; line-height: 1; animation: next-nudge 1.6s ease-in-out infinite; }
.next-block:hover { background: var(--ink); color: var(--paper); transform: scale(1.06); }
.next-on-dark { border-color: var(--paper); background: rgba(10,10,10,.82); color: var(--paper); }
.next-on-dark:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.next-on-image { right: auto; left: calc(50% + var(--pad)); background: rgba(255,255,255,.92); }
.next-on-hero { right: auto; bottom: 1rem; left: 50%; margin-left: -28px; }
.channel-card > .next-block { bottom: calc(72px + 2rem); }
.prospect > .next-block, .project > .next-block { right: var(--pad); }
@keyframes next-nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

.project { position: relative; width: 100%; background: var(--soft); }
.project-inner { display: grid; grid-template-columns: 1fr .75fr; gap: clamp(3rem, 7vw, 8rem); }
.project-form h2 { margin: 2rem 0 4rem; }
.project-form form { display: grid; gap: 2rem; }
.project-form fieldset { margin: 0; padding: 0; border: 0; }
.project-form legend, .project-form label { display: grid; gap: .6rem; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.project-services { display: grid; grid-template-columns: 1fr 1fr; margin-top: .8rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project-services label { display: flex; min-height: 64px; flex-direction: row; align-items: center; justify-content: flex-start; gap: .8rem; padding: .8rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 600; letter-spacing: 0; line-height: 1.25; text-align: left; text-transform: none; cursor: pointer; }
.project-services label:has(input:checked) { background: var(--accent); }
.project-services input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.project-services span { display: block; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.project-form input, .project-form select, .project-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); }
.project-form input, .project-form select { height: 52px; padding: 0 .8rem; }
.project-form textarea { padding: .8rem; resize: vertical; }
.project-summary { position: sticky; top: 110px; min-height: 640px; padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid var(--ink); background: var(--paper); }
.project-summary > span { font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
.project-summary h3 { min-height: 3em; margin: 6rem 0 4rem; font-size: clamp(3rem, 5vw, 5.4rem); font-weight: 500; letter-spacing: -.065em; line-height: .88; }
.project-summary dl { border-top: 1px solid var(--line); }
.project-summary dl div { display: grid; grid-template-columns: .65fr 1.35fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.project-summary dt { color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.project-summary dd { margin: 0; text-align: right; }
.project-summary > p { color: var(--muted); line-height: 1.5; }
.summary-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2rem; border: 1px solid var(--ink); }
.summary-actions button, .summary-actions a { display: grid; min-height: 52px; place-items: center; border: 0; background: transparent; color: var(--ink); font-size: .7rem; font-weight: 700; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.summary-actions button { border-right: 1px solid var(--ink); }
.summary-actions button:hover, .summary-actions a:hover { background: var(--accent); }

.site-footer { display: grid; grid-template-columns: 1fr 1.5fr auto; align-items: end; gap: 3rem; padding: 5rem var(--pad) 2rem; background: var(--ink); color: var(--paper); }
.site-footer img { width: 120px; filter: invert(1); }
.site-footer p { max-width: 330px; color: #aaa; }
.site-footer > a { display: flex; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--accent); font-size: clamp(1.5rem, 3vw, 3.5rem); letter-spacing: -.04em; text-decoration: none; }
.site-footer small { color: #aaa; }

@media (min-width: 1100px) {
  .channel-card-copy p span { white-space: nowrap; }
}

@media (max-width: 900px) {
  .site-header nav a { display: none; }
  .site-header nav a:last-child { display: block; }
  .hero { min-height: 800px; }
  .hero h1 { margin-top: 6rem; }
  .hero-bottom, .prospect-intro, .services-heading, .ctv, .project-inner { grid-template-columns: 1fr; }
  .content-production { grid-template-columns: 1fr; }
  .content-production-copy { min-height: 680px; }
  .content-visual { min-height: 72dvh; }
  .hero-bottom { gap: 2rem; }
  .hero-actions { justify-content: flex-start; }
  .service-content { grid-template-columns: 1fr; align-items: start; padding-left: 0; gap: 1.2rem; }
  .tv-stage { min-height: 700px; }
  .project-summary { position: relative; top: 0; min-height: auto; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 600px) {
  .site-header { min-height: 66px; }
  .logo-link img { width: 92px; }
  .site-header nav { gap: .5rem; }
  .hero { min-height: 740px; padding-top: 2rem; }
  .hero h1 { margin-top: 7rem; font-size: clamp(4.1rem, 21vw, 7rem); }
  .hero-bottom { bottom: 6.5rem; }
  .next-on-hero { bottom: 1.5rem; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 1rem; }
  .hero-signal { width: 120px; }
  .section-shell { padding-top: 5rem; padding-bottom: 5rem; }
  .prospect-intro { margin: 2rem 0 3rem; }
  .prospect-intro h2, .services-heading h2, .project-form h2 { font-size: clamp(3.5rem, 17vw, 5.2rem); }
  .prospect-options button { min-height: 72px; }
  .service-item summary { min-height: 76px; grid-template-columns: 46px 1fr 28px; }
  .service-item summary strong { font-size: 1.55rem; }
  .ctv h2 { font-size: clamp(3.8rem, 17vw, 6rem); }
  .tv-stage { min-height: 560px; }
  .tv-screen { min-height: 340px; }
  .channel-grid { grid-template-columns: 1fr; }
  .channel-card { min-height: 680px; }
  .channel-card-meta { border-right: 0; }
  .content-production > .next-block { left: var(--pad); }
  .platform-row, .ads-formats { min-height: 64px; }
  .platform-row > div, .ads-formats span { padding-right: .6rem; padding-left: .6rem; }
  .project-services, .field-grid { grid-template-columns: 1fr; }
  .summary-actions { grid-template-columns: 1fr; }
  .summary-actions button { border-right: 0; border-bottom: 1px solid var(--ink); }
  .ctv-platforms { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
