/* Animations & Micro-interactions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #ffffff;
  color: #2d3748; /* Darker text for better contrast */
  line-height: 1.7;
}
.hero {
  background: #f7fafc;
  height: auto;
  padding: 4rem 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e2e8f0;
}
.hero-overlay {
  background: transparent;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1a202c;
  margin: 0 0 1rem 0;
  letter-spacing: -1.5px;
}
.hero-sub {
  font-size: 1.2rem;
  color: #4a5568;
  margin-bottom: 2rem;
  max-width: 600px;
}
.cta-btn {
  display: inline-block;
  background: #D90429;
  color: #fff;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #a1031f;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem 0 1rem;
}
.info-box {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}
.seo-section {
  padding: 3rem 1rem;
  margin-bottom: 3rem;
  background: #ffffff;
  border-radius: 12px;
}
#consulenza-indipendente {
  background: #fffbef;
  border: 1px solid #ffc300;
  text-align: center;
}
.mercato-confronto, .risparmio-container, .voltura-subentro {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.mercato-card, .risparmio-card, .voltura-card, .subentro-card {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f7fafc;
}
.mercato-card h3, .risparmio-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}
.cta-box {
  background: #fff9e6;
  border: 1px solid #ffc300;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}
.cta-box span {
  font-weight: bold;
}
.bolletta-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.bolletta-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bolletta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.bolletta-header {
  padding: 1rem;
  text-align: center;
}
.bolletta-header.luce { background: #ffc300; }
.bolletta-header.gas { background: #d90429; }
.bolletta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bolletta-list li {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}
.bolletta-list li:last-child {
  border-bottom: none;
}
.bolletta-nota {
  padding: 1rem 1.5rem;
  background: #f7fafc;
  font-size: 0.9rem;
}
.bolletta-nota.stagionalita {
  background: #fdeaea;
}
.voltura-card, .subentro-card {
  background: #fff;
}
.chi-siamo {
  text-align: center;
  background: #f7fafc;
  border-radius: 12px;
  padding: 3rem 1rem;
}
.offerte, .offerte-tailwind {
    display: flex;
    gap: 36px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.offerta, .tw-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    padding: 2.5rem 2rem;
    width: 340px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
}
.offerta:hover, .tw-card:hover, .offerta:focus-within, .tw-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #ffc300;
}
h1, h2, h3, h4, .tw-title {
    color: #1a202c;
}
.cta-box h3, .offerta h3, .tw-title {
    color: #D90429;
}
.bolletta-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #1a202c;
}
.bolletta-header.gas h4 {
    color: #fff;
}
.tw-icon svg {
    width: 48px;
    height: 48px;
    stroke: #D90429;
}
.footer-logo {
  max-width: 180px;
  margin-bottom: 12px;
}
.footer-logo-ec {
  display: block;
  max-width: 150px;
  margin: 1.5rem auto 1rem;
}
footer {
  background: #f7fafc;
  border-top: 1px solid #e2e8f0;
  margin-top: 3rem;
  padding: 2.5rem 1rem 1rem 1rem;
  font-size: 0.95rem;
  color: #4a5568;
  text-align: center;
}
footer a {
  color: #D90429;
}
.fornitori {
  margin-bottom: 10px;
}
/* Responsive Design - Mobile UI/UX Overhaul */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
  }
  .hero h1 {
    font-size: 2.1rem;
    letter-spacing: -1px;
  }
  .hero-sub {
    font-size: 1.05rem;
  }
  main {
    padding: 2rem 1rem 0 1rem;
  }
  .seo-section, .info-box {
    padding: 2rem 1.25rem;
    margin-bottom: 2rem;
  }
  .seo-section h2 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
  }
  .mercato-confronto, .risparmio-container, .voltura-subentro, .bolletta-container, .offerte {
    flex-direction: column;
    gap: 1.5rem;
  }
  .offerta, .tw-card {
    width: 100%;
    max-width: none;
    padding: 2rem 1.5rem;
  }
  .bolletta-list li {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    text-align: left;
  }
  .bolletta-list li strong {
    font-size: 1.2rem;
  }
  .cta-btn {
    padding: 12px 28px;
    font-size: 1rem;
    width: 100%;
    max-width: 350px;
  }
  .voltura-card, .subentro-card {
    padding: 1.5rem;
  }
  .footer-logo {
    max-width: 150px;
  }
} 