/* =========================================================
   1. VARIABILI COLORI (Very Mobile Ufficiale)
   ========================================================= */
:root {
    --very-green-main: #029F3A; /* Verde brillante (Sfondo Hero) */
    --very-green-dark: #0A6A30; /* Verde scuro (Bottoni, header card) */
    --very-magenta: #A61A67;  /* Magenta (Badge Novità) */
    --very-bg-light: #F0F5F3;   /* Sfondo pagina verdino chiarissimo */
    --white: #ffffff;
    --dark-text: #1a1a1a;
    --font-main: 'Montserrat', sans-serif;
}

/* =========================================================
   2. RESET E CLASSI BASE
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    background-color: var(--very-bg-light); 
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden; 
    padding-top: 70px; /* TRUCCO WEBPRO: Spinge il contenuto in giù per fare spazio al menu fisso */
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.section-padding { padding: 120px 0; }
.section-title { color: var(--very-green-dark); font-size: 2.2rem; margin-bottom: 40px; font-weight: 900; }
.bg-light { background-color: var(--very-bg-light); }
.bg-dark { background-color: var(--dark-text); }

/* =========================================================
   3. BOTTONI GLOBALI
   ========================================================= */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-white { background-color: var(--white); color: var(--very-green-dark); }
.btn-white:hover { background-color: #f0f0f0; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.btn-green { background-color: var(--very-green-dark); color: var(--white); width: 100%; margin-top: 20px; text-align: center;}
.btn-green:hover { background-color: var(--very-green-main); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.btn-magenta {
    background-color: var(--very-magenta);
    color: white !important;
    border-radius: 50px;
    padding: 15px 25px;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-top: 15px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
    text-align: center;
}
.btn-magenta:hover {
    background-color: #e6004d; /* Un magenta leggermente più scuro al passaggio del mouse */
    transform: scale(1.05);
}

/* =========================================================
   4. NAVBAR STRUTTURA E STILE (Il tuo Menu)
   ========================================================= */
.navbar {
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; 
    z-index: 9999; 
    padding: 15px 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 900; text-decoration: none; color: var(--dark-text); letter-spacing: -0.5px; }
.logo-highlight { color: var(--white); background-color: var(--very-green-dark); padding: 2px 8px; border-radius: 5px; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-item { text-decoration: none; color: var(--dark-text); font-weight: 700; font-size: 1rem; transition: color 0.3s ease; }
.nav-item:hover { color: var(--very-green-main); }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--dark-text); }

/* =========================================================
   5. SEZIONI CLASSICHE (Usate nelle altre pagine)
   ========================================================= */
.hero {
    background-color: var(--very-green-main);
    color: var(--white);
    padding: 100px 0 200px 0; 
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
    margin-bottom: -80px; 
}
.hero h1 { font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; line-height: 1.1; }
.hero .subtitle { font-size: 1.3rem; margin-bottom: 40px; font-weight: 400; }
.hero-dark { 
    background-color: var(--very-green-dark); 
    padding: 160px 0; 
    clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 85%); 
    margin-top: 80px; margin-bottom: 80px;
}

/* =========================================================
   6. NUOVA HOMEPAGE: The Big Cut, Floating Card & MASCOTTE
   ========================================================= */
.hero-home {
    /* Gradiente radiale: centro più chiaro, lati più scuri */
    background: radial-gradient(circle at center, var(--very-green-main) 0%, #01822f 100%);
    color: var(--white);
    padding: 100px 0 320px 0; 
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%); 
    margin-bottom: -150px; 
    overflow: hidden; /* Fondamentale per contenere gli effetti che aggiungiamo ora */
}

.hero-home::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -10%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05); /* Bianco quasi trasparente */
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 1;
}

/* --- IL SEGRETO DELLA MASCOTTE --- */
.hero-mascot-img {
    position: absolute;
    bottom: 50px; 
    left: 55%; 
    transform: translateX(-50%); 
    width: 420px; 
    max-width: 45vw; 
    z-index: 10;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.15)); 
    pointer-events: none; 
}

.hero-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    gap: 40px; 
    position: relative; 
    z-index: 15; 
}

