/* 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; }
.delay-8 { animation-delay: 0.8s; }
.delay-9 { animation-delay: 0.9s; }
.delay-10 { animation-delay: 1.0s; }
.delay-11 { animation-delay: 1.1s; }

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-logos-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.affiliate-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.footer-logo-affiliate {
  max-width: 120px;
  height: auto;
}
.affiliate-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.affiliate-certification {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.affiliate-logo {
  max-height: 50px;
  width: auto;
}
.affiliate-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
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;
}

/* Come Funziona Section */
.come-funziona {
  background: #f7fafc;
}
.processo-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.step-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e2e8f0;
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.step-number {
  width: 60px;
  height: 60px;
  background: #D90429;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.step-card h3 {
  color: #1a202c;
  margin-bottom: 1rem;
}
.step-card p {
  color: #4a5568;
  line-height: 1.6;
}

/* Trust Signals Section */
.trust-signals {
  text-align: center;
  padding: 3rem 1rem;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.trust-box {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 2px solid #e2e8f0;
  transition: border-color 0.2s, transform 0.2s;
}
.trust-box:hover {
  border-color: #ffc300;
  transform: translateY(-5px);
}
.trust-icon {
  color: #D90429;
  margin-bottom: 1rem;
}
.trust-icon svg {
  width: 48px;
  height: 48px;
}
.trust-box h3 {
  color: #1a202c;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.trust-box p {
  color: #4a5568;
  font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
  background: #fff;
  padding: 3rem 1rem;
}
.faq-container {
  max-width: 800px;
  margin: 2rem auto 0;
}
.faq-item {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: #1a202c;
  font-size: 1.05rem;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: #D90429;
  font-weight: 700;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  margin: 0;
  color: #4a5568;
  line-height: 1.7;
}

/* Testimonials Section */
.testimonianze {
  background: #f7fafc;
  padding: 3rem 1rem;
  text-align: center;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.rating {
  color: #ffc300;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.testimonial-card p {
  color: #4a5568;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.testimonial-author {
  color: #1a202c;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Contact Section */
.contatti {
  background: #fff9e6;
  border: 2px solid #ffc300;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.contatti p {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}
.contatti a {
  color: #D90429;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}
.contatti a:hover {
  color: #a1031f;
  text-decoration: underline;
}
.contatti-brand {
  font-size: 0.95rem;
  color: #4a5568;
  margin-top: 1rem;
}

/* Disclaimer and Trasparenza */
.disclaimer {
  background: #f7fafc;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  color: #4a5568;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.trasparenza {
  text-align: center;
  margin-bottom: 2rem;
}
.trasparenza .icon {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}
/* 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;
  }
  .processo-steps,
  .trust-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .step-card,
  .trust-box,
  .testimonial-card {
    padding: 1.5rem;
  }
  .faq-item summary {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
  .faq-item p {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }
  .contatti {
    padding: 1.5rem;
  }
  .contatti p {
    font-size: 1.1rem;
  }
} 