/* ============================================================
   NK Greece — design system
   Palette derivata dal logo (vedi brand/BRAND.md)
   ============================================================ */

:root {
  /* colori */
  --ink: #0A0E13;
  --ink-soft: #11181f;
  --slate: #2A3540;
  --mist: #8FA1AD;
  --sand-50: #FBF8F2;
  --sand-100: #F5F0E6;
  --sand-300: #E8DFCB;
  --sea-900: #0D2B3A;
  --sea-700: #135C7E;
  --sea-500: #1F86AD;
  --sea-300: #6FBEDC;
  --sea-100: #E1F1F8;
  --turquoise: #46C2BC;
  --gold: #C7A557;
  --white: #FFFFFF;
  --danger: #B4452F;

  /* tipografia */
  --font-display: 'Marcellus', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;

  /* scala (fluida) */
  --fs-hero: clamp(2.4rem, 6vw, 4.4rem);
  --fs-h1: clamp(2rem, 4.5vw, 3.2rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.2rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.4rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* layout */
  --container: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 6px 30px rgba(10, 14, 19, 0.08);
  --shadow-lg: 0 16px 50px rgba(10, 14, 19, 0.16);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--slate);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea-500); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--sea-700); }
ul, ol { padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--sea-300); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--ink); line-height: 1.15; letter-spacing: .01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--sand { background: var(--sand-100); }
/* "ink" è ora il blu Egeo profondo: l'unico momento scuro del sito, usato col contagocce */
.section--ink { background: linear-gradient(165deg, var(--sea-700), var(--sea-900)); color: #d8ecf5; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--sea { background: var(--sea-100); color: var(--slate); }
.section--sea h2, .section--sea h3 { color: var(--ink); }

.kicker {
  display: inline-block;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sea-500); margin-bottom: 14px;
}
.section--ink .kicker { color: var(--turquoise); }
.section--sea .kicker { color: var(--sea-700); }
.section--sea .lead { color: var(--slate); opacity: .8; }
.lead { font-size: 1.15rem; color: var(--mist); max-width: 64ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 99px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--sea-500); color: var(--white); box-shadow: 0 8px 24px rgba(31, 134, 173, .35); }
.btn--primary:hover { background: var(--sea-700); color: var(--white); }
.btn--ghost { border-color: rgba(245, 240, 230, .55); color: var(--sand-100); background: rgba(10, 14, 19, .15); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--sand-100); color: var(--white); background: rgba(10, 14, 19, .35); }
.btn--dark { background: var(--sea-700); color: var(--white); }
.btn--dark:hover { background: var(--sea-900); color: var(--white); }
.btn--gold { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn--gold:hover { background: var(--gold); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
  background: linear-gradient(rgba(13, 43, 58, .45), rgba(13, 43, 58, 0));
}
.site-header.scrolled {
  background: rgba(251, 248, 242, .94);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(13, 43, 58, .10);
}
.site-header.scrolled .brand { color: var(--sea-700); }
.site-header.scrolled .nav a { color: var(--slate); }
.site-header.scrolled .nav a:hover { color: var(--sea-700); background: rgba(31, 134, 173, .08); }
.site-header.scrolled .nav a.active { color: var(--sea-700); }
.site-header.scrolled .nav a.nav-cta { border-color: var(--gold); color: #9a7b34; }
.site-header.scrolled .nav a.nav-cta:hover { background: var(--gold); color: var(--white); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.site-header.scrolled .lang-switch { border-color: rgba(10, 14, 19, .22); }
.site-header.scrolled .lang-switch button { color: var(--slate); }
.site-header.scrolled .lang-switch button.on { background: var(--sea-500); color: var(--white); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--sand-100); }
.brand:hover { color: var(--white); }
.brand svg { height: 44px; width: 44px; flex: none; }
.brand .brand-name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .12em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: rgba(245, 240, 230, .82); font-size: .92rem; font-weight: 500;
  padding: 9px 13px; border-radius: 8px;
}
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav a.active { color: var(--turquoise); }
.nav a.nav-cta {
  margin-left: 8px; border: 1.5px solid var(--gold); color: var(--gold); border-radius: 99px; padding: 8px 18px;
}
.nav a.nav-cta:hover { background: var(--gold); color: var(--ink); }

.lang-switch {
  display: flex; border: 1px solid rgba(245, 240, 230, .35); border-radius: 99px; overflow: hidden; margin-left: 10px;
}
.lang-switch button {
  background: none; border: 0; color: rgba(245, 240, 230, .75);
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; padding: 7px 12px;
}
.lang-switch button.on { background: var(--sand-100); color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--sand-100); transition: transform .3s var(--ease), opacity .2s; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: var(--sea-900);
}
.hero--short { min-height: 62svh; align-items: flex-end; }
.hero .hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  animation: hero-zoom 18s var(--ease) forwards;
}
.hero .hero-bg.fade { opacity: 0; transition: opacity 2.4s var(--ease); }
.hero .hero-bg.fade.show { opacity: 1; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,43,58,.26) 0%, rgba(13,43,58,.04) 42%, rgba(13,43,58,.62) 100%);
}
.hero .container { position: relative; z-index: 2; padding-bottom: clamp(56px, 10vh, 120px); padding-top: 140px; }
.hero h1 {
  font-size: var(--fs-hero); color: var(--white);
  max-width: 17ch; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero .lead { color: rgba(245, 240, 230, .88); margin-top: 18px; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.hero .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .kicker { color: var(--turquoise); }

/* ---------- card ---------- */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card .card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card .card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card .card-body h3 { font-size: 1.25rem; }
.card .card-meta { font-size: .8rem; color: var(--mist); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.card .card-meta .dot { color: var(--turquoise); margin: 0 6px; }
.card p { font-size: .94rem; color: var(--slate); }
.card .card-link { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: .92rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- liste di vantaggi / feature ---------- */
.feature {
  display: flex; gap: 16px; align-items: flex-start;
}
.feature .ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--sea-100); color: var(--sea-700); font-size: 1.2rem;
}
.section--ink .feature .ico { background: rgba(255, 255, 255, .12); color: var(--turquoise); }
.section--sea .feature .ico { background: var(--white); color: var(--sea-700); }
.feature h3 { font-size: 1.12rem; margin-bottom: 4px; }
.feature p { font-size: .92rem; }

/* numeri / prova sociale */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); color: var(--gold); }
.stats .lbl { font-size: .85rem; color: inherit; opacity: .8; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- striscia CTA ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 24ch; margin-inline: auto; }
.cta-band .btn { margin-top: 28px; }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink);
  padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--sand-300); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--sea-500); box-shadow: 0 0 0 4px rgba(31, 134, 173, .12);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--mist); }

