/* ====================== RESET E BASE ====================== */
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    background-image: url('sfondo.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
}

/* ====================== NAVBAR (più alta) ====================== */
.navbar {
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(37, 49, 65, 0.75);
   
    z-index: 1000;
    
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    
   
}

.menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu a {
    color: white !important;           
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
}

.menu a:hover,
.menu a.active {
    color: #4CAF50 !important;         
}

.menu a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #4CAF50;
}

/* ====================== LOGO ====================== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    margin-left: -10px;
}
.logo-img {
    width: 80px;
    height: auto;
}
.logo-text {
    line-height: 1.1;
}
.titolo {
    font-size: 19px;
    font-weight: 700;
    display: block;
}
.sottotitolo {
    font-size: 15px;
    font-weight: 600;
    color: #4CAF50;
}







/* ===== DROPDOWN BASE ===== */
.dropdown {
    position: relative;
}

/* ===== DROPDOWN MENU  ===== */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;

    min-width: 240px;
    padding: 10px;

    /* 🧊 GLASS EFFECT */
    background: rgba(15, 20, 28, 0.55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    z-index: 2000;

    /* 🚀 SMOOTH ANIMATION (NO display:none) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;

    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
}

/* ===== ATTIVO ===== */
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ===== GLASS LIGHT REFLECTION (WOW EFFECT) ===== */
.dropdown-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;

    background: radial-gradient(
        circle at top left,
        rgba(255,255,255,0.08),
        transparent 60%
    );

    pointer-events: none;
}

/* ===== LINK ===== */
.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    margin: 3px 0;

    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 500;

    transition: all 0.2s ease;
}

/* ===== HOVER ===== */
.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.25);

    color: #4CAF50;
    transform: translateX(4px);
}

/* ===== FRECCIA ===== */
.arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    opacity: 0.8;
}

.dropdown.active .arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* ===== ANIMAZIONE BASE (backup visivo) ===== */
@keyframes fadeDropdown {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ====================== BOTTONE CHIAMA ====================== */
.chiama {
  
  background: rgba(76, 175, 80, 0.85);   /* Verde semi-trasparente */
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  white-space: nowrap;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  border: 1px solid rgba(255,255,255,0.2); /* bordo leggero per contrasto */
  flex-shrink: 0;
  margin-right: 10px;
  
}

.chiama:hover {
  background: rgba(76, 175, 80, 0.95);   /* diventa quasi opaco al passaggio del mouse */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
}

/* ====================== SEZIONI GENERALI ====================== */
.section {
    padding-top: 100px;     
}



/* ====================== HERO BANNER ====================== */

.hero {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.85)), url('hero.jpg') center/cover no-repeat;
    min-height: 680px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    padding-bottom: 80px;        /* ← Aggiunge spazio sotto i bottoni */
}

/* Transizione morbida tra hero e servizi */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(transparent, #f8f9fa);
    z-index: 1;
}

/* Spazio extra sotto i bottoni */
.hero-buttons {
    margin-top: 30px;
}

.hero-content {
    max-width: 1100px;

    margin: 0;
    padding: 0 30px;
    padding-top:100px;
    text-align: left;
}

/* TITOLO */

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.05;
    margin-bottom: 15px;
}

.highlight {
    color: #4CAF50;
}

/* SOTTOTITOLO */

.hero-subtitle {
    font-size: 1.45rem;
    margin-bottom: 35px;
    line-height: 1.5;
}

/* BENEFICI */

.hero-benefits {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 14px;

    margin-bottom: 45px;
}

.benefit-item {
    font-size: 1.15rem;
}

/* BOTTONI */

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;

    justify-content: flex-start;
}

/* STILE BOTTONI */

.btn-hero {
    padding: 14px 22px;

    border-radius: 12px;

    font-weight: 700;
    text-decoration: none;

    font-size: 0.95rem;

    min-width: 210px;

    transition: all 0.3s ease;

    display: flex;
    align-items: center;
    justify-content: center; /* CENTRATO */
    text-align: center;      /* CENTRATO */

    gap: 12px;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.20);
}

/* TELEFONO */

.btn-chiama {
    background: rgba(76, 175, 80, 0.75); /* verde trasparente */
    color: white;
    backdrop-filter: blur(6px);
}

.btn-chiama:hover {
    background: rgba(76, 175, 80, 0.95);
}

.btn-whatsapp:hover {
    background: rgba(17, 24, 39, 0.95);
}
/* WHATSAPP */

.btn-whatsapp {
    background: rgba(31, 41, 55, 0.95); /* grigio scuro trasparente */
    color: white;
    backdrop-filter: blur(6px);
}

/* ICONE */

.hero-icon {
    font-size: 30px;
}

.btn-whatsapp i {
    font-size: 34px;
}

/* HOVER */

.btn-hero:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(0,0,0,0.30);
}

/* ====================== MOBILE ====================== */

