/*
 * OXY CAPITAL EOS — foglio di stile
 * Palette: navy #002F55, crema #FFF0CA, bianco, testo #666666, oro #E9C04C (solo logo)
 * Font: Open Sans. Breakpoint: 640 / 768 / 1024 px.
 */

:root {
  --navy: #002F55;
  --navy-dark: #001f3d;
  --cream: #FFF0CA;
  --cream-dark: #f7e4b5;
  --gold: #E9C04C;
  --muted: #666666;
  --hairline: #e6e8ec;
  --green: #22a06b;
  --amber: #f5c518;
  --white: #ffffff;
  --navy-70: rgba(0, 47, 85, .7);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--hairline); }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--muted);
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--navy); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: 1.25rem; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; }
strong { font-weight: 700; }
::selection { background: var(--gold); color: var(--navy); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { max-width: 48rem; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .875rem; letter-spacing: .02em; line-height: 1.5;
  border-radius: 2px; transition: background .2s ease, color .2s ease;
}
.btn-primary { background: var(--navy); color: #fff; padding: .75rem 1.25rem; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-outline-white { border: 1px solid #fff; color: #fff; padding: .7rem 1.2rem; }
.btn-outline-white:hover { background: #fff; color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); padding: .75rem 1.5rem; font-size: 15px; letter-spacing: 0; }
.btn-white:hover { background: var(--cream); }
.btn-invert { background: #fff; color: var(--navy); padding: .75rem 1.25rem; }
.btn-invert:hover { background: var(--cream); }

/* ---------- Tipografia di servizio ---------- */
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); margin-bottom: .75rem; }
.kicker { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--navy-70); }
.lead { margin-top: 1rem; line-height: 1.625; }
.text-center { text-align: center; }
.small { font-size: .875rem; }
.xsmall { font-size: .75rem; }
.italic { font-style: italic; }
.text-navy { color: var(--navy); }
.link-arrow { display: inline-block; margin-top: .75rem; color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.link-arrow:hover { text-decoration: none; }

/* ---------- Sezioni ---------- */
.section { padding-block: 4rem; }
.section-sm { padding-block: 3.5rem; }
.bg-white { background: #fff; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: #fff; }
.section-head { max-width: 48rem; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.narrow { max-width: 42rem; }
.max-3xl { max-width: 48rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mx-auto { margin-inline: auto; }

@media (min-width: 768px) {
  .section { padding-block: 6rem; }
}

/* ---------- Griglie ---------- */
.grid { display: grid; gap: 1.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.grid-2c { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.items-start { align-items: start; }
@media (min-width: 640px) {
  .sm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--hairline); background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.header-bar { display: flex; align-items: center; justify-content: space-between; padding-block: .5rem; }
.header-logo { display: flex; align-items: center; }
.header-logo img { height: 56px; width: auto; }

.main-nav { display: none; align-items: center; gap: 1.5rem; }
.nav-link {
  display: flex; align-items: center; gap: .25rem;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: var(--navy); transition: color .2s; border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--navy-70); }
.nav-link.is-active { color: var(--navy); border-bottom-color: var(--navy); }

.nav-dropdown { position: relative; }
.nav-dropdown-panel { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); padding-top: .75rem; display: none; }
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { display: block; }
.nav-dropdown-menu { width: 320px; border: 1px solid var(--hairline); background: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.nav-dropdown-menu a { display: block; padding: .75rem 1rem; font-size: 13px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--hairline); line-height: 1.5; }
.nav-dropdown-menu a:last-child { border-bottom: 0; }
.nav-dropdown-menu a:hover { background: var(--cream); }

.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--hairline); }
.main-nav .lang-switch { margin-left: .25rem; }
.lang-switch a { padding: .25rem .5rem; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; line-height: 1.5; background: #fff; color: var(--navy); transition: background .2s; }
.lang-switch a:hover { background: var(--cream); }
.lang-switch a.is-active { background: var(--navy); color: #fff; }

.header-mobile { display: flex; align-items: center; gap: .75rem; }
.menu-toggle { color: var(--navy); display: flex; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu { border-top: 1px solid var(--hairline); background: #fff; }
.mobile-menu-inner { display: flex; flex-direction: column; gap: .25rem; padding-block: 1rem; }
.mobile-menu-inner a { padding-block: .5rem; font-size: .875rem; font-weight: 600; color: var(--navy); }
.mobile-menu-inner a.is-sub { padding-left: .75rem; }
.mobile-menu-label { padding-block: .5rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mobile-menu-inner .mobile-menu-cta { margin-top: .75rem; align-self: flex-start; color: #fff; padding: .75rem 1.25rem; }

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-mobile, .mobile-menu { display: none !important; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); }
.site-footer .container { padding-block: 1.5rem; text-align: center; font-size: .75rem; }
.site-footer a:hover { color: #fff; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(0, 47, 85, .75); }
.page-hero-inner { position: relative; padding-block: 5rem; }
.page-hero-eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: rgba(255,255,255,.8); margin-bottom: 1rem; }
.page-hero h1 { color: #fff; max-width: 56rem; }
.page-hero-sub { margin-top: 1.25rem; max-width: 48rem; color: rgba(255,255,255,.85); font-size: 1rem; }
.page-hero-rule { width: 4rem; height: 3px; background: #fff; margin-top: 2rem; }
@media (min-width: 768px) {
  .page-hero-inner { padding-block: 7rem; }
  .page-hero-sub { font-size: 1.125rem; }
}

/* ---------- Card generiche ---------- */
.card { background: #fff; border: 1px solid var(--hairline); }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.card-hover { transition: border-color .25s, box-shadow .25s; }
.card-hover:hover { border-color: var(--navy); box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.card-hover-sm:hover { border-color: var(--navy); box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }

.stat { background: var(--cream); padding: 1.5rem; text-align: center; }
.stat.on-white { background: #fff; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.stat-label { margin-top: .5rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
@media (min-width: 768px) { .stat-value.lg { font-size: 1.875rem; } }

.bullets { margin-top: 1rem; list-style: disc; padding-left: 1.25rem; font-size: .875rem; line-height: 1.625; }
.bullets li + li { margin-top: .5rem; }

/* ---------- HOME ---------- */
.home-video { position: relative; background: var(--navy); }
.home-video-frame { position: relative; width: 100%; height: 280px; overflow: hidden; }
.home-video-frame video, .home-video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-video-frame .poster-fallback { display: none; }
.home-video-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,47,85,.6), rgba(0,47,85,.4), rgba(0,47,85,.7)); }
@media (prefers-reduced-motion: reduce) {
  .home-video-frame video { display: none; }
  .home-video-frame .poster-fallback { display: block; }
}
@media (min-width: 640px) { .home-video-frame { height: 340px; } }
@media (min-width: 768px) { .home-video-frame { height: 420px; } }
@media (min-width: 1024px) { .home-video-frame { height: 480px; } }

.claim { position: relative; background-size: cover; background-position: center; padding-block: 3rem; }
.claim-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,47,85,.85), rgba(0,47,85,.7), rgba(0,47,85,.85)); }
.claim-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.claim-logo { width: 7rem; flex-shrink: 0; filter: drop-shadow(0 25px 25px rgba(0,0,0,.15)); }
.claim-text { flex: 1; text-align: center; color: #fff; }
.claim-text h1 { color: #fff; font-size: 1.5rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .025em; filter: drop-shadow(0 1px 2px rgba(0,0,0,.1)); }
.claim-text p { margin: 1rem auto 0; max-width: 42rem; color: rgba(255,255,255,.9); font-size: 1rem; }
.claim-ctas { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
@media (min-width: 768px) {
  .claim { padding-block: 5rem; }
  .claim-inner { flex-direction: row; gap: 3rem; }
  .claim-logo { width: 9rem; }
  .claim-text { text-align: left; }
  .claim-text h1 { font-size: 1.875rem; }
  .claim-text p { margin-left: 0; font-size: 1.125rem; }
  .claim-ctas { justify-content: flex-start; }
}
@media (min-width: 1024px) {
  .claim-logo { width: 10rem; }
  .claim-text h1 { font-size: 2.25rem; }
}

.blocks-head { max-width: 48rem; margin: 0 auto 3.5rem; text-align: center; }
.block-card { display: block; border: 1px solid var(--hairline); background: #fff; overflow: hidden; transition: all .15s; }
.block-card:hover { border-color: var(--navy); box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.block-card-img { position: relative; height: 12rem; background-size: cover; background-position: center; }
.block-card-img::after { content: ""; position: absolute; inset: 0; background: rgba(0,47,85,.25); transition: background .2s; }
.block-card:hover .block-card-img::after { background: rgba(0,47,85,.1); }
.block-card-body { padding: 2rem; }
.block-card h3 { margin-top: .75rem; font-size: 1.5rem; }
.block-card:hover h3 { text-decoration: underline; }
.block-card p { margin-top: 1rem; line-height: 1.625; }
.block-card .more { margin-top: 1.5rem; font-size: .875rem; font-weight: 700; color: var(--navy); }
@media (min-width: 768px) {
  .block-card-img { height: 14rem; }
  .block-card-body { padding: 2.5rem; }
}

.photo-sep { height: 16rem; background-size: cover; background-position: center; }
@media (min-width: 768px) { .photo-sep { height: 20rem; } }

.numbers { position: relative; background-size: cover; background-position: center; padding-block: 4rem; }
.numbers-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,47,85,.9), rgba(0,47,85,.8), rgba(0,47,85,.9)); }
.numbers-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem; text-align: center; }
.numbers-value { font-size: 1.875rem; font-weight: 700; color: #fff; line-height: 1.2; }
.numbers-label { margin-top: .5rem; font-size: .875rem; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .05em; }
@media (min-width: 768px) {
  .numbers-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .numbers-value { font-size: 2.25rem; }
}

.partners-section { padding-block: 4rem; }
@media (min-width: 768px) { .partners-section { padding-block: 5rem; } }
.partner-groups > * + * { margin-top: 3rem; }
.partner-group-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--navy-70); text-align: center; margin-bottom: 1rem; }
.partner-group-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.partner-logo { height: 5rem; width: 10rem; display: flex; align-items: center; justify-content: center; padding-inline: 1rem; background: #fff; border: 1px solid var(--hairline); transition: all .15s; }
.partner-logo:hover { border-color: var(--navy); box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.partner-logo img { max-height: 3.5rem; max-width: 85%; object-fit: contain; }

/* ---------- Modale ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0,0,0,.6); }
.modal.dark { background: rgba(0,0,0,.8); }
.modal-box { position: relative; background: #fff; width: 100%; max-width: 32rem; padding: 2rem; }
.modal-box.wide { max-width: 56rem; padding: 0; max-height: 92vh; overflow-y: auto; }
.modal-close { position: absolute; top: .75rem; right: 1rem; z-index: 10; font-size: 1.5rem; line-height: 1; color: var(--navy); }
.modal-box.wide .modal-close { font-size: 1.875rem; }
.modal-logo { height: 5rem; display: flex; align-items: center; margin-bottom: 1rem; }
.modal-logo img { max-height: 5rem; max-width: 220px; object-fit: contain; }
.modal-desc { margin-top: .75rem; line-height: 1.625; }
body.has-modal { overflow: hidden; }

/* ---------- CHI SIAMO ---------- */
.fund-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 768px) { .fund-grid { grid-template-columns: 280px 1fr; } }
.fund-logo { background: var(--navy); padding: 2rem; display: flex; align-items: center; justify-content: center; min-height: 160px; }
.fund-logo img { width: 100%; }
.kpi-row { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; text-align: center; }
.kpi-row li { background: var(--cream); padding: 1rem; }
.kpi-row .v { font-size: 1.25rem; font-weight: 700; color: var(--navy); line-height: 1.4; }
.kpi-row .l { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; line-height: 1.33; }
.area-card { border: 1px solid var(--hairline); padding: 1.5rem; }
.area-card .geo { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.area-card .title { margin-top: .25rem; font-size: 1.125rem; font-weight: 700; color: var(--navy); }
.area-card ul { margin-top: 1rem; font-size: .875rem; }
.area-card li + li { margin-top: .5rem; }
.big-figure { font-size: 1.875rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.big-figure span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.tech-logo { height: 5rem; display: flex; align-items: center; margin-bottom: 1.25rem; }
.tech-logo img { max-height: 4rem; max-width: 220px; object-fit: contain; }
.address { margin-top: 1.25rem; font-size: .875rem; }

/* ---------- SOLUZIONE ---------- */
.stack-10 > * + * { margin-top: 2.5rem; }
.layout-card { border: 1px solid var(--hairline); background: #fff; overflow: hidden; display: grid; }
@media (min-width: 640px) { .layout-card { grid-template-columns: 160px 1fr; } }
.layout-card-img { background: var(--cream); display: flex; align-items: center; justify-content: center; padding: .75rem; }
.layout-card-img img { max-height: 10rem; width: auto; object-fit: contain; }
.layout-card-img.cover { padding: .5rem; }
.layout-card-img.cover img { width: 100%; height: 100%; max-height: 10rem; object-fit: cover; }
.layout-card-body { padding: 1.5rem; }
.layout-card-body .label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--navy-70); }
.layout-card-body .title { margin-top: .5rem; font-size: 1.25rem; font-weight: 700; color: var(--navy); line-height: 1.4; }
.layout-card-body p { margin-top: .75rem; }

/* ---------- PIPELINE ---------- */
.map-wrap { margin-top: 2rem; display: flex; justify-content: center; }
.map-wrap img { width: 100%; max-width: 24rem; filter: contrast(1.05) saturate(1.05); }
.table-wrap { margin-top: 1.5rem; overflow-x: auto; }
.data-table { width: 100%; font-size: .875rem; border-collapse: collapse; }
.data-table th, .data-table td { padding: .75rem; text-align: right; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table thead tr { background: var(--navy); color: #fff; }
.data-table th { font-weight: 700; }
.data-table tbody tr { border-bottom: 1px solid var(--hairline); }
.data-table tbody td:first-child { font-weight: 600; color: var(--navy); }
.data-table tr.total { background: var(--cream); font-weight: 700; color: var(--navy); border: 0; }
.data-table tr.total td { font-weight: 700; }

.region-list > * + * { margin-top: 2.5rem; }
.region-title { margin-bottom: 1rem; }
.region-title span { font-size: .875rem; font-weight: 400; color: var(--muted); }
.project-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 768px) { .project-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.project-card { text-align: left; background: #fff; border: 1px solid var(--hairline); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: all .15s; }
.project-card:hover { border-color: var(--navy); box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.project-thumb { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(0,47,85,.05); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.project-thumb .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--navy-70); background: repeating-linear-gradient(135deg, var(--cream) 0 12px, var(--cream-dark) 12px 24px); }
.project-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.project-name { font-weight: 700; color: var(--navy); line-height: 1.25; }
.project-meta { margin-top: .5rem; font-size: .75rem; }

.badge { display: inline-block; padding: .25rem .5rem; font-size: .75rem; font-weight: 700; line-height: 1.33; white-space: nowrap; }
.badge-built { background: var(--green); color: #fff; }
.badge-authorized { background: var(--navy); color: #fff; }
.badge-via { background: var(--amber); color: var(--navy); }
.badge-pipeline { background: #fff; color: var(--navy); border: 1px solid var(--navy); }

.project-modal-photo { width: 100%; background: var(--cream); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.project-modal-photo img { max-width: 100%; max-height: 65vh; object-fit: contain; }
.project-modal-body { padding: 2rem; }
.project-modal-tags { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.project-modal-tags .region { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.project-modal-body h3 { font-size: 1.5rem; }
.project-facts { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; font-size: .875rem; }
@media (min-width: 768px) { .project-facts { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.project-facts dt { font-size: .75rem; text-transform: uppercase; }
.project-facts dd { font-weight: 700; color: var(--navy); }

.case-figure img { width: 100%; }
.case-figure figcaption { margin-top: .5rem; font-size: .75rem; font-style: italic; }

/* ---------- INVESTITORI FOTOVOLTAICI ---------- */
.step-card { background: var(--cream); border: 1px solid rgba(0,47,85,.1); padding: 1.5rem; }
.step-card .n { font-size: .75rem; font-weight: 700; color: rgba(0,47,85,.6); }
.step-card .t { margin-top: .5rem; font-weight: 700; color: var(--navy); font-size: 1.125rem; }
.step-card p { margin-top: .5rem; font-size: .875rem; }
.note-strong { margin-top: 1rem; font-size: .875rem; color: var(--navy); font-weight: 600; }
.model-card .t { font-weight: 700; color: var(--navy); font-size: 1.125rem; }
.model-card p { margin-top: .75rem; font-size: .875rem; line-height: 1.625; }
.pv-logos { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
@media (min-width: 768px) { .pv-logos { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.pv-logos a { height: 7rem; background: #fff; border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; padding-inline: 1rem; transition: all .15s; }
.pv-logos a:hover { border-color: var(--navy); box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.pv-logos img { max-height: 4rem; max-width: 80%; object-fit: contain; }
.cta-navy { padding-block: 3.5rem; text-align: center; }
.cta-navy h2 { color: #fff; }
.cta-navy p { margin: 1rem auto 0; max-width: 36rem; color: rgba(255,255,255,.8); }
.cta-navy .btn { margin-top: 2rem; }

/* Diagramma "Struttura dell'operazione" */
.diagram { border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; background: #fff; }
.diagram-title { background: var(--navy); padding: .75rem 1.5rem; text-align: center; color: #fff; font-weight: 700; letter-spacing: .025em; }
.diagram-desktop { display: none; padding: 2rem; }
.diagram-mobile { padding: 1.25rem; }
.diagram-mobile > * + * { margin-top: .75rem; }
@media (min-width: 768px) {
  .diagram-desktop { display: block; }
  .diagram-mobile { display: none; }
}
@media (min-width: 1024px) { .diagram-desktop { padding: 2.5rem; } }
.d-row { display: grid; grid-template-columns: 1fr .8fr 1fr .8fr 1fr; align-items: stretch; }
.d-box { border-radius: 4px; padding: 1rem; text-align: center; font-size: .875rem; font-weight: 700; line-height: 1.25; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 76px; color: var(--navy); }
.d-box.cream { background: var(--cream); border: 1px solid rgba(0,47,85,.25); }
.d-box.dashed { background: #fff; border: 2px dashed var(--navy); }
.d-box.solid { background: #fff; border: 2px solid var(--navy); padding: .75rem 1rem; }
.d-box .oxy { height: 1.5rem; width: auto; }
.d-box .dante { height: 2.5rem; width: auto; }
.d-box .sub { margin-top: .375rem; font-size: .75rem; font-weight: 600; color: var(--muted); }
.d-connectors { position: relative; height: 150px; }
.d-line-v { position: absolute; border-left: 2px solid var(--navy); }
.d-line-h { position: absolute; border-top: 2px solid var(--navy); }
.d-head { position: absolute; fill: var(--navy); }
.d-head.down, .d-head.up { width: 12px; height: 8px; transform: translateX(-50%); }
.d-head.left, .d-head.right { width: 8px; height: 12px; top: 50%; transform: translateY(-50%); }
.d-vlabel { position: absolute; top: 52%; font-size: 10px; font-style: italic; color: var(--navy); white-space: nowrap; writing-mode: vertical-rl; }
.d-link { position: relative; padding-inline: .5rem; min-height: 76px; }
.d-link .dash { position: absolute; top: 50%; transform: translateY(-50%); border-top: 2px dashed var(--navy); }
.d-link .lbl { position: absolute; left: 0; right: 0; font-size: 11px; font-style: italic; color: var(--navy); text-align: center; line-height: 1.375; padding-inline: .25rem; }
.d-link .lbl.above { bottom: 50%; margin-bottom: .75rem; }
.d-link .lbl.below { top: 50%; margin-top: .75rem; }
.d-num { display: inline-flex; height: 1.5rem; width: 1.5rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 9999px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.d-num.sm { height: 1.25rem; width: 1.25rem; vertical-align: middle; }
.d-arrow-txt { text-align: center; font-size: 11px; font-style: italic; color: var(--navy); }
.diagram-notes { background: rgba(255,240,202,.6); border-top: 1px solid var(--hairline); padding: 1.5rem; }
.diagram-notes > * + * { margin-top: 1rem; }
.diagram-notes .note { display: flex; gap: .75rem; }
.diagram-notes p { font-size: .875rem; line-height: 1.625; }
@media (min-width: 768px) { .diagram-notes { padding-inline: 2.5rem; } }

/* ---------- COME INVESTIRE ---------- */
.adv-card { background: #fff; padding: 1.25rem; text-align: center; border: 1px solid rgba(0,47,85,.1); }
.adv-card .n { font-size: 1.875rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.adv-card .t { margin-top: .5rem; font-size: .875rem; color: var(--navy); font-weight: 600; }
.checklist { margin-top: 1.5rem; }
.checklist li { display: flex; align-items: flex-start; gap: .75rem; }
.checklist li + li { margin-top: .75rem; }
.checklist .tick { margin-top: .25rem; color: var(--green); font-weight: 700; line-height: 1.2; }
.proc-card { border: 1px solid rgba(0,47,85,.2); padding: 1.25rem; text-align: center; }
.proc-card .n { color: var(--navy); font-weight: 700; font-size: 1.25rem; }
.proc-card .t { margin-top: .5rem; font-size: .875rem; font-weight: 600; color: var(--navy); }
.vehicle { display: flex; flex-direction: column; }
.vehicle > p:first-of-type { margin-top: .75rem; font-size: .875rem; line-height: 1.625; }
.vehicle dl { margin-top: 1.25rem; font-size: .875rem; }
.vehicle dl > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--hairline); padding-bottom: .5rem; }
.vehicle dl > div + div { margin-top: .5rem; }
.vehicle dd { font-weight: 600; color: var(--navy); text-align: right; }
.terms { margin-top: 1.5rem; border-top: 1px solid var(--hairline); padding-top: 1.25rem; }
.terms-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--navy-70); }
.terms-list { margin-top: 1rem; }
.terms-list > * + * { margin-top: 1rem; }
.terms-list .t { font-weight: 700; color: var(--navy); font-size: .875rem; }
.terms-list p { margin-top: .25rem; font-size: .875rem; line-height: 1.625; }
.terms-list p.note { font-size: .75rem; font-style: italic; }
.vehicle .disclaimer { margin-top: 1rem; font-style: italic; font-size: .75rem; }
.vehicle .btn { margin-top: 1.5rem; align-self: flex-start; }

/* ---------- TEAM ---------- */
.team-photo { max-width: 64rem; margin-inline: auto; }
.team-photo img { width: 100%; border: 1px solid var(--hairline); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.team-body { margin: 2rem auto 0; max-width: 48rem; text-align: center; font-size: 1.125rem; line-height: 1.625; }
.team-logos { margin-top: 3rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem; }
.team-logos div { height: 4rem; display: flex; align-items: center; }
.team-logos img { max-height: 4rem; max-width: 160px; object-fit: contain; }
@media (min-width: 768px) { .team-logos { gap: 3rem; } }

/* ---------- NEWS / PRODOTTI ---------- */
.news-card { border: 1px solid var(--hairline); padding: 1.5rem; background: #fff; transition: box-shadow .15s; }
.news-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.news-card .date { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--navy-70); }
.news-card h3 { margin-top: .5rem; }
.news-card p { margin-top: .75rem; font-size: .875rem; line-height: 1.625; }
.prod-card { border: 1px solid var(--hairline); padding: 2rem; transition: all .15s; display: block; }
.prod-card:hover { border-color: var(--navy); box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.prod-card p { margin-top: .75rem; }
.prod-card .more { margin-top: 1.25rem; font-size: .875rem; font-weight: 700; color: var(--navy); }

/* ---------- CONTATTI ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.tab { padding: .75rem 1.25rem; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; line-height: 1.43; border: 1px solid var(--hairline); background: #fff; color: var(--navy); }
.tab:hover { border-color: var(--navy); }
.tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.form-box { max-width: 42rem; margin-inline: auto; background: #fff; padding: 2rem; border: 1px solid var(--hairline); }
.form { margin-top: 1.5rem; display: grid; gap: .75rem; }
.field { padding: .75rem; border: 1px solid var(--hairline); background: #fff; color: var(--navy); width: 100%; border-radius: 0; }
.field::placeholder { color: #9ca3af; }
.field:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
select.field:invalid { color: #9ca3af; }
.consent { display: flex; align-items: flex-start; gap: .5rem; font-size: .75rem; }
.consent input { margin-top: .25rem; }
.form .btn { justify-self: start; }
.form-msg { margin-top: 1.5rem; color: var(--navy); }
.form-error { margin-top: 1rem; padding: .75rem 1rem; border: 1px solid #b3261e; color: #b3261e; font-size: .875rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.offices { padding-block: 4rem; }
.offices .kicker-white { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); margin-bottom: .75rem; }
.offices h2 { color: #fff; }
.offices .legal { margin-top: 1rem; color: rgba(255,255,255,.85); }
.offices-grid { margin-top: 2.5rem; display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .offices-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.office { display: grid; grid-template-rows: auto 1fr; }
.office .city { font-size: 1.125rem; font-weight: 700; color: #fff; }
.office address { font-style: normal; margin-top: .75rem; color: rgba(255,255,255,.85); line-height: 1.625; }
.office address a { text-decoration: underline; }
.office .map { height: 260px; width: 100%; margin-top: 1.25rem; align-self: end; }
.office iframe { width: 100%; height: 100%; border: 0; }

/* ---------- NOTE LEGALI ---------- */
.legal { display: grid; gap: 2.5rem; align-items: start; }
.legal > * { min-width: 0; }
@media (min-width: 1024px) { .legal { grid-template-columns: 220px 1fr; } }
.legal-toc { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
@media (min-width: 1024px) { .legal-toc { position: sticky; top: 6rem; flex-direction: column; border-left: 2px solid var(--navy); padding-left: 1rem; } }
.legal-toc a { color: var(--navy); }
.legal-toc a:hover { color: var(--navy-70); }
.legal-body { max-width: 46rem; }
.legal-body > * + * { margin-top: 1rem; }
.legal-body h2 { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); scroll-margin-top: 6rem; }
.legal-body h2:first-of-type { margin-top: 2rem; }
.legal-body h3 { margin-top: 2rem; font-size: 1.0625rem; }
.legal-body ol, .legal-body ul { padding-left: 1.4rem; }
.legal-body ol { list-style: decimal; }
.legal-body ul { list-style: disc; }
.legal-body li + li { margin-top: .5rem; }
.legal-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.legal-table { overflow-x: auto; }
.legal-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .875rem; }
.legal-table th, .legal-table td { padding: .6rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.legal-table th { background: var(--navy); color: #fff; font-weight: 700; }
.consent a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 404 ---------- */
.notfound { padding-block: 6rem; text-align: center; }
.notfound p { margin-top: .75rem; }
.notfound .btn { margin-top: 2rem; }
