/* =========================================
   BASE E RESET (CORRETTO E SICURO PER PC)
========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden; /* Uccide la barra bianca mobile senza distruggere il PC */
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif; 
    background-color: #f8fdf9; 
    color: #333;
}

/* Immagini fluide ma che rispettano gli allineamenti originali */
img, iframe, video {
    max-width: 100%;
    height: auto;
}

/* =========================================
   HEADER E NAVIGAZIONE
========================================= */
header { 
    background: rgba(255, 255, 255, 0.9); /* Sfondo bianco al 90% */
    backdrop-filter: blur(10px); /* L'effetto sfocato stile iPhone */
    -webkit-backdrop-filter: blur(10px); /* Per Safari */
    color: #333; 
    padding: 15px 0; 
    display: flex; 
    justify-content: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* Ombra più morbida e larga */
}

.nav-content { 
    display: flex; 
    align-items: center; 
    gap: 40px; 
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.logo-container { display: flex; align-items: center; }

.logo-img { 
    max-width: 220px; 
    height: auto;
    margin-right: 15px;
    display: block;
    filter: contrast(110%); 
}

nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
nav ul li { margin: 0 15px; }
nav ul li a { 
    color: #31306b; /* Blu Elettrodomo */
    text-decoration: none; 
    font-weight: bold; 
    transition: 0.3s; 
}
nav ul li a:hover, nav ul li a.active { 
    color: #ff9f1c; /* Arancione Elettrodomo */
}

/* Pulsante Telefono Header */
.header-phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ff9f1c; 
    color: white;
    padding: 10px 20px; 
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-left: auto;
}

.header-phone-btn:hover {
    background-color: #e68a00;
    transform: scale(1.05);
}

.phone-icon {
    width: 20px;
    height: 20px;
    fill: white; 
}

.call-text {
    font-weight: 800; 
    font-size: 0.9rem;
    text-transform: uppercase; 
    margin-right: 3px;
}

.phone-number {
    font-weight: 800; 
    font-size: 1rem;
}

@media (max-width: 768px) {
    .call-text { display: none; }
    .header-phone-btn { padding: 8px 12px; }
    .nav-content { gap: 15px; }
}