.hero-text { flex: 1; text-align: left; max-width: 600px; padding-top: 40px; }
.hero-home h1 { font-size: 3.8rem; font-weight: 900; margin-bottom: 20px; line-height: 1.1; }
.hero-home .subtitle { font-size: 1.3rem; margin-bottom: 40px; font-weight: 400; color: #f0f0f0; }

.offer-floating-card {
    background: var(--white);
    border-radius: 20px;
    width: 400px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: relative;
    top: 20px; 
    z-index: 20;
    text-align: center;
}

.floating-dati { display: flex; justify-content: center; align-items: center; gap: 15px; margin: 15px 0; color: var(--very-green-dark); }
.floating-giga { font-weight: 900; line-height: 1; text-align: right;}
.floating-giga .numero { font-size: 3.5rem; }
.floating-prezzo { font-weight: 900; line-height: 1; text-align: left;}
.floating-prezzo .euro { font-size: 3.5rem; }
.floating-prezzo .cent { font-size: 1.5rem; vertical-align: top; position: relative; top: 10px; }
.floating-prezzo .mese { font-size: 0.9rem; color: #666; font-weight: normal; }
.floating-clienti { font-size: 0.8rem; color: #666; margin-bottom: 15px; }

/* =========================================================
   7. NUOVA HOMEPAGE: Offerte & Slider (VERSIONE FINALE)
   ========================================================= */

.offerte-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
}

.top-offerte-wrapper {
    display: flex;
    justify-content: center;
    gap: 25px;
    width: 100%;
    max-width: 1100px;
}

/* STILE CARD UNIFICATO */
.card-offerta {
    background: var(--white) !important;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    text-align: center;
}

.top-offerte-wrapper .card-offerta {
    flex: 1;
    min-height: 420px;
    max-width: 380px; 
}

.card-offerta:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card-offerta-header {
    background-color: var(--very-green-dark);
    color: var(--white);
    padding: 18px;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.magenta-bg { background-color: var(--very-magenta) !important; }
.magenta-border { border: 3px solid var(--very-magenta) !important; }

.card-offerta-body {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.target-clienti { font-size: 0.9rem; color: #666; margin-bottom: 15px; }

.dati-offerta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.giga-box { color: var(--very-green-dark); line-height: 0.8; text-align: right; }
.giga-box .numero { font-size: 3.8rem; font-weight: 900; }

.prezzo-box { color: var(--very-green-dark); line-height: 0.8; text-align: left; }
.prezzo-box .euro { font-size: 3.8rem; font-weight: 900; }
.prezzo-box .cent { font-size: 1.5rem; vertical-align: top; position: relative; top: 10px; }

.slider-container { width: 100%; position: relative; }
.slider-title { color: var(--very-green-dark); margin-bottom: 25px; font-weight: 900; }

.slider-view {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 10px;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-card {
    min-width: calc(33.333% - 14px);
    flex-shrink: 0;
    min-height: 380px;
    max-width: 340px;
}

/* Link Scopri Tutte */
.link-scopri-tutte {
    display: inline-block;
    color: var(--very-green-dark);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.link-scopri-tutte:hover {
    color: var(--very-magenta);
    border-bottom: 2px solid var(--very-magenta);
    transform: translateY(-2px);
}

/* Box Servizio */
.box-servizio-evidente {
    background: linear-gradient(135deg, var(--very-green-main) 0%, var(--very-green-dark) 100%);
    color: white;
    padding: 45px;
    border-radius: 35px;
    margin: 60px 0 30px 0;
    box-shadow: 0 15px 35px rgba(2, 159, 58, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
}

.box-content { display: flex; align-items: center; gap: 30px; max-width: 1000px; width: 100%; }
.box-content p { font-size: 1.4rem; line-height: 1.4; flex: 1; }
.btn-box { min-width: 250px; background-color: var(--white); color: var(--very-green-dark); font-weight: bold; }

.slider-nav { margin-top: 20px; }
.slider-nav button {
    background: var(--very-green-dark);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    margin: 0 10px;
    transition: 0.3s;
}
.slider-nav button:hover { background: var(--very-magenta); transform: scale(1.1); }

/* =========================================================
   8. NUOVA HOMEPAGE: Inverse Slash (Sezione eSim/App)
   ========================================================= */
.inverse-slash-section {
    background: linear-gradient(135deg, var(--very-green-main) 0%, var(--very-green-dark) 100%);
    color: var(--white);
    padding: 160px 0;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 85%); 
    margin: 120px 0;
    position: relative;
}

.reverse-content { display: flex; align-items: center; justify-content: space-between; gap: 40px; text-align: left; }
.tech-text { flex: 1.2; }
.tech-text h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 20px; }
.app-phone-demo { flex: 1; text-align: right; filter: drop-shadow(0 15px 20px rgba(0,0,0,0.15)); }
.app-phone-img { max-width: 350px; }

/* =========================================================
   9. COMPONENTI COMUNI (Card vecchie, Badge, Griglie)
   ========================================================= */
.card {
    background: var(--white); border-radius: 20px; width: 100%; max-width: 380px; position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); overflow: hidden; text-align: center;
}
.card-header { background-color: var(--very-green-dark); color: var(--white); padding: 15px; font-weight: 900; font-size: 1.1rem; letter-spacing: 1px; }
.card-body { padding: 30px; }

/* --- BADGE NOVITÀ --- */
.badge-novita {
    position: absolute;
    top: 25px;
    left: -40px;
    background-color: var(--very-magenta);
    color: var(--white);
    padding: 8px 50px;
    font-size: 0.9rem;
    font-weight: 900;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.promo-omaggio { background-color: var(--very-magenta); color: var(--white); display: inline-block; padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; margin-bottom: 15px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 50px;}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; text-align: left; }
.grid-offerte { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 50px; }

.vantaggio-item h3 { color: var(--very-green-main); margin-bottom: 15px; }
.card-vantaggio { background: var(--white); border-radius: 20px; padding: 30px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); transition: all 0.3s ease; text-align: left;}
.card-vantaggio:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.card-vantaggio-icon { font-size: 3rem; margin-bottom: 20px; }
.card-vantaggio h3 { color: var(--very-green-dark); margin-bottom: 10px; }

/* =========================================================
   10. WHATSAPP FLUTTUANTE
   ========================================================= */
.whatsapp-float { position: fixed; bottom: 20px; right: 20px; background-color: #25d366; color: white; padding: 15px 25px; border-radius: 50px; font-weight: bold; text-decoration: none; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000; transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }

/* =========================================================
   11. ANIMAZIONI DI ENTRATA & BILANCIAMENTO SX
   ========================================================= */
@keyframes slideUpMascot {
    from { opacity: 0; transform: translateX(-50%) translateY(50px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hero-mascot-img { animation: slideUpMascot 0.8s ease-out 0.3s both; }

@keyframes fadeInSlideLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-text { animation: fadeInSlideLeft 0.6s ease-out 0.1s both; }

.hero-home::after {
    content: "";
    position: absolute;
    bottom: 10%;
    left: -150px; 
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%; 
    z-index: 2; 
    pointer-events: none;
    animation: fadeIn 1s ease-out 0.5s both; 
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.offer-floating-card { animation: slideInRight 0.8s ease-out 0.6s both; }

/* =========================================================
   12. PAGINA CHI SIAMO (Mappa, Orari & Cross-Sell)
   ========================================================= */

/* Layout Mappa / Orari */
.store-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.map-container {
    width: 100%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Tabella Orari */
.orari-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    margin-top: 25px;
    border-left: 6px solid var(--very-green-main);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.orari-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.orari-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
    color: #444;
}

.orari-list li:last-child {
    border-bottom: none;
}

.orari-list span:first-child {
    font-weight: 700;
}

/* Layout Cross-Selling (Offerte e Smartphone) */
.cross-sell-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* =========================================================
   13. RESPONSIVE (Cellulari e Tablet)
   ========================================================= */
@media (max-width: 992px) {
    .hero-home h1 { font-size: 2.8rem; }
    .hero-content { flex-direction: column; text-align: center; align-items: center;}
    .hero-text { max-width: 100%; padding-top: 0; }
    
    .hero-mascot-img { width: 300px; left: 50%; transform: translateX(-50%); bottom: -60px; }
    
    .offer-floating-card { width: 100%; top: 0; margin-top: 20px;}
    .hero-home { padding: 60px 0 200px 0; }
    .reverse-content { flex-direction: column-reverse; text-align: center; }

    /* Override Chi Siamo */
    .store-grid { grid-template-columns: 1fr; }
    .map-container { height: 350px; min-height: auto; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links { position: fixed; left: -100%; top: 70px; gap: 0; flex-direction: column; background-color: var(--white); width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 10px rgba(0,0,0,0.1); }
    .nav-links.active { left: 0; }
    .nav-item { display: block; padding: 20px; border-bottom: 1px solid #eee; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .hero h1 { font-size: 2.5rem; }
    .dati-offerta { flex-direction: column; gap: 5px; }
    .giga-box, .prezzo-box { text-align: center; }
    
    /* Override Chi Siamo */
    .cross-sell-grid { grid-template-columns: 1fr; }
}