/* BODY */
:root{
  --nav-height: 72px;
  --bg: #f6f9fb;
  --accent-fv: linear-gradient(90deg,#00ffa0,#00c875);
  --accent-ele: linear-gradient(90deg,#00e5ff,#0059ff);
  --text: #0b2230;
  --muted: #6b7a85;
  --card-shadow: 0 6px 26px rgba(2,18,28,0.06);
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{color:inherit;text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:0 1rem}

/* NAVBAR */
.navbar{
  position:fixed;
  top:0;left:0;right:0;
  height:var(--nav-height);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:0 1.25rem;
  background:rgba(255,255,255,0.9);
  backdrop-filter:saturate(120%) blur(6px);
  z-index:1100;
  box-shadow:0 1px 0 rgba(10,20,30,0.04);
}

.navbar.scrolled {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.logo{font-weight:800;color:#0e63a6;letter-spacing:0.6px}
.logo span{color:#ffd03b;font-weight:800}

nav ul{display:flex;gap:1.5rem;list-style:none;align-items:center}
nav a{font-weight:600;color:var(--muted);padding:8px 6px;border-radius:6px}
nav a.active, nav a:hover{color:var(--text);background:rgba(0,0,0,0.03)}

.navbar nav ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar ul li a {
  position: relative;
  padding: 0 8px 4px 8px;
  color: #1e2b3c;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.navbar ul li a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: #0057b7;
  transform: scaleX(0);
  transition: transform 0.3s;
}
.navbar ul li a:hover::after,
.navbar ul li a.active::after {
  transform: scaleX(1);
}

/* Hamburger mobile */
.nav-toggle{display:none;background:none;border:0;font-size:1.25rem;color:var(--text)}
@media (max-width:900px){
  .nav-toggle{display:block}
  nav ul{position:fixed;top:var(--nav-height);right:-100%;width:76%;height:calc(100vh - var(--nav-height));flex-direction:column;padding:1.5rem;background:#fff;transition:right .28s ease;box-shadow:-8px 0 30px rgba(0,0,0,0.06)}
  nav ul.show{right:0}
}

/* HERO FULLSCREEN BANNER */
.hero-banner {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0; left: 0;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(20, 30, 40, 0.6);
  top: 0; left: 0;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
}

.hero-banner h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: 2px;
}

.hero-banner p {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background: #0057b7;
  color: #fff;
  border-radius: 30px;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: background 0.3s;
}
.cta-btn:hover {
  background: #003a80;
}

/* Fade-in animazione */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.5s; }
.fade-in:nth-child(3) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HERO NORMALE */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background-color: #f0f4f9;
  transition: opacity 0.7s;
}
.hero.hidden {
  opacity: 0;
  pointer-events: none;
  height: 0;
  padding: 0;
  overflow: hidden;
}
.hero.visible {
  opacity: 1;
  pointer-events: auto;
  height: auto;
  padding: 4rem 1rem;
  overflow: visible;
}

/* CARD SERVIZI */
.categorie {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  text-align: center;
  width: 280px;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  position: relative;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
}

.card-icon {
  margin-bottom: 1rem;
}

.card-solare .card-icon svg { background: #FFFDE7; border-radius: 50%; }
.card-elettrico .card-icon svg { background: #E3F2FD; border-radius: 50%; }
.card-idraulico .card-icon svg { background: #E0F7FA; border-radius: 50%; }

.card-solare { border-top: 6px solid #ffd500; }
.card-elettrico { border-top: 6px solid #2196F3; }
.card-idraulico { border-top: 6px solid #00BFAE; }

.card h3 {
  margin: 1rem 0 0.5rem 0;
  font-size: 1.3rem;
  color: #1e2b3c;
}

.card a {
  display: inline-block;
  margin-top: 1rem;
  color: #0057b7;
  font-weight: bold;
  text-decoration: none;
  border-radius: 20px;
  padding: 0.5rem 1.2rem;
  background: #f0f4f9;
  transition: background 0.2s, color 0.2s;
}

.card a:hover {
  background: #0057b7;
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .categorie {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90vw;
    margin-bottom: 2rem;
  }
  .navbar {
    padding: 0 1rem;
  }
}

/* DESCRIZIONE */
.descrizione {
  max-width: 700px;
  margin: 3rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem;
  text-align: center;
}
.descrizione h2 {
  color: #0057b7;
  margin-bottom: 1rem;
  font-size: 2rem;
}
.descrizione .timeline {
  margin: 2rem 0 0 0;
  position: relative;
  padding-left: 30px;
}
.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
}
.timeline-year {
  font-weight: bold;
  color: #0057b7;
  width: 60px;
  text-align: right;
  margin-right: 16px;
  font-size: 1.1rem;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  background: #FFD600;
  border-radius: 50%;
  margin-right: 16px;
  position: relative;
}
.timeline-content {
  background: #eaf2fb;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  color: #1e2b3c;
  flex: 1;
}

/* STATISTICHE */
.statistiche {
  background: #eaf2fb;
  padding: 3rem 0;
  text-align: center;
}
.statistiche h2 {
  color: #0057b7;
  margin-bottom: 2rem;
  font-size: 2rem;
}
.stats-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem 1.5rem;
  width: 220px;
  text-align: center;
}
.stat h3 {
  margin: 1rem 0 0.5rem 0;
  color: #1e2b3c;
  font-size: 1.1rem;
}
.stat p.count {
  font-size: 1.5rem;
  color: #0057b7;
  font-weight: bold;
  margin: 0.5rem 0 0 0;
}
.stat .barra {
  background: #eee;
  border-radius: 20px;
  overflow: hidden;
  height: 20px;
  margin-bottom: 10px;
}
.stat .barra-carica {
  display: block;
  height: 100%;
  background: #009688;
  width: 0%;
  border-radius: 20px;
  transition: width 1.5s;
}

/* FOOTER */
.footer {
  background: #1e2b3c;
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem 1.2rem 1rem;
  margin-top: 3rem;
  font-size: 1rem;
}
.footer-content {
  max-width: 700px;
  margin: 0 auto;
}
.footer h3 {
  color: #FFD600;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.footer a {
  color: #FFD600;
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-social {
  margin: 1.2rem 0;
}
.footer-social a {
  margin: 0 10px;
  display: inline-block;
  vertical-align: middle;
}
.footer-social img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s;
}
.footer-social a:hover img {
  filter: none;
}
.footer-map {
  margin: 1.2rem 0;
}
.footer-links {
  margin: 1.2rem 0 0.5rem 0;
  font-size: 0.95rem;
}
.footer-copy {
  font-size: 0.9rem;
  color: #b0c4d4;
  margin-top: 0.5rem;
}

/* LOADER */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #0057b7;
  color: #FFD600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.7s;
}
.loader-logo {
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  animation: fadeInLogo 1.2s;
}
.loader-logo span {
  color: #fff;
}
@keyframes fadeInLogo {
  from { opacity: 0; transform: scale(0.8);} 
  to { opacity: 1; transform: scale(1);} 
}

.testimonianze {
  background: #fff;
  padding: 3rem 0;
  text-align: center;
}
.testimonianze h2 {
  color: #0057b7;
  margin-bottom: 2rem;
  font-size: 2rem;
}
.testi-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.testi-card {
  background: #eaf2fb;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem 1.5rem;
  width: 280px;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.testi-text {
  font-size: 1.1rem;
  color: #1e2b3c;
  margin-bottom: 1.2rem;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.testi-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFD600;
}
.testi-author span {
  color: #0057b7;
  font-weight: bold;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .testi-container {
    flex-direction: column;
    align-items: center;
  }
  .testi-card {
    width: 90vw;
  }
}

/* Curriculum Aziendale */
.curriculum-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
}
.curriculum-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 2rem;
    margin-bottom: 2rem;
}
.curriculum-section h2 {
    color: #0057b7;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}
.info-item {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}
.team-list, .cert-list {
    list-style: none;
    padding: 0;
}
.team-list li, .cert-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.project-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}
.project-item h3 {
    color: #0057b7;
    margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; }
}
.footer-legal { font-size: 0.9rem; color: #b0c4d4; margin: 0.5rem 0; }

/* Policy Pages */
.policy-container { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }
.policy-container h1 { color: #0057b7; margin-bottom: 2rem; text-align: center; }
.policy-section { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 2rem; margin-bottom: 2rem; }
.policy-section h2 { color: #1e2b3c; margin-bottom: 1rem; }
.policy-section h3 { color: #0057b7; margin: 1rem 0; }
.policy-section ul { list-style: disc; margin-left: 1.5rem; }
.policy-section li { margin: 0.5rem 0; }

/* ========= HERO COMUNI (FOTOVOLTAICO / ELETTRICO / IDRAULICO) ========= */
.hero-fv, .hero-ele, .hero-idro { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 20px 80px; overflow: hidden; color: #f9fffc; isolation: isolate; }
.hero-fv-content, .hero-ele-content, .hero-idro-content { position: relative; max-width: 800px; text-align: center; z-index: 2; }
.hero-fv-content h1, .hero-ele-content h1, .hero-idro-content h1 { font-size: clamp(2.4rem, 4vw, 3.5rem); margin-bottom: 18px; text-shadow: 0 0 18px rgba(0, 0, 0, 0.85); }
.hero-fv-content p, .hero-ele-content p, .hero-idro-content p { font-size: clamp(1rem, 1.4vw, 1.2rem); margin-bottom: 30px; line-height: 1.7; color: #e4fff2; }
.btn-fv, .btn-ele, .btn-idro { display: inline-block; padding: 14px 32px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; z-index: 2; }
.btn-fv { border: 1px solid rgba(0, 255, 170, 0.6); background: radial-gradient(circle at top left, #00ffa0 0%, #00c875 35%, #00885a 80%); color: #021010; box-shadow: 0 10px 30px rgba(0, 255, 170, 0.3); }
.btn-fv:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 40px rgba(0, 255, 170, 0.4); filter: brightness(1.1); }
.btn-ele { border: 1px solid rgba(0, 210, 255, 0.7); background: radial-gradient(circle at top left, #00e5ff 0%, #009dff 40%, #0059ff 85%); color: #010410; box-shadow: 0 10px 30px rgba(0, 210, 255, 0.4); }
.btn-ele:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 18px 40px rgba(0, 210, 255, 0.55); filter: brightness(1.1); }
.btn-idro { border: 1px solid rgba(120, 210, 255, 0.9); background: radial-gradient(circle at top left, #8ee7ff 0%, #3bb4ff 35%, #0064ff 80%); color: #02101a; box-shadow: 0 10px 30px rgba(80, 190, 255, 0.4); }
.btn-idro:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 18px 40px rgba(80, 190, 255, 0.6); filter: brightness(1.08); }
.hero-fv { color: #f9fffc; }
.hero-fv-bg { position: absolute; inset: 0; background: radial-gradient(circle at top, #1c6dd0 0%, #020817 55%, #01040a 100%); z-index: 0; pointer-events: none; }
.fv-sun { position: absolute; top: 5%; left: 50%; transform: translateX(-50%); width: 380px; height: 380px; background: radial-gradient(circle, #ffe066 0%, #ffb347 30%, rgba(255,179,71,0) 70%); filter: blur(8px); opacity: 0.9; animation: fv-sun-pulse 8s ease-in-out infinite; z-index: 0; pointer-events: none; }
@keyframes fv-sun-pulse { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; } 50% { transform: translateX(-50%) scale(1.08); opacity: 1; } }
.fv-grid { position: absolute; width: 140%; height: 70%; left: -20%; bottom: -20%; background-image: linear-gradient(rgba(0,255,170,0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(0,255,170,0.35) 1px, transparent 1px); background-size: 40px 40px; background-color: rgba(0,20,60,0.9); transform-origin: center; transform: perspective(800px) rotateX(65deg); box-shadow: 0 -40px 80px rgba(0,0,0,0.9); animation: fv-grid-move 20s linear infinite; z-index: 0; pointer-events: none; will-change: transform; }
@keyframes fv-grid-move { 0% { background-position: 0 0, 0 0; } 100% { background-position: 0 200px, 200px 0; } }
.hero-fv::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,6,20,0.7) 65%); z-index: 1; pointer-events: none; }
.hero-ele { color: #ffffff; }
.hero-ele-bg { position: absolute; inset: 0; background: radial-gradient(circle at top, #0c1633 0%, #02040b 55%, #000000 100%); z-index: 0; pointer-events: none; }
.ele-core { position: absolute; top: 20%; left: 50%; transform: translateX(-50%); width: 300px; height: 300px; background: radial-gradient(circle, rgba(0,255,255,0.9), rgba(0,118,255,0.4), transparent 70%); filter: blur(10px); animation: ele-pulse 6s infinite ease-in-out; z-index: 0; pointer-events: none; }
@keyframes ele-pulse { 0% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.2); } 100% { transform: translateX(-50%) scale(1); }
}
.ele-lines { position: absolute; width: 200%; height: 200%; pointer-events: none; mix-blend-mode: screen; background-image: repeating-linear-gradient(-45deg, transparent 0px, transparent 22px, rgba(0,255,255,0.7) 23px, transparent 24px); z-index: 0; will-change: transform; }
.ele-lines-1 { animation: move1 15s linear infinite; }
.ele-lines-2 { animation: move2 20s linear infinite; opacity: 0.5; }
@keyframes move1 { 0% { transform: translate(-10%,-10%) rotate(15deg); } 50% { transform: translate(10%,10%) rotate(20deg); } 100% { transform: translate(-10%,-10%) rotate(15deg); } }
@keyframes move2 { 0% { transform: translate(10%,-5%) rotate(-20deg); } 50% { transform: translate(-5%,5%) rotate(-25deg); } 100% { transform: translate(10%,-5%) rotate(-20deg); } }
.hero-ele::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0,0,0,0) 10%, rgba(0,0,0,0.7) 70%); z-index: 1; pointer-events: none; }
.hero-idro { color: #fafdff; }
.hero-idro-bg { position: absolute; inset: 0; background: radial-gradient(circle at top, #1e4d86 0%, #041322 45%, #01060d 100%); z-index: 0; pointer-events: none; }
.idro-waves { position: absolute; left: -25%; width: 150%; height: 280px; border-radius: 45%; filter: blur(2px); opacity: 0.85; mix-blend-mode: screen; z-index: 0; pointer-events: none; }
.idro-waves-1 { bottom: -120px; background: radial-gradient(circle at 20% 30%, #5bc0ff 0%, #0077ff 35%, #002b75 80%); animation: idro-wave-1 18s ease-in-out infinite; }
.idro-waves-2 { bottom: -160px; background: radial-gradient(circle at 80% 20%, #8ae3ff 0%, #35a8ff 35%, #004a99 80%); opacity: 0.7; animation: idro-wave-2 22s ease-in-out infinite; }
.idro-waves-3 { bottom: -200px; background: radial-gradient(circle at 50% 10%, #c4f4ff 0%, #6bd4ff 30%, #005a9d 80%); opacity: 0.5; animation: idro-wave-3 26s ease-in-out infinite; }
@keyframes idro-wave-1 { 0% { transform: translateX(0) translateY(0) rotate(0deg); } 50% { transform: translateX(10%) translateY(-20px) rotate(3deg); } 100% { transform: translateX(0) translateY(0) rotate(0deg); } }
@keyframes idro-wave-2 { 0% { transform: translateX(-5%) translateY(0) rotate(-2deg); } 50% { transform: translateX(5%) translateY(-30px) rotate(1deg); } 100% { transform: translateX(-5%) translateY(0) rotate(-2deg); } }
@keyframes idro-wave-3 { 0% { transform: translateX(5%) translateY(0) rotate(2deg); } 50% { transform: translateX(-8%) translateY(-25px) rotate(-1deg); } 100% { transform: translateX(5%) translateY(0) rotate(2deg); } }
.hero-idro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0,0,0,0) 15%, rgba(1,3,10,0.75) 70%); z-index: 1; pointer-events: none; }
@media (max-width: 768px) { .hero-fv, .hero-ele, .hero-idro { min-height: 100vh; padding: 120px 16px 60px; } .fv-sun { width: 260px; height: 260px; } .fv-grid { height: 80%; } .idro-waves { height: 240px; } }

/* ===== MODAL PREVENTIVO ===== */
.modal-preventivo { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 9999; }
.modal-preventivo.is-visible { display: flex; }
.modal-preventivo-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.modal-preventivo-dialog { position: relative; background: #050b12; color: #f9fffc; border-radius: 20px; padding: 24px 22px 26px; max-width: 520px; width: 100%; margin: 0 16px; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7); border: 1px solid rgba(0, 255, 170, 0.18); z-index: 1; }
.modal-preventivo h2 { margin-top: 0; font-size: 1.6rem; text-align: center; }
.modal-preventivo-close { position: absolute; top: 10px; right: 14px; border: none; background: none; color: #9fb3c8; font-size: 1.8rem; cursor: pointer; }
.modal-preventivo-close:hover { color: #ffffff; }
.form-row { margin-bottom: 14px; text-align: left; }
.form-row label { display: block; margin-bottom: 4px; font-size: 0.9rem; color: #cfe7dd; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(160, 190, 210, 0.6); background: rgba(4, 10, 18, 0.9); color: #f9fffc; font-size: 0.95rem; }
.form-row input::placeholder, .form-row textarea::placeholder { color: #7c96aa; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: #00ffa0; box-shadow: 0 0 0 1px rgba(0, 255, 160, 0.4); }
.btn-invia-preventivo { width: 100%; margin-top: 6px; padding: 12px 18px; border-radius: 999px; border: none; background: radial-gradient(circle at top left, #00ffa0 0%, #00c875 35%, #00885a 80%); color: #021010; font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 255, 170, 0.3); transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; }
.btn-invia-preventivo:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 16px 40px rgba(0, 255, 170, 0.4); filter: brightness(1.05); }
@media (max-width: 480px) { .modal-preventivo-dialog { padding: 20px 18px 22px; } }

/* Accordion styles */
.accordion-header { display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(0,0,0,0.03)); padding: 14px 18px; border-radius: 10px; margin: 1rem auto; max-width: 1200px; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #072b45; box-shadow: 0 4px 18px rgba(0,0,0,0.05); user-select: none; }
.accordion-header:focus { outline: 2px solid rgba(0,123,255,0.25); }
.accordion-header::after{ content: "▾"; transition: transform 0.28s ease, opacity 0.28s ease; font-size: 1.15rem; opacity: 0.9; }
.accordion-header.open::after{ transform: rotate(-180deg); }
.section-content { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(.2,.9,.2,1), padding 0.25s ease; padding: 0 1rem; margin: 0 auto; max-width: 1200px; }
.section-content.open { padding: 18px 1.5rem 26px; }
.section-content > * { position: relative; z-index: 2; }
.accordion-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent); margin-top: 12px; border-radius: 2px; }
.cover-card { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2000; background: rgba(6,12,20,0.55); opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.cover-card[aria-hidden="false"]{ opacity: 1; pointer-events: auto; }
.cover-card-inner{ width: min(720px, 94vw); background: linear-gradient(180deg,#fff 0%, #f7fff7 100%); padding: 28px; border-radius: 14px; box-shadow: 0 20px 60px rgba(4,12,20,0.5); text-align: center; position: relative; }
.cover-close{ position: absolute; right: 14px; top: 10px; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.cover-actions { margin-top: 14px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
@media (prefers-reduced-motion: reduce) { .section-content, .accordion-header, .cover-card { transition: none !important; animation: none !important; }
}
@media (max-width: 900px) { .accordion-header { padding: 12px 14px; font-size: 1rem; } .section-content.open { padding: 14px 1rem 20px; } .cover-card-inner { padding: 20px; } }
.hero-banner { position: relative; overflow: visible; }
.hero-banner .accordion-header { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); z-index: 30; background: rgba(255,255,255,0.94); color: #072b45; padding: 12px 20px; border-radius: 14px; box-shadow: 0 10px 30px rgba(4,12,20,0.08); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 640px; width: min(86%, 640px); text-align: center; }
.hero-banner .accordion-header::after{ color: #072b45; font-weight: 700; }
.hero-banner .section-content { position: relative; z-index: 20; max-height: none; padding-top: 6.5rem; }
.hero-banner .section-content > .hero-content { padding-top: 0; margin-top: 0; }
@media (max-width: 900px) { .hero-banner .accordion-header { top: 8%; padding: 10px 14px; font-size: 1rem; } .hero-banner .section-content { padding-top: 5.5rem; } }
.hero-banner.has-bg { position: relative; display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 4rem 1rem; background-image: url('../img/hero-bg.png'); background-size: cover; background-position: center; background-repeat: no-repeat; color: #ffffff; overflow: hidden; }
.hero-banner.has-bg .hero-overlay,
.hero-banner.has-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,12,20,0.35), rgba(6,12,20,0.55)); z-index: 1; pointer-events: none; }
.hero-banner.has-bg .hero-content { position: relative; z-index: 2; max-width: 1100px; text-align: center; padding: 2rem; }
.hero-banner.has-bg h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 0.75rem; color: #ffffff; text-shadow: 0 6px 22px rgba(0,0,0,0.45); }
.hero-banner.has-bg p { color: rgba(255,255,255,0.92); margin-bottom: 1.5rem; max-width: 56ch; margin-left: auto; margin-right: auto; }
.hero-cta { display: inline-flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.hero-cta .cta-btn { padding: 12px 26px; border-radius: 999px; font-weight: 700; box-shadow: 0 18px 50px rgba(0,200,140,0.12); transform: translateZ(0); }
.hero-cta .btn-fv { background: linear-gradient(90deg,#00ffa0,#00c875); color:#04221a; }
.hero-cta .btn-ele { background: linear-gradient(90deg,#00e5ff,#0059ff); color:#001022; }
@media (max-width: 900px) { .hero-banner.has-bg { padding: 3rem 1rem; min-height: 50vh; } .hero-cta { gap: 10px; } .hero-banner.has-bg h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); } }
.cta-swap { display: flex; justify-content: center; margin: 3rem 0; }
.cta-swap .hero-cta { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.cta-swap .hero-cta .cta-btn { background: #fff; color: #1e2b3c; border-radius: 18px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); padding: 1.2rem 1.6rem; text-decoration: none; display: inline-block; min-width: 260px; text-align: center; font-weight: 700; transition: transform 0.25s, box-shadow 0.25s; border-top: 6px solid transparent; }
.cta-swap .hero-cta .cta-btn:hover { transform: translateY(-10px) scale(1.03); box-shadow: 0 8px 32px rgba(0,0,0,0.16); }
.cta-swap .hero-cta .btn-fv { border-top-color: #00c875; }
.cta-swap .hero-cta .btn-ele { border-top-color: #0059ff; }
@media (max-width: 900px) { .cta-swap .hero-cta .cta-btn { width: 90vw; min-width: auto; } }
