/* ==========================================================================
   Lares Energy — clean corporate design system
   --------------------------------------------------------------------------
   I font sono ospitati sul nostro server (assets/fonts/): nessuna richiesta a
   terze parti, nessun trasferimento di dati fuori dall'UE, nessun cookie.
   Sono sottoinsiemi latini in formato woff2, 200 KB in tutto.
   Dettagli e licenze: assets/fonts/LEGGIMI.txt
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;          /* file variabile: copre tutti i pesi */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lares Serif";
  src: url("../fonts/Serif-Regular.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lares Serif";
  src: url("../fonts/Serif-Bold.woff2") format("woff2");
  font-weight: 501 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lares Serif";
  src: url("../fonts/Serif-Italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lares Serif";
  src: url("../fonts/Serif-BoldItalic.woff2") format("woff2");
  font-weight: 501 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink:        #0d1f2d;
  --ink-soft:   #1c3346;
  --slate:      #4a5c6b;
  --slate-lite: #7b8b98;
  --line:       #dde4e9;
  --line-soft:  #eef2f5;
  --paper:      #ffffff;
  --paper-alt:  #f4f7f9;
  --paper-deep: #0d1f2d;
  --green:      #79b63a;
  --green-dark: #5d8f2b;
  --green-tint: #f0f7e7;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Lares Serif", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --gut: 28px;

  --shadow-sm: 0 1px 2px rgba(13,31,45,.06), 0 4px 14px rgba(13,31,45,.05);
  --shadow-md: 0 2px 6px rgba(13,31,45,.07), 0 18px 40px rgba(13,31,45,.09);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-soft); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1.02rem; font-family: var(--sans); font-weight: 650; letter-spacing: .01em; }