@media (max-width: 768px) {

    .hero {
        min-height: auto;
        padding: 80px 0;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero {
        width: 100%;
        min-width: auto;
    }
}

/* ====================== SEZIONE SERVIZI ====================== */


.servizi-section {
    padding: 40px 20px;
    background: #f8fafc;
}



.section-title {
    font-size: 2.8rem;
    color: #1e2a44;
    text-align: center;
}
.section-subtitle {
    font-size: 1.25rem;
    color: #555;
    text-align: center;
}

/* GRID */
.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;

    max-width: 1400px;
    margin: 60px auto 0;
    align-items: stretch;
}

/* CARD */
.servizio-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    height: 100%;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.06),
        0 2px 10px rgba(0,0,0,0.04);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;

    position: relative;
}

/* EFFETTO HOVER */
.servizio-card:hover {
    transform: translateY(-12px);

    box-shadow:
        0 20px 45px rgba(0,0,0,0.12),
        0 10px 20px rgba(0,0,0,0.08);
}

/* IMMAGINE */
.servizio-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.servizio-card:hover img {
    transform: scale(1.05);
}

/* CONTENUTO */
.card-content {
    padding: 30px;

    display: flex;
    flex-direction: column;
    flex: 1;

    text-align: center;
}

/* ICONA */
.icon-circle {
    width: 70px;
    height: 70px;

    margin: -65px auto 20px;

    background: #4CAF50;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.10);

    position: relative;
    z-index: 2;
}

/* TITOLO */
.card-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;

    margin-bottom: 16px;

    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* TESTO */
.card-content p {
    color: #475569;
    line-height: 1.7;

    flex-grow: 1;

    margin-bottom: 28px;
}

/* BOTTONE */
.btn-scopri {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 22px;

    border-radius: 12px;

    
    color: #388e3c;

    text-decoration: none;
    font-weight: 600;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}



/* MOBILE */
@media (max-width: 768px) {

    .servizi-section {
        padding: 70px 15px;
    }

    .servizi-grid {
        gap: 25px;
    }

    .servizio-card img {
        height: 220px;
    }

    .card-content {
        padding: 25px;
    }
}










/* ====================== MODAL ====================== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: white;
    max-width: 660px;
    width: 92%;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    padding: 25px 25px 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-content img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 10px;
    margin: 10px 0 25px 0;
}
.modal-button {
    display: block;
    width: 100%;
    background: #4CAF50;
    color: white;
    padding: 15px 1px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    margin:10px 0 25px 0;
}

.modal-content h3 {
    margin: 25px 0 12px 0;
    color: #1e2a44;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-content ul {
    padding-left: 0;
    margin: 12px 0 20px 0;
    list-style: none;
}

.modal-content li {
    padding-left: 22px;
    position: relative;
    margin-bottom: 9px;
    line-height: 1.6;
}

.modal-content li::before {
    content: "•";
    color: #000000;
    font-size: 1.4rem;
    position: absolute;
    left: 0;
    top: -2px;
}




/* ====================== PERCHÉ SCEGLIERE NOI ====================== */
.perche-noi {
    background: white;
    padding: 50px 20px;
}




.perche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 35px;
    
    
    
    max-width: 1400px;
    margin: 60px auto 0;
    align-items: stretch;
}

.perche-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    transition: all 0.3s;
}

.perche-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.perche-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.perche-card h3 {
    color: #1e2a44;
    margin-bottom: 15px;
    font-size: 1.35rem;
}

.perche-card p {
    color: #555;
    line-height: 1.6;
}






/* ====================== COME FUNZIONA ====================== */



.perche-noi {
    position: relative;
}



/* La sezione Come Funziona parte con transizione pulita */
.come-funziona {
    background: trasparent;
    padding: 140px 20px 100px;   /* più spazio sopra per la sfumatura */
    margin-top: -80px;           /* sovrapposizione morbida */
    position: relative;
    z-index: 2;
    border-radius: 40px 40px 0 0;   /* curva leggera in alto */
    backdrop-filter: blur(8px);
}








/* LAYOUT PRINCIPALE */
.funziona-content {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 50px;

    max-width: 1200px;
    margin: 60px auto 0;

    align-items: start;
}

/* ====================== STEPS ====================== */

.steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.step {
    background: #f8fafc;
    border-radius: 14px;

    padding: 25px;

    text-align: center;

    transition: all 0.3s ease;

    border: 1px solid rgba(0,0,0,0.05);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* NUMERO STEP */
.step-number {
    background: #4CAF50;
    color: white;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;

    margin: 0 auto 12px;
    font-size: 1.2rem;
}

/* ICONA */
.step-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* TESTO */
.step h3 {
    color: #1e2a44;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.step p {
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ====================== BOX EMERGENZA ====================== */

.emergenza-box {
    background: linear-gradient(135deg, #4CAF50, #2e7d32);
    color: white;

    padding: 35px 25px;
    border-radius: 18px;

    text-align: center;

    position: sticky;
    top: 100px;

    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.25);

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.emergenza-box h3 {
    font-size: 1.4rem;
    margin: 0;
}

.emergenza-box p {
    margin: 0;
    opacity: 0.9;
}

/* BOTTONE EMERGENZA */
.btn-emergenza {
    display: inline-block;

    background: white;
    color: #2e7d32;

    padding: 12px 18px;

    border-radius: 10px;

    font-size: 1rem;
    font-weight: 700;

    text-decoration: none;

    transition: 0.3s;

    margin-top: 5px;
}

.btn-emergenza:hover {
    transform: scale(1.05);
}

/* DISPONIBILITÀ */


.btn-whatsapp-emergenza {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: rgba(31, 41, 55, 0.95);
    color: white;

    padding: 12px 18px;

    border-radius: 10px;

    font-size: 1rem;
    font-weight: 700;

    text-decoration: none;

    transition: all 0.3s ease;
}

.btn-whatsapp-emergenza i {
    font-size: 20px;
}

.btn-whatsapp-emergenza:hover {
    background: rgba(37, 211, 102, 1);
    transform: scale(1.05);
}

/* ====================== MOBILE ====================== */

@media (max-width: 900px) {

    .funziona-content {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .emergenza-box {
        position: relative;
        top: auto;
    }
}





/* ===================== FOOTER PREMIUM AGENZIA TOP ===================== */
.footer {
    background: linear-gradient(180deg, #0b1220 0%, #0f1724 100%);
    color: #cbd5e1;

    padding: 50px 20px 20px;

    position: relative;
    overflow: hidden;
}

/* glow soft decorativo */
.footer::before,
.footer::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
}

.footer::before {
    top: -120px;
    left: -120px;
    background: rgba(76, 175, 80, 0.12);
}

.footer::after {
    bottom: -120px;
    right: -120px;
    background: rgba(59, 130, 246, 0.10);
}

/* ===================== GRID ===================== */
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;

    gap: 35px;

    max-width: 1100px;
    margin: 0 auto;

    align-items: start;
    position: relative;
    z-index: 2;
}

/* ===================== TITOLI ===================== */
.footer-col h4 {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    color: #ffffff;

    margin-bottom: 14px;
}

/* ===================== LINK ===================== */
.footer-col a {
    display: block;

    color: rgba(203, 213, 225, 0.75);
    text-decoration: none;

    font-size: 0.92rem;

    margin-bottom: 7px;

    transition: 0.2s ease;
}

.footer-col a:hover {
    color: #4CAF50;
    transform: translateX(4px);
}

/* ===================== LOGO ===================== */
.logo-footer {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-bottom: 12px;

    transition: transform 0.3s ease;
}

/* LOGO IMG GRANDE */
.logo-footer img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 14px;

    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
    will-change: transform;
}

/* HOVER EFFETTO AGENZIA TOP */
.logo-footer:hover {
    transform: translateY(-2px);
}

.logo-footer:hover img {
    transform: scale(1.08);

    box-shadow:
        0 10px 25px rgba(76, 175, 80, 0.25),
        0 0 0 1px rgba(76, 175, 80, 0.15);

    filter: brightness(1.05);
}

/* TESTO LOGO */
.logo-footer .titolo {
    display: block;
    font-weight: 700;
    color: #fff;
    font-size: 1.15rem;

    transition: 0.3s ease;
}

.logo-footer .sottotitolo {
    display: block;
    font-size: 0.9rem;
    color: rgba(203, 213, 225, 0.75);

    transition: 0.3s ease;
}

/* hover testo */
.logo-footer:hover .titolo {
    color: #4CAF50;
}

.logo-footer:hover .sottotitolo {
    color: rgba(255,255,255,0.85);
}

/* descrizione brand */
.footer-col.brand .desc {
    font-size: 0.92rem;
    line-height: 1.6;

    color: rgba(203, 213, 225, 0.7);

    max-width: 280px;
}

/* ===================== CONTATTI ===================== */
.footer-col.contact .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 8px;

    font-size: 0.92rem;
    color: rgba(203, 213, 225, 0.75);
}

.footer-col.contact .contact-item span:first-child {
    width: 22px;
    display: inline-flex;
    justify-content: center;
    flex-shrink: 0;
}

/* ===================== BOTTOM ===================== */
.footer-bottom {
    text-align: center;

    margin-top: 35px;
    padding-top: 16px;

    border-top: 1px solid rgba(148, 163, 184, 0.15);

    font-size: 0.85rem;
    color: rgba(203, 213, 225, 0.5);

    position: relative;
    z-index: 2;
}

.footer-bottom a {
    color: rgba(203, 213, 225, 0.6);
    text-decoration: none;
    margin: 0 5px;
}

.footer-bottom a:hover {
    color: #4CAF50;
}




/* ====================== COOKIE BANNER ====================== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 42, 68, 0.97);
    color: white;
    padding: 18px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.cookie-btn:hover {
    background: #388e3c;
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ====================== BLATTE ANIMAZIONE ====================== */
.blatte {
    position: fixed;
    width: 48px;
    height: auto;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    animation: runAway 4.8s forwards linear;
    filter: drop-shadow(3px 5px 8px rgba(0,0,0,0.6));
}
@keyframes runAway {
    0% { opacity: 0; transform: scale(0.6) rotate(0deg); }
    15% { opacity: 1; transform: scale(1.15); }
    85% { opacity: 1; }
    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(0.3) rotate(var(--rotation));
    }
}
