/* =========================================================
   IKARIA — Design system v3
   Neutral near-black ground (not blue), white text. Teal +
   orange stay the only two "key message" accents — per feedback,
   the dark-blue brand color is no longer used as a section fill,
   only kept available as --navy for small, deliberate accents.
   Font: Century Gothic / Segoe UI stack (no serif).
   ========================================================= */

:root {
  --bg: #0a0d11;            /* page ground — neutral near-black */
  --bg-raised: #14181d;     /* panel surface — same neutral family, just lighter */
  --bg-raised-2: #1b2026;
  --navy: #0b2545;          /* Ikaria's dark blue — reserved for small accents only, not fills */
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.20);

  --ink: #ffffff;
  --ink-soft: #c2c9d1;
  --ink-faint: #828a93;

  --teal: #087884;
  --teal-light: #35b3bf;
  --orange: #d96c0b;
  --orange-light: #f08f3a;

  --shadow: 0 24px 50px -20px rgba(0,0,0,.6);

  /* Tutti i font del sito: Century Gothic. "Jost" è il fallback via Google Fonts
     per chi non ha Century Gothic installato localmente (es. non-Windows). */
  --display: "Century Gothic", "Jost", sans-serif;
  --body: "Century Gothic", "Jost", sans-serif;
  --mono: "Century Gothic", "Jost", sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--teal); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-light);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); }
.eyebrow.alt::before { background: var(--teal-light); }

.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 58ch; }