p  { margin: 0 0 1.15em; overflow-wrap: break-word; }
ul, ol { margin: 0 0 1.3em; padding-left: 1.15em; }
li { margin-bottom: .5em; }
strong { color: var(--ink-soft); font-weight: 620; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
/* narrow reading column, but still left-aligned with every other section */
.wrap-narrow > * { max-width: 780px; }
section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
section.tight { padding: clamp(2.5rem, 4vw, 3.75rem) 0; }
.alt { background: var(--paper-alt); }
.deep { background: var(--paper-deep); color: #b9c7d2; }
.deep h1, .deep h2, .deep h3, .deep h4 { color: #fff; }
.deep a { color: #fff; }
.deep strong { color: #fff; }

.grid { display: grid; gap: clamp(1.75rem, 3.4vw, 3rem); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-wide { grid-template-columns: 1.25fr 1fr; }
.split-side { grid-template-columns: 1.65fr 1fr; align-items: start; gap: clamp(2rem, 5vw, 4rem); }

/* ---------- eyebrow / section head ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green); flex: none; }
.deep .eyebrow { color: var(--green); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.62; color: var(--ink-soft); }
.sec-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.25rem); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .68rem; text-decoration: none; margin-right: auto; }
.brand img { width: 32px; height: 32px; }
.brand span {
  font-family: var(--sans); font-size: .95rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .17em;
  color: var(--ink); white-space: nowrap;
}
.brand span em { font-style: normal; font-weight: 400; color: var(--green-dark); }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  font-size: .935rem; font-weight: 500; color: var(--slate);
  text-decoration: none; padding: .35rem 0; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--green); transform: scaleX(0);
  transform-origin: left; transition: transform .22s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.lang {
  display: flex; align-items: center; gap: .45rem; font-size: .8rem;
  font-weight: 600; letter-spacing: .06em; padding-left: 1.4rem;
  border-left: 1px solid var(--line); margin-left: .25rem;
}
.lang a { color: var(--slate-lite); text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang .on { color: var(--ink); }
.burger {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer;
  color: var(--ink); line-height: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .935rem; font-weight: 600;
  padding: .78rem 1.5rem; border-radius: 3px; text-decoration: none;
  border: 1px solid transparent; transition: all .2s ease; cursor: pointer;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }

/* buttons on dark backgrounds */
.deep .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost, .cta .btn-ghost {
  border-color: rgba(255,255,255,.38); color: #fff; background: transparent;
}
.deep .btn-ghost:hover, .hero .btn-ghost:hover, .page-hero .btn-ghost:hover, .cta .btn-ghost:hover {
  border-color: #fff; color: #fff; background: rgba(255,255,255,.1);
}
.deep .btn-primary, .hero .btn-primary, .page-hero .btn-primary, .cta .btn-primary {
  background: #fff; color: var(--ink); border-color: #fff;
}
.deep .btn-primary:hover, .hero .btn-primary:hover, .page-hero .btn-primary:hover, .cta .btn-primary:hover {
  background: var(--green); color: #08161f; border-color: var(--green);
}
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.arrow { font-size: 1.05em; line-height: 1; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.link-more {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .9rem; font-weight: 600; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--green); padding-bottom: 2px;
}
.link-more:hover { color: var(--green-dark); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--paper-deep); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img,
.hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
/* il video sta sopra l'immagine, che resta come fallback e come poster */
.hero-media video { position: absolute; inset: 0; }
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(13,31,45,.94) 8%, rgba(13,31,45,.72) 52%, rgba(13,31,45,.5) 100%);
}
.hero-inner { position: relative; padding: clamp(5rem, 12vw, 9.5rem) 0 clamp(4.5rem, 10vw, 8rem); max-width: 780px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero .lede { color: #c3d0da; max-width: 620px; }
.hero .eyebrow { color: var(--green); }

.hero-sub { position: relative; background: var(--paper-deep); border-top: 1px solid rgba(255,255,255,.12); }
.hero-sub .hero-inner { padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); }

/* page hero (interior) */
.page-hero { background: var(--paper-deep); color: #fff; position: relative; overflow: hidden; }
.page-hero .hero-media img { opacity: .28; }
.page-hero-inner { position: relative; padding: clamp(3.5rem, 7vw, 5.75rem) 0 clamp(3rem, 6vw, 4.5rem); max-width: 800px; }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero .lede { color: #c3d0da; margin-bottom: 0; }

/* breadcrumb */
.crumb { font-size: .82rem; color: #8ea2b2; margin-bottom: 1.1rem; letter-spacing: .02em; }
.crumb a { color: #8ea2b2; text-decoration: none; }
.crumb a:hover { color: #fff; }

/* ---------- stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--paper); padding: 1.85rem 1.6rem; }
.deep .stats { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.14); }
.deep .stat { background: var(--paper-deep); }
.stat .n {
  font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--ink); font-weight: 600; line-height: 1; display: block; margin-bottom: .45rem;
}
.deep .stat .n { color: #fff; }
.stat .l { font-size: .82rem; letter-spacing: .04em; color: var(--slate-lite); line-height: 1.45; }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; height: 100%;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.6rem 1.5rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p { font-size: .95rem; margin-bottom: 1rem; }
.card-body .link-more { margin-top: auto; align-self: flex-start; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 650; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-dark); background: var(--green-tint);
  padding: .3rem .6rem; margin-bottom: .85rem; border-radius: 2px;
}
.tag.muted { color: var(--slate-lite); background: var(--line-soft); }

/* pillar (no image) */
.pillar { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.pillar .num {
  font-family: var(--serif); font-size: .95rem; color: var(--green-dark);
  font-weight: 600; letter-spacing: .05em; display: block; margin-bottom: .55rem;
}
.pillar h3 { margin-bottom: .5rem; }
.pillar p { font-size: .95rem; margin-bottom: 0; }
.deep .pillar { border-top-color: var(--green); }

/* ---------- process steps ---------- */
.steps { counter-reset: s; border-top: 1px solid var(--line); }
.step {
  counter-increment: s;
  display: grid; grid-template-columns: 76px 1fr;
  gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.step::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--green-dark); line-height: 1.35;
}
.step h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.step p { font-size: .95rem; margin-bottom: 0; }

/* ---------- feature list ---------- */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .8rem; font-size: .97rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 9px; height: 9px; background: var(--green); border-radius: 50%;
}

/* ---------- figure ---------- */
figure { margin: 0; }
figure img { width: 100%; }
figcaption { font-size: .82rem; color: var(--slate-lite); margin-top: .7rem; line-height: 1.5; }
/* ---------- video ---------- */
.video { margin: 0; }
.video video {
  width: 100%; height: auto; display: block;
  background: var(--paper-deep); border: 1px solid var(--line);
}
.video figcaption { margin-top: .85rem; }

.figure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.figure-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split > img { width: 100%; }

/* ---------- callout / doc ---------- */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--green);
  background: var(--paper-alt); padding: 1.5rem 1.6rem;
}
.callout h4 { margin-bottom: .4rem; }
.callout p:last-child { margin-bottom: 0; }
.callout .small { font-size: .9rem; }

.doc-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.doc-list li { border-bottom: 1px solid var(--line); }
.doc-list a {
  display: flex; align-items: baseline; gap: .85rem; padding: 1rem .2rem;
  text-decoration: none; color: var(--ink); font-weight: 550; font-size: .96rem;
}
.doc-list a:hover { color: var(--green-dark); }
.doc-list .meta { margin-left: auto; font-size: .78rem; color: var(--slate-lite); font-weight: 500; letter-spacing: .08em; }

/* ---------- partner logos / list ---------- */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.partner { background: var(--paper); padding: 1.6rem 1.7rem; }
.partner h4 { margin-bottom: .3rem; }
.partner p { font-size: .9rem; margin: 0; color: var(--slate-lite); }

/* ---------- contact ---------- */
.contact-card { border: 1px solid var(--line); padding: 1.9rem 1.8rem; background: var(--paper); }
.contact-card h3 { margin-bottom: 1rem; }
.contact-card dl { margin: 0; }
.contact-card dt {
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--slate-lite); font-weight: 650; margin-top: 1.1rem;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: .3rem 0 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- CTA band ---------- */
.cta { background: var(--paper-deep); color: #fff; }
.cta h2 { color: #fff; max-width: 640px; }
.cta p { color: #b9c7d2; max-width: 560px; }

/* ---------- footer ---------- */
.site-footer { background: #08161f; color: #8ea2b2; font-size: .92rem; padding: clamp(3rem, 5vw, 4.25rem) 0 2rem; }
.site-footer h4 { color: #fff; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #b9c7d2; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .55rem; }
.foot-brand { display: flex; align-items: center; gap: .68rem; margin-bottom: 1.1rem; }
.foot-brand img { width: 30px; height: 30px; }
.foot-brand span {
  font-family: var(--sans); font-size: .9rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .17em; color: #fff;
}
.foot-brand span em { font-style: normal; font-weight: 400; color: var(--green); }
.foot-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .82rem;
}
.foot-legal a { text-decoration: none; }
.foot-legal span { opacity: .45; margin: 0 .1rem; }

/* ---------- legal / long-form text pages ---------- */
.legal-head { border-bottom: 1px solid var(--line); padding: clamp(2.5rem,5vw,4rem) 0 clamp(1.75rem,3vw,2.5rem); }
.legal-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .4em; }
.legal-head .lede { margin-bottom: 0; }
.legal { max-width: 760px; }
.legal h2 {
  font-size: 1.3rem; margin-top: 2.75rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}
.legal h2:first-of-type { margin-top: 1rem; border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.02rem; font-family: var(--sans); font-weight: 650; margin-top: 1.75rem; }
.legal p, .legal li { font-size: .97rem; }
.legal dl { margin: 0 0 1.3em; }
.legal dt { font-weight: 650; color: var(--ink-soft); margin-top: .9rem; font-size: .95rem; }
.legal dd { margin: .15rem 0 0; font-size: .97rem; }
.legal .updated {
  font-size: .84rem; color: var(--slate-lite);
  border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 3rem;
}

/* ---------- utility ---------- */
.mb0 { margin-bottom: 0; }
.mt2 { margin-top: 2rem; }
.small { font-size: .9rem; }
.muted { color: var(--slate-lite); }
.center { text-align: center; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: .7rem 1.1rem; z-index: 200; text-decoration: none;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.25rem; box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .lang { border-left: 0; padding-left: 0; margin-left: 0; padding-top: 1rem; }
  .g-2, .g-3, .split, .split-wide, .split-side { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: 1fr; }
  .split .media-first { order: -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .g-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .figure-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cta { display: none; }
  body { color: #000; }
}
