/* Kodiak Studio — foglio di stile unico */

@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  --navy: #0e1224;
  --navy-2: #151a33;
  --indigo: #2c2b69;
  --violet: #42419e;
  --peri: #7378e6;
  --teal: #4cc3b1;
  --ice: #b3dade;
  --steel: #6fa3d4;
  --ink: #12131a;
  --ink-soft: #3d4050;
  --paper: #ffffff;
  --paper-2: #f4f5f9;
  --line: #d9dbe6;
  --radius: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: linear-gradient(90deg, rgba(44,43,105,.94) 0%, rgba(120,118,170,.9) 50%, rgba(44,43,105,.94) 100%);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 8px 30px rgba(8,10,30,.25);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand img { width: clamp(170px, 22vw, 240px); height: auto; }
.nav { display: flex; gap: clamp(18px, 3vw, 36px); }
.nav a { color: #fff; text-decoration: none; font-size: 16px; font-weight: 300; letter-spacing: .02em; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.nav a:hover, .nav a:focus-visible { border-color: var(--ice); }
.nav a[aria-current="page"] { color: var(--ice); }

/* ---------- Superfici scure ---------- */
.dark {
  color: #fff;
  background:
    radial-gradient(60% 70% at 8% 12%, rgba(115,120,230,.85) 0%, rgba(66,65,158,0) 70%),
    radial-gradient(55% 60% at 92% 92%, rgba(76,195,177,.55) 0%, rgba(76,195,177,0) 70%),
    radial-gradient(50% 50% at 90% 10%, rgba(66,65,158,.6) 0%, rgba(66,65,158,0) 70%),
    linear-gradient(160deg, #1b1f4a 0%, var(--navy) 60%, #0b1a24 100%);
}

/* ---------- Hero ---------- */
.hero { padding: 150px 0 90px; min-height: min(92vh, 820px); display: flex; align-items: center; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 400; }
.hero .tagline { font-size: clamp(19px, 2.2vw, 25px); color: var(--ice); margin-top: 18px; }
.hero .cta { display: inline-block; margin-top: 34px; padding: 13px 28px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: #fff; text-decoration: none; letter-spacing: .04em; transition: background .2s, border-color .2s; }
.hero .cta:hover, .hero .cta:focus-visible { background: rgba(255,255,255,.12); border-color: #fff; }
.collage { display: grid; grid-template-columns: .9fr 1.1fr; grid-template-rows: 1fr auto; gap: 14px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.collage .c1 { grid-row: 1 / 3; aspect-ratio: 441 / 512; }
.collage .c2 { aspect-ratio: 4 / 3; }
.collage .c3 { aspect-ratio: 16 / 9; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.eyebrow { display: block; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; font-weight: 400; }
.dark .eyebrow { color: var(--ice); }
.h-xl { font-size: clamp(34px, 4.6vw, 52px); }
.lead { font-size: clamp(20px, 2vw, 25px); line-height: 1.4; font-weight: 300; margin-bottom: 1.1em; }
.muted { color: var(--ink-soft); }

/* Intro */
.intro .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.stack { display: grid; gap: 28px; }
.stack h2 { font-size: clamp(32px, 4.2vw, 48px); padding-left: 26px; border-left: 2px dotted var(--steel); }
.stack h2:nth-child(2) { margin-left: clamp(0px, 3vw, 40px); }
.stack h2:nth-child(3) { margin-left: clamp(0px, 6vw, 80px); }
.dotted-rule { border: 0; border-top: 2px dotted var(--steel); width: 180px; margin: 40px 0 0; }

/* Features */
.features-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 50px; }
.features-head p { color: var(--ice); font-size: 18px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 32px 28px 28px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .3s, background .3s; }
.card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.card .k { display: block; font-size: 24px; color: var(--ice); line-height: 1.1; }
.card h3 { font-size: 26px; margin: 2px 0 16px; }
.card p { margin: 0; color: rgba(255,255,255,.86); font-size: 16px; }
.strip { display: grid; grid-template-columns: 1fr 2.2fr; gap: 22px; margin-top: 22px; }
.strip img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); }

/* Workflow e Broadcast */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(70px, 9vw, 110px); }
.split.reverse > :first-child { order: 2; }
.split h3 { font-size: clamp(22px, 2.2vw, 25px); color: var(--violet); margin: 14px 0 22px; font-weight: 400; }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.mosaic .m1 { grid-column: 1 / 3; aspect-ratio: 16 / 8; }
.mosaic .m2, .mosaic .m3 { aspect-ratio: 4 / 3; }
.mosaic.tall { grid-template-columns: .7fr 1.3fr; }
.mosaic.tall .m1 { grid-column: auto; grid-row: 1 / 3; aspect-ratio: auto; }
.mosaic.tall .m2, .mosaic.tall .m3 { aspect-ratio: 16 / 10; }

/* About */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about .sub { font-size: clamp(21px, 2.2vw, 25px); color: var(--ice); margin: 16px 0 26px; font-weight: 400; }
.about p { color: rgba(255,255,255,.88); }
.duo { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: stretch; }
.duo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.duo .d1 { aspect-ratio: 4 / 3.4; }
.duo .d2 { aspect-ratio: 2 / 3.4; }

/* ---------- Pagine interne ---------- */
.page-hero { padding: 150px 0 70px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.page-hero p { color: var(--ice); font-size: clamp(18px, 2vw, 22px); margin: 14px 0 0; max-width: 720px; }

.contact .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 3px rgba(66,65,158,.18); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--violet); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { font: inherit; font-size: 16px; letter-spacing: .06em; color: #fff; background: linear-gradient(90deg, var(--violet), #5b5fc9); border: 0; border-radius: 999px; padding: 14px 34px; cursor: pointer; justify-self: start; transition: filter .2s, transform .2s; }
.btn:hover, .btn:focus-visible { filter: brightness(1.12); transform: translateY(-1px); }
.notice { grid-column: 1 / -1; padding: 14px 18px; border-radius: 10px; font-size: 16px; }
.notice.ok { background: #e6f6f2; color: #0e5a4c; border: 1px solid #b9e6db; }
.notice.err { background: #fbecec; color: #7a1f1f; border: 1px solid #efc4c4; }
.info-card { background: var(--paper-2); border-radius: var(--radius); padding: 30px; }
.info-card h2 { font-size: 26px; margin-bottom: 18px; }
.info-card dl { margin: 0; display: grid; gap: 14px; }
.info-card dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; }
.info-card dd { margin: 2px 0 0; }
.info-card a { color: var(--violet); }
.info-card img { margin-top: 26px; border-radius: 12px; }

.policy { padding: 60px 0 100px; }
.policy article { max-width: 780px; }
.policy h2 { font-size: 22px; letter-spacing: .02em; margin: 0 0 30px; color: var(--violet); }
.policy h3 { font-size: 19px; font-weight: 500; margin: 34px 0 10px; }
.policy h4 { font-size: 17px; font-weight: 500; margin: 20px 0 6px; }
.policy ul { padding-left: 1.2em; margin: 0 0 1em; }
.policy li { margin-bottom: .4em; }
.policy .back { display: inline-block; margin-top: 40px; color: var(--violet); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--steel); padding: 60px 0 36px; font-size: 15px; }
.site-footer .top { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.site-footer .bear { width: 84px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer address strong { color: #fff; font-weight: 400; }
.site-footer a { color: var(--steel); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.policies { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-align: right; }
.site-footer .bottom { border-top: 1px solid rgba(111,163,212,.2); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; }

/* ---------- Animazioni d'ingresso ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

:focus-visible { outline: 2px solid var(--peri); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .intro .wrap, .split, .about .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 130px; }
  .site-footer .top { grid-template-columns: 1fr; }
  .policies { text-align: left; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 64px; }
  .brand img { width: 160px; }
  .nav { gap: 16px; }
  .nav a { font-size: 15px; }
  .hero { padding-top: 110px; padding-bottom: 60px; }
  .page-hero { padding-top: 120px; padding-bottom: 50px; }
  .stack h2:nth-child(n) { margin-left: 0; }
  .strip { grid-template-columns: 1fr; }
  .strip img:first-child { max-height: 260px; }
  .form { grid-template-columns: 1fr; }
  .mosaic.tall { grid-template-columns: 1fr 1fr; }
  .mosaic.tall .m1 { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 16 / 10; }
}
