/* Solare Termodinamico – schema Impianti (page specific) */
:root{
  --dark:#0B1220;
  --green:#1E7F4F;
  --green2:#17663F;
  --border:#E5E8EF;
  --muted:#607080;
  --surface:#F6F8FB;
  --soft:#F7FAF9;
}
*{ box-sizing:border-box; margin:0; padding:0; }
body{ font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background:#fff; color:var(--dark); }
a{ color:inherit; }
img{ max-width:100%; display:block; }

/* HEADER */
header{ position:fixed; top:0; width:100%; background:rgba(255,255,255,0.85); backdrop-filter: blur(8px); z-index:1000; }
.nav-container{ width:65%; margin:0 auto; display:flex; justify-content:space-between; align-items:center; padding:18px 0; position:relative; }
.logo img{ height:45px; }
nav a{ margin-left:25px; text-decoration:none; font-weight:700; color:var(--dark); }
nav a:hover{ color:var(--green); }
.menu-toggle{ display:none; width:44px;height:44px; border-radius:14px; border:1px solid rgba(11,18,32,0.10); background:rgba(255,255,255,0.9); cursor:pointer; align-items:center; justify-content:center; }
.menu-toggle svg{ width:22px; height:22px; color:var(--dark); }
@media(max-width:1000px){ .nav-container{ width:90%; } nav a{ margin-left:14px; } }
@media(max-width:700px){ header nav{ display:none; } .menu-toggle{ display:inline-flex; } }
@media(max-width:400px){ .nav-container{ justify-content:center; } .logo{ display:flex; justify-content:center; width:100%; } .menu-toggle{ position:absolute; right:0; } .logo img{ height:42px; max-width:200px; width:auto; } }

/* MOBILE MENU */
.mobile-menu{ position:fixed; inset:0; background:rgba(11,18,32,0.55); backdrop-filter: blur(10px); display:none; z-index:1500; }
.mobile-menu.open{ display:block; }
.mobile-drawer{ position:absolute; top:14px; left:14px; right:14px; background:#fff; border-radius:22px; border:1px solid var(--border); box-shadow:0 22px 80px rgba(0,0,0,0.28); overflow:hidden; }
.mobile-drawer-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid #EEF2F7; }
.mobile-drawer-brand img{ height:34px; }
.mobile-close{ width:44px; height:44px; border-radius:14px; border:1px solid var(--border); background:#fff; cursor:pointer; font-size:18px; }
.mobile-links{ display:flex; flex-direction:column; padding:10px 6px 14px; }
.mobile-links a{ padding:14px 14px; margin:4px 8px; border-radius:16px; text-decoration:none; font-weight:900; color:var(--dark); background:var(--surface); border:1px solid #EEF2F7; }
.mobile-links a:hover{ background:#EEF8F3; border-color:rgba(30,127,79,0.22); color:var(--green); }

/* HELPERS */
.wrap-65{ width:65%; margin:0 auto; }
@media(max-width:1000px){ .wrap-65{ width:90%; } }

/* HERO */
.hero{ width:70%; margin:90px auto 0; height:72vh; min-height:520px; border-radius:20px; overflow:hidden; position:relative; background:#000; }
.hero-slides{ position:absolute; inset:0; }
.hero-slide{ position:absolute; inset:0; background-size:cover; background-position:center; background-repeat:no-repeat; opacity:0; transform:scale(1.02); transition:opacity 900ms ease, transform 1200ms ease; }
.hero-slide::before{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.62) 100%); }
.hero-slide.is-active{ opacity:1; transform:scale(1); }
.hero-content{ position:absolute; left:44px; right:44px; top:70%; transform:translateY(-50%); display:flex; flex-direction:column; align-items:flex-start; color:#fff; pointer-events:none; }
.hero-text{ max-width:820px; pointer-events:auto; }
.hero-title{ font-size:44px; font-weight:900; line-height:1.05; letter-spacing:-0.02em; }
.hero-desc{ font-size:18px; margin-top:14px; color:rgba(255,255,255,0.92); line-height:1.45; }
.hero-button{ position:absolute; right:44px; bottom:58px; background:var(--green); color:#fff; padding:14px 22px; border-radius:12px; font-weight:900; text-decoration:none; transition:.25s ease; border:none; box-shadow:0 12px 34px rgba(0,0,0,0.25); z-index:5; }
.hero-button:hover{ background:var(--green2); }
.hero-dots{ position:absolute; left:50%; transform:translateX(-50%); bottom:26px; display:flex; gap:12px; z-index:5; }
.hero-dot{ width:10px; height:10px; border-radius:999px; border:1px solid rgba(255,255,255,0.65); background:rgba(255,255,255,0.25); cursor:pointer; transition:transform .2s ease, background .2s ease, border-color .2s ease; }
.hero-dot:hover{ transform:scale(1.15); }
.hero-dot.is-active{ background:var(--green); border-color:var(--green); }
@media(max-width:1000px){ .hero{ width:90%; height:60vh; min-height:400px; } .hero-content{ left:22px; right:22px; top:62%; } .hero-title{ font-size:30px; } .hero-desc{ font-size:16px; } .hero-button{ right:22px; bottom:56px; } .hero-dots{ bottom:22px; } }
@media(max-width:400px){ .hero-content{ top:20%; transform:none; } .hero-button{ left:50%; right:auto; transform:translateX(-50%); } }

/* SECTIONS */
.section{ padding:54px 0; }
.h2{ font-size:30px; font-weight:950; letter-spacing:-0.02em; }
.p{ margin-top:12px; color:#2c2c2c; font-size:16.5px; line-height:1.75; }
.center{ text-align:center; }
.muted{ color:var(--muted); }

/* STEPS */
.steps{ margin-top:22px; display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.step{ border-radius:18px; border:1px solid var(--border); background:linear-gradient(180deg,#fff 0%, var(--soft) 100%); padding:16px; box-shadow:0 14px 46px rgba(0,0,0,0.05); }
.step .n{ width:38px; height:38px; border-radius:14px; display:flex; align-items:center; justify-content:center; background:rgba(30,127,79,0.14); color:var(--green); font-weight:950; margin-bottom:10px; }
.step h3{ font-size:16px; font-weight:950; }
.step p{ margin-top:8px; color:var(--muted); font-size:14.5px; line-height:1.55; }
@media(max-width:900px){ .steps{ grid-template-columns:1fr; } }

/* BULLETS */
.bullets{ margin-top:18px; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.bullet-card{ border:1px solid var(--border); border-radius:22px; background:#fff; box-shadow:0 18px 60px rgba(0,0,0,0.06); padding:18px; }
.bullet-card h3{ font-size:16px; font-weight:950; }
.bullet-card ul{ margin-top:10px; padding-left:18px; color:#2c2c2c; line-height:1.75; }
@media(max-width:900px){ .bullets{ grid-template-columns:1fr; } }

/* GALLERY */
.gallery-wrap{ width:70%; margin:0 auto; }
.gallery-head{ margin-bottom:12px; }
.gallery-title{ font-size:22px; font-weight:950; letter-spacing:-.01em; text-align:center; }
.gallery-desc{ margin-top:8px; color:var(--muted); font-size:14px; line-height:1.55; max-width:980px; margin-left:auto; margin-right:auto; text-align:center; }
.gallery{ position:relative; border-radius:22px; border:1px solid var(--border); background:#fff; box-shadow:0 18px 60px rgba(0,0,0,0.08); overflow:hidden; }
.gallery-viewport{ overflow:hidden; }
.gallery-track{ display:flex; transition:transform .45s ease; will-change:transform; }
.thumb{ flex:0 0 33.333%; aspect-ratio:16/10; position:relative; cursor:pointer; background:#0b1220; }
.thumb img{ width:100%; height:100%; object-fit:cover; transform:scale(1.02); transition:transform .5s ease, filter .5s ease; filter:saturate(1.05) contrast(1.02); }
.thumb::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.32) 100%); opacity:.65; }
.thumb:hover img{ transform:scale(1.08); filter:saturate(1.12) contrast(1.04); }
.gallery-arrow{ position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:14px; border:1px solid rgba(255,255,255,0.22); background:rgba(11,18,32,0.55); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; opacity:0; pointer-events:none; transition:opacity .2s ease, background .2s ease; }
.gallery:hover .gallery-arrow{ opacity:1; pointer-events:auto; }
.gallery-arrow:hover{ background:rgba(30,127,79,0.75); }
.gallery-arrow.prev{ left:14px; }
.gallery-arrow.next{ right:14px; }
.gallery-arrow svg{ width:18px; height:18px; }
@media(max-width:900px){ .gallery-wrap{ width:90%; } .thumb{ flex-basis:100%; } }

/* LIGHTBOX */
.lightbox{ position:fixed; inset:0; z-index:2200; background:rgba(11,18,32,0.86); display:none; }
.lightbox.open{ display:flex; }
.lightbox-inner{ width:min(1100px, 100%); margin:auto; padding:18px; position:relative; }
.lightbox-img{ width:100%; max-height:82vh; object-fit:contain; border-radius:18px; background:#000; }
.lightbox-close{ position:absolute; top:10px; right:10px; width:44px; height:44px; border-radius:14px; border:1px solid rgba(255,255,255,0.22); background:rgba(11,18,32,0.55); color:#fff; cursor:pointer; font-size:18px; }
.lightbox-nav{ position:absolute; top:50%; transform:translateY(-50%); width:50px; height:50px; border-radius:16px; border:1px solid rgba(255,255,255,0.22); background:rgba(11,18,32,0.55); color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.lightbox-nav:hover{ background:rgba(30,127,79,0.75); }
.lightbox-prev{ left:10px; }
.lightbox-next{ right:10px; }

/* INCENTIVES */
.incentives{ margin-top:22px; display:grid; grid-template-columns:1.2fr 0.8fr; gap:16px; align-items:start; }
.incent-card{ border:1px solid var(--border); border-radius:22px; background:#fff; box-shadow:0 18px 60px rgba(0,0,0,0.06); padding:18px; }
.incent-card h3{ font-size:16px; font-weight:950; }
.pills{ display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; justify-content:flex-start; }
.pill{ padding:10px 12px; border-radius:999px; border:1px solid var(--border); background:#fff; font-weight:900; font-size:13px; }
@media(max-width:1100px){ .incentives{ grid-template-columns:1fr; } }

/* CONTACT + MAP */
.contact-section{ width:100%; padding:70px 0; background:#fff; }
.contact-inner{ width:70%; margin:0 auto; display:grid; grid-template-columns:1.15fr 0.85fr; gap:28px; align-items:stretch; }
.contact-kicker{ font-size:24px; font-weight:950; letter-spacing:1px; color:var(--green); text-align:center; margin-bottom:10px; }
.contact-subtitle{ width:95%; margin:0 auto 12px; text-align:center; color:var(--muted); font-size:15.5px; line-height:1.6; }
.contact-form{ margin-top:10px; border:1px solid var(--border); border-radius:22px; padding:18px; background:linear-gradient(180deg, #FFFFFF 0%, #F7FAF9 100%); box-shadow:0 18px 60px rgba(0,0,0,0.06); }
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field label{ display:block; font-size:13px; font-weight:900; color:var(--dark); margin:0 0 6px 0; text-align:center; }
.field input,.field select,.field textarea{ width:100%; padding:12px 13px; border-radius:14px; border:1px solid var(--border); background:#fff; color:var(--dark); outline:none; font-family:inherit; font-size:14.5px; }
.field textarea{ resize:vertical; }
.field input:focus,.field select:focus,.field textarea:focus{ border-color: rgba(30,127,79,0.55); box-shadow:0 0 0 4px rgba(30,127,79,0.12); }
.span-2{ grid-column:1 / -1; }
.consent-row{ display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; padding-top:6px; }
.check{ display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color:var(--muted); line-height:1.35; }
.check input{ margin-top:3px; }
.btn-primary{ border:none; background:var(--green); color:#fff; padding:12px 18px; border-radius:14px; font-weight:950; cursor:pointer; box-shadow:0 12px 34px rgba(30,127,79,0.22); }
.btn-primary:hover{ background:var(--green2); }
.map-card{ border-radius:22px; overflow:hidden; border:1px solid var(--border); background:#fff; box-shadow:0 18px 60px rgba(0,0,0,0.08); height:100%; display:flex; flex-direction:column; }
.map-head{ padding:16px 16px 12px; background:linear-gradient(180deg, #FFFFFF 0%, #F6F8FB 100%); border-bottom:1px solid #EEF2F7; }
.map-title{ font-weight:950; }
.map-sub{ margin-top:6px; color:var(--muted); font-size:13.5px; }
.map-embed{ flex:1; background:#f2f2f2; }
.map-embed iframe{ width:100%; height:100%; border:0; }
@media(max-width:1100px){ .contact-inner{ width:90%; grid-template-columns:1fr; } .contact-grid{ grid-template-columns:1fr; } .map-embed{ height:320px; } }

/* FOOTER (no tiktok) */
footer{ background:var(--dark); color:#fff; padding:56px 0 28px; }
.footer-inner{ width:70%; margin:0 auto; display:grid; grid-template-columns:1.2fr 1fr 0.8fr; gap:22px; align-items:end; padding-bottom:22px; border-bottom:1px solid rgba(255,255,255,0.10); }
.footer-brand{ font-weight:950; font-size:18px; margin-bottom:10px; }
.footer-contact{ margin-top:10px; font-size:14px; line-height:1.6; color:rgba(255,255,255,0.78); }
.footer-contact a{ color:rgba(255,255,255,0.88); text-decoration:none; }
.footer-contact a:hover{ color:#fff; text-decoration:underline; }
.footer-right{ display:flex; justify-content:flex-end; gap:10px; }
.social{ width:40px; height:40px; border-radius:14px; border:1px solid rgba(255,255,255,0.14); display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,0.82); text-decoration:none; transition:background .2s ease, transform .2s ease, color .2s ease; }
.social svg{ width:18px; height:18px; }
.social:hover{ background:rgba(30,127,79,0.18); color:#fff; transform:translateY(-1px); }
.footer-legal{ width:70%; margin:18px auto 0; font-size:13px; color:rgba(255,255,255,0.75); text-align:center; }
.footer-policies-bottom{ width:70%; margin:10px auto 0; text-align:center; font-size:13px; }
.footer-policies-bottom a{ color:rgba(255,255,255,0.85); text-decoration:none; }
.footer-policies-bottom a:hover{ color:#fff; text-decoration:underline; }
@media(max-width:1100px){ .footer-inner{ width:90%; grid-template-columns:1fr; align-items:start; } .footer-right{ justify-content:center; } .footer-legal,.footer-policies-bottom{ width:90%; } }

/* MODAL PREVENTIVO */
.modal-overlay{ position:fixed; inset:0; background:rgba(11,18,32,0.6); backdrop-filter: blur(8px); display:none; align-items:center; justify-content:center; padding:24px; z-index:2000; }
.modal-overlay.open{ display:flex; }
.modal{ width:min(860px, 100%); background:#fff; border-radius:22px; border:1px solid var(--border); box-shadow:0 30px 90px rgba(0,0,0,0.35); overflow:hidden; }
.modal-head{ display:flex; justify-content:space-between; gap:16px; padding:22px 22px 10px 22px; border-bottom:1px solid #EEF2F7; background:linear-gradient(180deg, #FFFFFF 0%, #F6F8FB 100%); }
.modal-kicker{ font-size:12px; font-weight:900; letter-spacing:2px; color:#223589; margin-bottom:6px; }
.modal-head h3{ margin:0; font-size:22px; font-weight:950; letter-spacing:-0.01em; }
.modal-sub{ margin:8px 0 0 0; color:var(--muted); font-size:14.5px; line-height:1.4; }
.modal-close{ border:none; background:#fff; width:42px; height:42px; border-radius:14px; cursor:pointer; font-size:18px; color:var(--dark); border:1px solid var(--border); }
.modal-close:hover{ background:#EEF2F7; }
.modal-form{ padding:18px 22px 22px 22px; }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media(max-width:820px){ .form-grid{ grid-template-columns:1fr; } .modal-head{ padding:18px 18px 10px 18px; } .modal-form{ padding:16px 18px 18px 18px; } }

/* Contact */
.contact-section{width:100%;padding:70px 0;background:#fff}
.contact-inner{
  width:70%;margin:0 auto;
  display:grid;grid-template-columns:1.15fr 0.85fr;
  gap:28px;align-items:stretch;
}
.contact-kicker{font-size:24px;font-weight:950;letter-spacing:1px;color:var(--green);text-align:center;margin-bottom:10px}
.contact-subtitle{width:95%;margin:0 auto 12px;text-align:center;color:var(--muted);font-size:15.5px;line-height:1.6}
.contact-form{
  margin-top:10px;border:1px solid var(--border);
  border-radius:22px;padding:18px;
  background:linear-gradient(180deg, #FFFFFF 0%, #F7FAF9 100%);
  box-shadow:0 18px 60px rgba(0,0,0,0.06);
}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field label{display:block;font-size:13px;font-weight:900;color:var(--dark);margin:0 0 6px 0;text-align:center}
.field input,.field select,.field textarea{
  width:100%;padding:12px 13px;border-radius:14px;border:1px solid var(--border);
  background:#fff;color:var(--dark);outline:none;font-family:inherit;font-size:14.5px;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.field textarea{resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color: rgba(30,127,79,0.55);
  box-shadow:0 0 0 4px rgba(30,127,79,0.12);
}
.span-2{grid-column:1 / -1}
.consent-row{
  display:flex;align-items:center;justify-content:center;
  gap:14px;flex-wrap:wrap;padding-top:6px;
}
.check{display:flex;gap:10px;align-items:center;font-size:13.5px;color:var(--muted);line-height:1.35}
.check input{width:16px;height:16px;margin:0;flex:0 0 16px}
.btn-primary{
  border:none;background:var(--green);color:#fff;
  padding:12px 18px;border-radius:14px;font-weight:950;
  cursor:pointer;box-shadow:0 12px 34px rgba(30,127,79,0.22);
}
.btn-primary:hover{background:var(--green2)}
.map-card{border-radius:22px;overflow:hidden;border:1px solid var(--border);background:#fff;box-shadow:0 18px 60px rgba(0,0,0,0.08);height:100%;display:flex;flex-direction:column}
.map-head{padding:16px 16px 12px;background:linear-gradient(180deg, #FFFFFF 0%, #F6F8FB 100%);border-bottom:1px solid #EEF2F7}
.map-title{font-weight:950}
.map-sub{margin-top:6px;color:var(--muted);font-size:13.5px}
.map-embed{flex:1;background:#f2f2f2}
.map-embed iframe{width:100%;height:100%;border:0}
@media(max-width:1100px){
  .contact-inner{width:90%;grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .map-embed{height:320px}
}
@media(max-width:767px){
  .consent-row{flex-direction:column;gap:16px}
  .btn-primary{margin:0 auto}
}