/* ---------- Buttons: teal / orange are the "key message" colors ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 3px;
  font-family: var(--body); font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 14px 30px -12px rgba(217,108,11,.55); }
.btn-orange:hover { background: var(--orange-light); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 14px 30px -12px rgba(8,120,132,.55); }
.btn-teal:hover { background: var(--teal-light); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--teal-light); color: var(--teal-light); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-sm { padding: 10px 18px; font-size: .85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,13,17,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink-soft); transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; gap: 6px; font-family: var(--mono); font-size: .76rem; color: var(--ink-faint); }
.lang-switch span.active { color: var(--ink); font-weight: 700; }
.lang-switch span.disabled { cursor: default; opacity: .5; }
.icon-link {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.icon-link:hover { border-color: var(--teal-light); color: #fff; background: rgba(8,120,132,.25); }
.icon-link svg { width: 16px; height: 16px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: #fff; position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section.raised { background: var(--bg-raised); }
.section-head { max-width: 700px; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.feed-block { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.feed-block.reverse .feed-media { order: 2; }
.feed-block.reverse .feed-text { order: 1; }

/* ---------- Real photography frames ---------- */
.photo-frame {
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--bg-raised);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption { margin-top: 12px; font-size: .78rem; color: var(--ink-faint); font-family: var(--mono); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 48px; align-items: center; padding-bottom: 64px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl-orange { color: var(--orange-light); }
.hero h1 .hl-teal { color: var(--teal-light); }
.hero .lead { margin-bottom: 30px; }
.hero-proof { display: flex; gap: 40px; margin-top: 46px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-proof .stat b { display: block; font-family: var(--mono); font-size: 1.3rem; color: #fff; }
.hero-proof .stat span { font-size: .78rem; color: var(--ink-faint); }
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.hero-visual::before {
  content: "";
  position: absolute; inset: 8% 10%;
  background: radial-gradient(closest-side, rgba(8,120,132,.28), transparent 72%);
  filter: blur(6px);
  z-index: 0;
}
.hero-visual img { position: relative; z-index: 1; width: 100%; max-width: 420px; display: block; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }

/* ---------- Complementarity / footprint tool ---------- */
.footprint-panel {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px;
  padding: 36px; box-shadow: var(--shadow);
}
.footprint-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; margin-bottom: 30px; }
.footprint-map-wrap { min-width: 0; }
#europe-map { width: 100%; height: auto; display: block; }
#europe-map path {
  fill: #2b3744; stroke: var(--bg-raised); stroke-width: .4;
  cursor: pointer; transition: fill .15s ease;
}
#europe-map path.has-data:hover { fill: var(--teal); }
#europe-map path.has-data { fill: #3a4a59; }
#europe-map path.selected { fill: var(--orange); }
#europe-map path:not(.has-data) { cursor: default; pointer-events: none; opacity: .35; }

.footprint-result { text-align: center; }
.fp-country-name {
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: 18px;
}
.footprint-visual { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: start; }
.fp-col { text-align: center; }
.fp-box-wrap { height: 220px; display: flex; align-items: flex-end; justify-content: center; }
.fp-box { border-radius: 6px; transition: height .5s cubic-bezier(.2,.8,.2,1), width .5s cubic-bezier(.2,.8,.2,1); }
.fp-box.wind { background: linear-gradient(160deg, var(--teal-light), var(--teal)); }
.fp-box.solar { background: linear-gradient(160deg, var(--orange-light), var(--orange)); }
.fp-label { margin-top: 14px; font-size: .85rem; color: var(--ink-soft); }
.fp-label b { display: block; font-family: var(--mono); font-size: 1.6rem; color: #fff; }
.fp-equals { font-family: var(--display); font-size: 1.8rem; color: var(--ink-faint); margin-top: 90px; }
.footprint-note { margin-top: 28px; font-size: .84rem; color: var(--ink-faint); border-top: 1px dashed var(--line); padding-top: 18px; }

/* ---------- Trust / credibility ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 10px; padding: 28px;
}
.card .icon-badge {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(8,120,132,.2); color: var(--teal-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .icon-badge svg { width: 22px; height: 22px; }

/* ---------- LinkedIn ---------- */
.li-embed-box {
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raised);
  min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 40px; text-align: center;
}
.li-embed-box svg { width: 40px; height: 40px; color: var(--teal-light); }
.li-posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; width: 100%; }
.li-post-slot iframe { width: 100%; border: none; border-radius: 8px; min-height: 480px; background: #fff; }

/* ---------- Contact / CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--bg-raised), var(--bg-raised-2));
  border-radius: 14px; padding: 56px; text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p.lead { margin: 0 auto 30px; }

/* ---------- Footer ---------- */
footer.site-footer { background: #060809; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
footer.site-footer h4 { font-size: .85rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; font-family: var(--body); font-weight: 700; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: #fff; }
.footer-brand img { height: 26px; margin-bottom: 14px; }
.footer-brand p { font-size: .85rem; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: .78rem; color: var(--ink-faint);
}

/* ---------- Cookie consent banner ---------- */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  background: #060809; border-top: 1px solid var(--line-strong);
  padding: 20px 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 -10px 30px rgba(0,0,0,.4);
}
#cookie-banner.hidden { display: none; }
#cookie-banner p { margin: 0; font-size: .85rem; color: var(--ink-soft); flex: 1 1 320px; }
#cookie-banner .btn-row { flex: 0 0 auto; }

/* ---------- Simple legal pages ---------- */
.legal-page { padding: 64px 0 100px; max-width: 760px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 10px; }
.legal-page .updated { font-family: var(--mono); font-size: .78rem; color: var(--ink-faint); margin-bottom: 40px; }
.legal-page h2 { font-size: 1.2rem; margin-top: 40px; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: .96rem; }
.legal-page ul { padding-left: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.skip-link { position: absolute; left: -999px; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 1000; }
.skip-link:focus { left: 16px; top: 16px; }

@media (max-width: 980px) {
  .hero-grid, .feed-block { grid-template-columns: 1fr; gap: 36px; }
  .feed-block.reverse .feed-media, .feed-block.reverse .feed-text { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .li-posts-grid { grid-template-columns: 1fr; }
  .footprint-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    flex-direction: column; padding: 20px 24px 28px; border-bottom: 1px solid var(--line); gap: 18px;
  }
  .section { padding: 64px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footprint-visual { grid-template-columns: 1fr 1fr; gap: 14px; }
  .fp-equals { display: none; }
  .footprint-panel { padding: 24px; }
  .footprint-map-wrap .field-hint { margin-top: 6px !important; }
  .fp-country-name { margin-bottom: 8px; }
  .fp-box-wrap { height: 150px; }
  .cta-band { padding: 36px 24px; }
  .nav-actions .btn-sm { padding: 10px; }
  .icon-link { flex-shrink: 0; }
}