/* ---------- footer ---------- */
.site-footer { background: var(--sand-100); color: var(--slate); padding: 64px 0 32px; font-size: .92rem; border-top: 1px solid var(--sand-300); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 44px; }
.site-footer h4 { color: var(--ink); font-size: 1rem; margin-bottom: 14px; letter-spacing: .04em; }
.site-footer a { color: var(--slate); display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--sea-700); }
.site-footer .brand { margin-bottom: 14px; color: var(--sea-700); }
.site-footer .brand:hover { color: var(--sea-900); }
.site-footer .fineprint {
  border-top: 1px solid rgba(10, 14, 19, .10); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: .8rem; color: var(--mist);
}
.site-footer .fineprint a { display: inline; color: var(--mist); padding: 0; }
.site-footer .fineprint a:hover { color: var(--sea-700); }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 2000; left: 18px; right: 18px; bottom: 18px;
  max-width: 520px; margin-inline: auto;
  background: var(--white); color: var(--slate);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 20px 22px; font-size: .88rem;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.cookie-banner.show { transform: none; opacity: 1; pointer-events: auto; }
.cookie-banner .row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 9px 18px; font-size: .85rem; }
.cookie-banner a { color: var(--sea-700); }

/* ---------- breadcrumb hero di pagina ---------- */
.page-hero {
  position: relative; padding: 150px 0 70px;
  background: var(--sea-900); color: var(--white); overflow: hidden;
}
.page-hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,43,58,.30), rgba(13,43,58,.74)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero .lead { color: rgba(245, 240, 230, .85); margin-top: 12px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- blog ---------- */
.post-body { max-width: 720px; margin-inline: auto; font-size: 1.05rem; }
.post-body h2, .post-body h3 { margin: 1.6em 0 .5em; }
.post-body p { margin: 0 0 1.1em; }
.post-body img { border-radius: var(--radius); margin: 1.4em 0; }
.post-body blockquote { border-left: 3px solid var(--turquoise); padding-left: 18px; color: var(--mist); margin: 1.4em 0; font-style: italic; }
.post-body ul, .post-body ol { margin: 0 0 1.1em; }
.post-body code { background: var(--sand-100); border-radius: 6px; padding: 2px 7px; font-size: .9em; }

/* ---------- badge / pill ---------- */
.pill {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .06em;
  background: var(--sea-100); color: var(--sea-700);
  padding: 4px 12px; border-radius: 99px; text-transform: uppercase;
}
.pill--gold { background: rgba(199, 165, 87, .15); color: #9a7b34; }
.pill--turquoise { background: rgba(70, 194, 188, .15); color: #20847f; }
.card .pill { align-self: flex-start; }

/* le ancore non finiscono sotto l'header fisso */
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(251, 248, 242, .98); backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(13, 43, 58, .12);
    padding: 12px 20px 26px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
    max-height: calc(100svh - var(--header-h)); overflow: auto;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a, .site-header .nav a { color: var(--slate); padding: 14px 10px; font-size: 1.05rem; border-bottom: 1px solid rgba(10, 14, 19, .07); border-radius: 0; }
  .site-header .nav a:hover { color: var(--sea-700); background: none; }
  .site-header .nav a.active { color: var(--sea-700); }
  .nav a.nav-cta, .site-header .nav a.nav-cta { margin: 16px 0 0; text-align: center; border-radius: 99px; border-bottom: 0; border: 1.5px solid var(--gold); color: #9a7b34; }
  .lang-switch, .site-header .lang-switch { margin: 18px auto 0; border-color: rgba(10, 14, 19, .22); }
  .site-header .lang-switch button { color: var(--slate); }
  .site-header .lang-switch button.on { background: var(--sea-500); color: var(--white); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 26px; }
  .hero .container { padding-top: 120px; }
}