/* =========================================
   HOMEPAGE - HERO SECTION
========================================= */
.hero { 
    background: linear-gradient(rgba(49, 48, 107, 0.85), rgba(49, 48, 107, 0.85)), 
                url('siamo.jpeg'); /* Sostituisci in futuro con foto lavoro */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 20px 150px 20px; /* Aggiunto spazio in basso */
    text-align: center;
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); 
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.store-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.store-button.primary-cta {
    background-color: #25D366; /* Verde WhatsApp */
    color: white;
}
.store-button.primary-cta:hover { background-color: #128C7E; }

.store-button.secondary-cta {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}
.store-button.secondary-cta:hover {
    background-color: white;
    color: #31306b;
}

/* =========================================
   HOMEPAGE - PUNTI DI FORZA (OVERLAPPING CARDS)
========================================= */
.features { 
    /* Rimuoviamo il background bianco per permettere la sovrapposizione */
    background: transparent; 
    padding: 0 5%;
    /* Questo margine negativo "tira" la sezione verso l'alto, sopra la Hero */
    margin-top: -80px; 
    position: relative;
    z-index: 10; /* Assicura che le card stiano sopra l'immagine di sfondo */
    margin-bottom: 80px; /* Dà respiro prima della sezione successiva */
}

.features-container {
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    flex-wrap: wrap; 
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item { 
    background: #ffffff; 
    text-align: center; 
    flex: 1;
    min-width: 280px; /* Evita che si stringano troppo */
    padding: 40px 30px; 
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); /* Ombra elegante per staccarle dallo sfondo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f4f8; /* Bordo leggerissimo */
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

/* Stile per i nuovi cerchietti con le icone */
.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
    background-color: #f0f4f8; /* Il grigio/blu del tuo brand */
    color: #ff9f1c; /* L'arancione brillante del logo per l'icona */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

/* Animazione del cerchietto al passaggio del mouse */
.feature-item:hover .feature-icon {
    background-color: #ff9f1c;
    color: white;
    transform: rotateY(180deg); /* L'icona fa un giro su se stessa, effetto bellissimo! */
}

.feature-item h3 { 
    color: #31306b; 
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px; 
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   SEZIONE COSA RIPARIAMO (SERVIZI)
========================================= */
.services { 
    padding: 80px 5%; 
    text-align: center; 
    background: #f8fdf9; /* Sfondo chiarissimo e pulito */
}

.services h2 { 
    color: #31306b; 
    font-size: 2.2rem; 
    margin-top: 0;
    margin-bottom: 50px; 
}

.service-grid { 
    display: flex; 
    gap: 40px; 
    justify-content: center; 
    max-width: 1100px;
    margin: 0 auto;
}

.service-card { 
    background: white; 
    border-radius: 20px; 
    overflow: hidden; 
    flex: 1; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    display: flex;
    flex-direction: column;
    text-align: left; /* Allineiamo il testo a sinistra per un look più editoriale */
}

.service-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

.service-img-container { 
    width: 100%; 
    height: 250px; 
    overflow: hidden; 
    position: relative; /* Fondamentale per posizionare il badge rotondo */
}

/* Sfumatura scura per far risaltare il badge */
.service-img-container::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

.service-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.7s ease; 
}

.service-card:hover .service-img { 
    transform: scale(1.1); 
}

.service-content {
    padding: 35px 30px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h3 { 
    color: #31306b; 
    font-size: 1.5rem;
    margin: 0 0 5px 0; 
}

.service-subtitle {
    color: #777;
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Le "pillole" degli elettrodomestici */
.appliance-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.appliance-tags span {
    background-color: #f0f4f8; /* Grigio/blu chiarissimo */
    color: #31306b; /* Testo blu scuro */
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

.appliance-tags span:hover {
    background-color: #31306b;
    color: white;
}

/* Il link animato in fondo */
.service-link {
    margin-top: auto;
    color: #ff9f1c;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

/* La freccia si sposta quando passi il mouse */
.service-card:hover .service-link {
    gap: 15px; 
    color: #e68a00;
}

@media (max-width: 768px) {
    .service-grid { flex-direction: column; }
    .service-card { margin-bottom: 20px; }
}

/* =========================================
   HOMEPAGE - SEZIONE FIDUCIA
========================================= */
.trust-section { background-color: #f0f4f8; padding: 80px 5%; }
.trust-grid { display: flex; gap: 50px; align-items: center; max-width: 1100px; margin: 0 auto; }
.trust-image img { width: 100%; max-width: 400px; border-radius: 20px; box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.trust-text h2 { color: #31306b; font-size: 2.2rem; margin-bottom: 10px; }
.stars { color: #ffc107; margin-bottom: 20px; font-size: 1.2rem; }
.trust-text p { font-size: 1.1rem; line-height: 1.6; color: #444; margin-bottom: 15px; }
.cta-link { display: inline-block; margin-top: 20px; color: #ff9f1c; font-weight: bold; text-decoration: none; font-size: 1.1rem; border-bottom: 2px solid #ff9f1c; padding-bottom: 3px; transition: 0.3s; }
.cta-link:hover { color: #e68a00; border-color: #e68a00; }

@media (max-width: 768px) {
    .trust-grid { flex-direction: column; text-align: center; }
    .service-grid { flex-direction: column; }
}

/* =========================================
   HOMEPAGE - SLIDER CARDS
========================================= */
/* =========================================
   SEZIONE ESPLORA (DARK BANNER)
========================================= */
.explore-banner {
    background-color: #31306b; /* Il tuo blu scuro per rompere la monotonia chiara */
    color: white;
    padding: 80px 5%;
}

.explore-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.explore-item {
    flex: 1;
    text-align: center;
    padding: 20px 10px;
    /* NIENTE SFONDO BIANCO, NIENTE OMBRE, NIENTE BORDI */
}

.explore-icon {
    font-size: 3rem;
    color: #ff9f1c; /* Il tuo arancione */
    margin-bottom: 25px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.explore-item:hover .explore-icon {
    transform: scale(1.2) translateY(-10px);
}

/* Tocco di classe speciale per l'icona TikTok */
.explore-item:hover .tiktok-icon { 
    color: white; 
    text-shadow: -2px -2px 0px #00f2fe, 2px 2px 0px #fe004f; 
}

.explore-item h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: white;
}

.explore-item p {
    color: rgba(255, 255, 255, 0.8); /* Bianco leggermente trasparente per eleganza */
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 30px;
}

.explore-btn {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3); /* Bordo semi-trasparente */
    padding: 10px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.explore-item:hover .explore-btn {
    border-color: #ff9f1c;
    background-color: #ff9f1c;
    color: white;
    transform: translateY(-2px);
}

/* Adattamento per i cellulari */
@media (max-width: 768px) {
    .explore-container {
        flex-direction: column;
        gap: 40px;
    }
    .explore-item {
        padding: 0;
    }
}

/* =========================================
   PAGINA VIDEO (MODERNA)
========================================= */
.video-hero-modern { 
    background-color: #31306b; /* Il blu scuro Elettrodomo */
    color: white;
    padding: 80px 20px 140px; /* Molto spazio sotto per l'effetto galleggiante */
    text-align: center; 
}

.video-hero-modern h1 { 
    font-size: 2.8rem; 
    margin-bottom: 15px; 
    margin-top: 0;
}

.video-hero-modern p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Pulsante TikTok nella Hero */
.tiktok-header-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    background-color: #000000; 
    color: white; 
    padding: 12px 35px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 1.05rem; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    border: 2px solid #000;
}

.tiktok-header-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.4); 
    background-color: transparent; /* Diventa trasparente e mostra il bordo */
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.tiktok-header-btn i {
    font-size: 1.2rem;
    /* Effetto colori logo TikTok */
    text-shadow: -1px -1px 0px #00f2fe, 1px 1px 0px #fe004f; 
}

/* Contenitore Griglia Video */
.video-container-modern {
    max-width: 1100px;
    margin: -80px auto 0; /* Margine negativo: i video salgono sopra lo sfondo blu! */
    padding: 0 20px 80px;
    position: relative;
    z-index: 10;
}

.video-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; 
}

.video-card { 
    background: white; 
    padding: 15px; 
    border-radius: 20px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); 
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    height: auto; 
    overflow: hidden; 
    transition: transform 0.3s, box-shadow 0.3s; 
    border: 1px solid #f0f4f8;
}

.video-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.video-card blockquote.tiktok-embed { 
    margin: 0 !important; 
    padding: 0 !important; 
    width: 100% !important; 
    min-width: 325px !important; 
    border-radius: 15px !important;
}

/* Card CTA (Quella blu scura finale) */
.video-card.cta-card { 
    background-color: #31306b; 
    border: 2px solid #31306b; 
    min-height: 580px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0; /* Resetta il padding */
}

.video-card.cta-card:hover { 
    background-color: #1d1c42; 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(49, 48, 107, 0.3);
}

.tiktok-link-full { 
    text-decoration: none; 
    color: white; 
    width: 100%; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.cta-content { 
    text-align: center; 
    padding: 40px; 
    color: white; 
}

.cta-content i {
    color: #ff9f1c; /* Arancione Elettrodomo */
    text-shadow: none; /* Rimuoviamo l'ombra per renderlo pulito */
}

.cta-content h3 { 
    font-size: 1.8rem; 
    margin-bottom: 15px; 
    color: #fff; 
}

.cta-content p { 
    font-size: 1.1rem; 
    margin-bottom: 35px; 
    line-height: 1.6; 
    opacity: 0.8; 
}

.btn-follow { 
    background-color: #ff9f1c; /* Arancione Elettrodomo */
    color: white; 
    padding: 15px 35px; 
    border-radius: 50px; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    display: inline-block; 
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.3); 
    transition: background-color 0.3s;
}

.video-card.cta-card:hover .btn-follow {
    background-color: #e68a00;
}

/* =========================================
   PAGINA CONSIGLI (MODERNA)
========================================= */
.tips-hero-modern { 
    background-color: #31306b; /* Il blu scuro Elettrodomo */
    color: white;
    padding: 80px 20px 100px; /* Più spazio sotto per far "respirare" la barra di ricerca */
    text-align: center; 
}

.tips-hero-modern h1 { 
    font-size: 2.8rem; 
    margin-bottom: 15px; 
    margin-top: 0;
}

.tips-hero-modern p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.tips-container { 
    max-width: 1100px; 
    margin: -60px auto 0; /* Margine negativo: la barra di ricerca sale sopra l'header scuro! */
    padding: 0 20px 80px; 
    position: relative;
    z-index: 10;
}

/* LA NUOVA BARRA DI RICERCA */
.search-container { 
    display: flex;
    justify-content: center;
    margin-bottom: 40px; 
}

.search-wrapper {
    background: white;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: #ff9f1c; /* Diventa arancione quando scrivi */
    box-shadow: 0 15px 35px rgba(255, 159, 28, 0.15);
}

.search-icon {
    color: #999;
    font-size: 1.2rem;
    margin-right: 15px;
}

#searchInput { 
    width: 100%; 
    border: none; 
    font-size: 1.1rem; 
    outline: none; 
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: transparent;
}

/* FILTRI */
.filter-bar { 
    display: flex; 
    justify-content: center; 
    gap: 12px; 
    flex-wrap: wrap; 
    margin-bottom: 50px; 
}

.filter-btn { 
    background: white; 
    border: 1px solid #e2e8f0; 
    padding: 8px 22px; 
    border-radius: 50px; 
    cursor: pointer; 
    font-weight: 600; 
    color: #555; 
    transition: all 0.3s ease; 
    font-size: 0.95rem; 
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover, .filter-btn.active { 
    background-color: #31306b; 
    color: white; 
    border-color: #31306b; 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(49, 48, 107, 0.2); 
}

/* CARDS DEI CONSIGLI */
.tips-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

.tip-card { 
    background: white; 
    border-radius: 20px; 
    padding: 30px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    transition: transform 0.3s, box-shadow 0.3s; 
    border: 1px solid #f0f4f8; 
}

.tip-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cat-badge {
    background-color: #f0f4f8;
    color: #31306b;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tip-icon { 
    font-size: 35px; 
    background-color: transparent; 
    width: auto; 
    height: auto; 
    margin: 0;
}

.tip-card h3 { 
    color: #31306b; 
    margin-top: 0; 
    margin-bottom: 12px; 
    font-size: 1.3rem; 
    line-height: 1.4;
}

.tip-preview { 
    color: #666; 
    margin-bottom: 25px; 
    line-height: 1.6; 
    font-size: 0.95rem;
}

/* FISARMONICA (ACCORDION PIU' ELEGANTE) */
details { 
    background-color: #f8fdf9; 
    border-radius: 12px; 
    padding: 15px 20px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    border: 1px solid #e2e8f0;
}

details[open] { 
    background-color: #fff; 
    border-color: #ff9f1c; /* Si illumina di arancione quando aperto */
    box-shadow: 0 5px 15px rgba(255, 159, 28, 0.08);
}

summary { 
    font-weight: 600; 
    color: #ff9f1c; 
    outline: none; 
    list-style: none; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.95rem;
}

summary::-webkit-details-marker { display: none; } /* Nasconde la freccia brutta di Safari */

summary::after { 
    content: '\f078'; /* Freccia giù di FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.9rem; 
    color: #ff9f1c; 
    transition: transform 0.3s; 
}

details[open] summary::after { 
    transform: rotate(180deg); 
}

.tip-content { 
    margin-top: 15px; 
    padding-top: 15px; 
    border-top: 1px solid #f0f4f8; 
    color: #444; 
    font-size: 0.95rem; 
    line-height: 1.7; 
}

.read-more-link {
    display: inline-block;
    color: #ff9f1c;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.3s ease;
}
.read-more-link:hover { color: #31306b; }

/* =========================================
   PAGINA CHI SONO (MODERNA)
========================================= */
.about-hero-modern { 
    background-color: #31306b; /* Il blu scuro Elettrodomo */
    color: white;
    padding: 80px 20px 140px; 
    text-align: center; 
}

.about-hero-modern h1 { 
    font-size: 2.8rem; 
    margin-bottom: 15px; 
    margin-top: 0;
}

.about-hero-modern p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.about-section-modern {
    background-color: transparent;
    padding: 0 5% 80px;
    margin-top: -80px; /* Tira la griglia sopra lo sfondo blu */
    position: relative;
    z-index: 10;
}

.about-grid-modern {
    display: flex;
    align-items: stretch;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.about-text-modern {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.highlight-title {
    color: #ff9f1c; /* Arancione Elettrodomo */
    font-weight: 600;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text-modern p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Citazione Elegante */
.about-quote-modern {
    position: relative;
    border-left: 4px solid #ff9f1c;
    margin: 35px 0;
    padding: 20px 25px;
    font-style: italic;
    font-size: 1.15rem;
    color: #31306b;
    background: #f0f4f8; /* Grigio bluastro chiaro */
    border-radius: 0 15px 15px 0;
    line-height: 1.6;
}

.quote-icon {
    color: rgba(49, 48, 107, 0.1); /* Blu scurissimo quasi trasparente */
    font-size: 3rem;
    position: absolute;
    top: -10px;
    left: 15px;
    z-index: 0;
}

/* Numeri della Fiducia */
.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    color: #31306b;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    color: #777;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Sezione Immagine con Badge */
.about-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.about-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #f0f4f8;
    animation: float 4s ease-in-out infinite; /* Animazione fluttuante */
}

.experience-badge i {
    font-size: 2.2rem;
    color: #ff9f1c;
}

.badge-text {
    color: #31306b;
    font-size: 0.95rem;
    line-height: 1.3;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid-modern {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .about-image-wrapper {
        margin-top: 20px;
    }
    
    .experience-badge {
        left: 20px;
        bottom: -20px;
    }
    
    .about-stats {
        flex-wrap: wrap;
    }
}

/* =========================================
   PULSANTE WHATSAPP FLUTTUANTE
========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

@media (max-width: 768px) {
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 30px; }
}

/* =========================================
   FOOTER
========================================= */
footer { background: #1d1c42; color: white; padding: 50px 5% 30px; font-size: 0.95rem; }
.footer-wrapper { max-width: 1100px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; text-align: left; margin-bottom: 40px; }
.footer-left { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }

.footer-logo-img { max-width: 200px; height: auto; display: block; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.9; transition: opacity 0.3s; }
.footer-logo-img:hover { opacity: 1; }

.footer-link-block { color: white; text-decoration: none; font-size: 1.1rem; margin-bottom: 8px; display: inline-block; transition: 0.3s; opacity: 0.9; }
.footer-link-block:hover { color: #ff9f1c; opacity: 1; transform: translateX(5px); }

.footer-hours { background: rgba(255, 255, 255, 0.05); padding: 20px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.1); min-width: 320px; }
.footer-hours h4 { color: #ff9f1c; margin-top: 0; margin-bottom: 15px; text-align: center; text-transform: uppercase; letter-spacing: 1px; }
.hours-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 8px 10px; text-align: left; font-size: 0.95rem; color: #e0e0e0; }

.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.social-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; }
.social-links img { width: 30px; height: 30px; filter: brightness(0) invert(1); transition: transform 0.3s; }
.social-links a:hover img { transform: scale(1.2); }
.copyright { font-size: 0.85rem; opacity: 0.6; margin-bottom: 5px; }
.legal-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.8rem; margin: 0 5px; transition: color 0.3s; }
.legal-links a:hover { color: white; }

@media (max-width: 768px) {
    .footer-top { flex-direction: column; align-items: center; text-align: center; }
    .footer-left { align-items: center; width: 100%; }
    .footer-hours { width: 100%; box-sizing: border-box; }
    .hours-grid { grid-template-columns: 1fr; text-align: center; }
}

/* =========================================
   SEZIONE AREE DI INTERVENTO (SEO LOCALE)
========================================= */
.service-areas {
    background-color: #ffffff; 
    padding: 60px 5%;
    text-align: center;
}

.areas-container {
    max-width: 900px;
    margin: 0 auto;
    background: #f0f4f8; /* Riprende il colore grigio/blu della sezione fiducia */
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.areas-text h2 {
    color: #31306b;
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.areas-text p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Stile per i "bottoncini" delle città */
.areas-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
}

.area-badge {
    background-color: #ffffff;
    color: #31306b;
    border: 2px solid #31306b;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: default; /* Non è un vero link, quindi il cursore resta a freccia */
}

.area-badge:hover {
    background-color: #31306b;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(49, 48, 107, 0.2);
}

.areas-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff9f1c;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 2px solid #ff9f1c;
    padding-bottom: 3px;
    transition: 0.3s;
}

.areas-cta:hover {
    color: #e68a00;
    border-color: #e68a00;
}

/* Adattamento per i cellulari */
@media (max-width: 768px) {
    .areas-container {
        padding: 30px 20px;
    }
    .areas-badges {
        gap: 8px;
    }
    .area-badge {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
}

@keyframes slowZoom {
    0% { background-size: 100%; }
    100% { background-size: 110%; }
}

.hero {
    /* Assicurati che non ci sia già un background-size: cover fisso che sovrascrive questo */
    animation: slowZoom 20s ease-in-out infinite alternate;
}

/* =========================================
   SEZIONE RECENSIONI (NASTRO TRASPORTATORE)
========================================= */
.reviews-marquee-section {
    background-color: #f0f4f8; /* Grigio chiarissimo per staccare dal bianco */
    padding: 80px 0;
    overflow: hidden; /* Fondamentale per non far sbordare lo scroll */
}

.marquee-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.marquee-header h2 {
    color: #31306b;
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.marquee-header p {
    color: #555;
    font-size: 1.1rem;
    margin: 0;
}

/* Contenitore con effetto sfumato ai bordi */
.marquee-wrapper {
    width: 100%;
    position: relative;
    /* Crea una maschera sfumata ai lati per far apparire/scomparire dolcemente le card */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* La "pista" che si muove */
.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* Animazione: dura 35 secondi, lineare (senza scatti), infinita */
    animation: scrollMarquee 35s linear infinite;
    padding: 20px 0;
}

/* Quando passi il mouse sopra, si ferma per farti leggere! */
.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
    /* Si muove del 50% perché abbiamo duplicato le recensioni esattamente a metà */
}

/* Stile delle singole schede recensione */
.marquee-card {
    width: 350px; /* Larghezza fissa per ogni recensione */
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    flex-shrink: 0; /* Impedisce che si schiaccino */
    white-space: normal;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.marquee-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Stili interni della scheda Google */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 3px;
}

.review-stars {
    color: #ffc107;
    font-size: 0.85rem;
}

.google-icon {
    color: #4285F4;
    font-size: 1.8rem;
}

.review-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

/* Adattamento Mobile */
@media (max-width: 768px) {
    .marquee-card {
        width: 300px;
        padding: 20px;
    }
    .marquee-header h2 {
        font-size: 1.8rem;
    }
}

/* =========================================
   PAGINE ARTICOLO (BLOG / SEO LONG-TAIL)
========================================= */
.article-hero {
    background-color: #31306b;
    color: white;
    padding: 80px 20px 100px;
    text-align: center;
}

.article-badge {
    display: inline-block;
    background-color: #ff9f1c;
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.article-hero-content h1 {
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 15px;
    line-height: 1.3;
}

.article-hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.article-container {
    max-width: 850px; /* Più stretto per facilitare la lettura */
    margin: -60px auto 80px;
    background: white;
    padding: 50px 60px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 40px;
    border-bottom: 1px solid #f0f4f8;
    padding-bottom: 15px;
}

.breadcrumbs a {
    color: #31306b;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover {
    color: #ff9f1c;
    text-decoration: underline;
}

.article-body h2 {
    color: #31306b;
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.article-step {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    background: #f8fdf9; /* Sfondo leggerissimo */
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #ff9f1c;
}

.step-number {
    background-color: #31306b;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-text h3 {
    margin: 0 0 10px 0;
    color: #31306b;
    font-size: 1.3rem;
}

.step-text p {
    margin: 0;
    font-size: 1.05rem;
}

/* BOX CHIAMATA ALL'AZIONE */
.article-cta-box {
    background-color: #31306b;
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 10px 30px rgba(49, 48, 107, 0.2);
}

.cta-box-icon {
    font-size: 3rem;
    color: #ff9f1c;
    margin-bottom: 15px;
}

.article-cta-box h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.article-cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.article-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366; /* Verde WhatsApp */
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s, background-color 0.3s;
}

.article-cta-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .article-container { padding: 30px 20px; }
    .article-hero-content h1 { font-size: 2rem; }
    .article-step { flex-direction: column; gap: 15px; }
}

/* =========================================
   COOKIE BANNER
========================================= */
.ed-informativa-box {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #31306b;
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    box-sizing: border-box; /* Regola fondamentale aggiunta */
}

.ed-informativa-box-content {
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.ed-informativa-box-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ed-informativa-box-content a {
    color: #ff9f1c; /* Arancione Elettrodomo */
    text-decoration: underline;
    font-weight: bold;
}

.btn-accept {
    background-color: #ff9f1c;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.btn-accept:hover {
    background-color: #e68a00;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .ed-informativa-box-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Aggiunte per il pulsante Rifiuta */
.ed-informativa-box-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-reject {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.btn-reject:hover {
    background-color: white;
    color: #31306b; /* Il tuo blu scuro */
    border-color: white;
}

@media (max-width: 768px) {
    .ed-informativa-box-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn-accept, .btn-reject {
        width: 100%;
    }
}

/* =========================================
   MENU MOBILE (HAMBURGER)
========================================= */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #31306b;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* REGOLA GLOBALE: Nasconde il bottone del telefono flottante su PC. 
   DEVE restare qui fuori per non generare la banda bianca! */
.phone-float {
    display: none;
}

@media (max-width: 768px) {
    /* 1. Header e Hamburger */
    .hamburger-btn {
        display: block;
        order: 3;
    }
    
    .nav-content {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    /* 2. Disattivazione vecchi bottoni */
    .header-phone-btn {
        display: none !important;
    }

    /* 3. Costruzione nuovo bottone telefono flottante speculare a WhatsApp */
    .phone-float {
        display: flex;
        position: fixed;
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        background-color: #ff9f1c;
        color: #FFF;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
        z-index: 100;
        transition: transform 0.3s;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        text-decoration: none;
    }

    .phone-icon-float {
        width: 25px;
        height: 25px;
        fill: white;
        display: block;
    }

    /* 4. Menu a tendina */
    nav.main-nav {
        width: 100%;
        display: none; 
        order: 4; 
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        margin-top: 15px;
        overflow: hidden;
    }

    nav.main-nav.active {
        display: block;
        animation: slideDownMenu 0.3s ease forwards;
    }

    nav.main-nav ul {
        display: flex;
        flex-direction: column;
        padding: 10px 0;
    }

    nav.main-nav ul li {
        margin: 0;
        border-bottom: 1px solid #f0f4f8;
        text-align: center;
    }

    nav.main-nav ul li:last-child {
        border-bottom: none;
    }

    nav.main-nav ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
    }
}

@keyframes slideDownMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   FIX: ALLINEAMENTO HEADER MOBILE 
========================================= */
@media screen and (max-width: 768px) {
    /* 1. Blocca la crescita del logo per fare spazio all'icona del menu */
    .logo-img {
        max-width: 200px !important; 
        margin-right: 0 !important;
    }

    /* 2. Forza i due elementi a rimanere sugli estremi opposti della stessa riga */
    .nav-content {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    /* 3. Evita che l'icona del menu venga spinta via da margini invisibili */
    .hamburger-btn {
        margin: 0 !important;
        padding: 5px !important;
    }

    /* 4. Assicura che la tendina a comparsa scenda al rigo inferiore senza rompere l'intestazione */
    nav.main-nav {
        width: 100% !important;
        margin-top: 15px !important;
    }
}

/* =========================================
   FIX GLOBALE: TESTI FLUIDI E NESSUN TRATTINO SU MOBILE
========================================= */
@media screen and (max-width: 768px) {
    /* 1. Tipografia Fluida: Il testo si adatta millimetricamente allo schermo */
    h1 {
        font-size: clamp(1.5rem, 8vw, 2.1rem) !important;
        line-height: 1.3 !important;
    }
    h2 {
        font-size: clamp(1.3rem, 6vw, 1.8rem) !important;
    }

    /* 2. Divieto assoluto di usare i trattini e andata a capo naturale */
    h1, h2, h3, h4, p, a, span, li, blockquote {
        hyphens: none !important;
        -webkit-hyphens: none !important;
        word-break: normal !important; 
        overflow-wrap: break-word !important; 
        max-width: 100% !important;
    }
}