/* Font e colori base */
/*@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}*/

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/montserrat-v31-latin_latin-ext-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/montserrat-v31-latin_latin-ext-700.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Material Icons';
    src: url('/fonts/MaterialIcons-Regular.woff2') format('woff2'),
        url('/fonts/MaterialIcons-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
}

.logo img {
    height: 50px;
    vertical-align: middle;
    padding: 8px;
    
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links li a {
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 400; /* Font più leggero */
    font-size: 1.05rem;
    padding: 10px 15px; /* Padding più generoso */
    border-radius: 8px;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

.icon-phone {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('/images/icon-phone-dark.svg') no-repeat center/contain;
    vertical-align: middle;
    margin-right: 6px;
}

/* Hero Section */
.hero-content {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeUp 1s;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-image img {
    width: 320px;
    max-width: 90vw;
    margin: 30px auto 0 auto;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.08));
    transition: transform 0.5s;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Counters */
.counters {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.counter:hover {
    transform: translateY(-4px) scale(1.02);
}

.counter-icon img {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    filter: none;
    transition: filter 0.3s;
}

/* Assicurati che il contenuto testuale sia sopra l'overlay */
.offers .content {
	position: relative;
	z-index: 2;
}

.offers h2 {
    font-size: 2rem;
    color: #1d1d1f;
    margin-bottom: 38px;
    font-weight: 700;
}

.offers-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.offer-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 32px 24px;
    width: 260px;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeUp 1.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.offer-card:hover {
    transform: scale(1.02) translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.offer-card img {
    width: 60px;
    margin-bottom: 18px;
    filter: none;
}

.offer-card .btn-secondary {
    margin-top: auto; /* Questa proprietà è la chiave */
}

/* Clonazione di .offer-card con larghezza maggiore per questa pagina */
.offer-card-wide {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin: 20px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: justify;
}

/* Hover simile alla classe originale */
.offer-card-wide:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Layout responsive */
.offer-card-wide {
	width: 70%; /* più larga su desktop */
}

@media (max-width: 1023px) {
    .offer-card-wide {
        width: 90%; /* quasi full width su tablet e mobile */
    }
}

.tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #e2e2e2; /* Colore di sfondo del tooltip */
    color: rgb(0, 0, 0);
    text-align: center;
    border: #b1b1b1 solid 1px;
    border-radius: 25px;
    padding: 5px 15px;
    position: absolute;
    z-index: 1;
    right: 110%;
    top: 0%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

/* Container per i CTA */
.cta-container {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    width: 100%;
}

/* Container per i CTA */
.cta-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    width: 100%;
}

/* Stile base per i CTA - allineamento perfetto */
.cta-button {
	font-family: "Montserrat", Arial, Helvetica, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Colori specifici */
.cta-blue {
    background-color: #2196f3;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.cta-blue:hover {
    background-color: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(33, 150, 243, 0.3);
}

.cta-red {
    background-color: #ff1745;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

.cta-red:hover {
    background-color: #c01638;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(244, 67, 54, 0.3);
}

.cta-green {
    background-color: #4caf50;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.cta-green:hover {
    background-color: #388e3c;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(76, 175, 80, 0.3);
}

/* Material Icons perfettamente centrate */
.cta-button .material-icons {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WhatsApp icon */
.whatsapp-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 20px; /* Bordi più arrotondati */
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
    cursor: pointer;
}

.energy-news-track {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.energy-news-track span {
    display: inline-block;
    padding-left: 100vw;
    animation: news-scroll 22s linear infinite;
}

.consent-fieldset label {
    display: flex; /* Manteniamo flex */
    align-items: flex-start; /* Allinea gli elementi in alto */
    margin-bottom: 8px;
    font-size: 0.7rem;
}

.consent-fieldset input[type="checkbox"] {
    margin-right: 10px;
    flex-shrink: 0; /* Impedisce alla checkbox di restringersi */
    margin-top: 2px; /* Piccolo aggiustamento per l'allineamento verticale */
}

/* Modifica questa regola per mantenere il testo inline */
.consent-fieldset label span {
    display: inline; /* Cambiato da block a inline */
    margin-top: 0;
    line-height: 1.4; /* Miglior leggibilità per testi lunghi */
}

.form-submit-btn {
    width: 100%;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    display: flex; /* Trasforma il pulsante in un contenitore flex */
    align-items: center; /* Allinea verticalmente gli elementi al centro */
    justify-content: center; /* Allinea orizzontalmente gli elementi al centro */
    gap: 8px; /* Aggiunge uno spazio tra icona e testo */
	font-family: 'Montserrat';
    
}

/* Aggiornamento stili help section per coerenza */
.help {
    padding: 60px 20px;
}

@keyframes news-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100vw); }
}

@media (max-width: 600px) {
    .energy-news-banner {
        font-size: 0.85rem;
        height: 32px;
        width: auto;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .offers-grid, .counters {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .offers h2 { font-size: 1.3rem; }
    .offer-card { width: 90vw; }
    .navbar { padding: 8px; }
}

/* Animazioni generali */
.animate-fadein {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.disclaimer-container {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    opacity: 0;
    transform: translateX(-100%);
    animation: slideIn 2s ease forwards;
}
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.disclaimer-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f7f1e3;
    border: 1px solid #d4a96b;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
}
.info-icon {
    color: #6c757d;
    margin-right: 12px;
    min-width: 24px;
}
.info-icon svg {
    vertical-align: middle;
    width: 24px;
    height: 24px;
}
.disclaimer-content p {
    margin: 0;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

