﻿/* ===========================
   HERO (VERSIONE PRO - CLEAR LOOK)
   =========================== */
.hero {
    height: 85vh;
    /* Immagine fissa per effetto parallasse su desktop */
    background: url("../img/hero.jpg") center/cover no-repeat fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Overlay cristallino bluastro */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(31, 47, 68, 0.45) 0%,   
        rgba(31, 47, 68, 0.15) 50%,  
        rgba(31, 47, 68, 0.55) 100%  
    );
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    z-index: 2;
}

/* MODIFICA: Brand HERO ultra risalto (30px) */
.hero-brand {
    font-size: 1.85rem; /* Circa 30px */
    letter-spacing: 6px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 30px;
    padding: 12px 35px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 60px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: inline-block;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Tipografia Responsive */
.hero-title {
    font-size: clamp(2.2rem, 8vw, 4rem); 
    font-weight: 800;
    margin-bottom: 15px;
    max-width: 950px;
    line-height: 1.1;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    max-width: 750px;
    margin-bottom: 35px;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
}

/* Animazione d'ingresso Hero */
.hero-title, .hero-subtitle, .hero-brand {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.hero-brand { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.3s; }

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   SEZIONI
   =========================== */
.section {
    margin: 80px 0;
}

/* ===========================
   INTRO BOX EVIDENZIATO
   =========================== */
.intro-box {
    background: linear-gradient( 135deg, #1e5fbf 0%, #1b4fa3 100% ); /* 🔵 BLU ELETTRICO */

    color: #fff;
    padding: 60px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.15);
}


.intro-box h1 {
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 1000px;
    margin: 0 auto;
}

/* ===========================
   GALLERIA BOX
   =========================== */
.gallery-box {
    background: var(--primary);
    padding: 60px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.gallery-box .slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 15px;
}

.gallery-box img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #eee;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-box img:hover {
    transform: scale(1.05);
}

/* ===========================
   CTA
   =========================== */
.cta {
    background: var(--primary);
    color: #fff;
    padding: 60px;
    text-align: center;
    border-radius: 8px;
    margin: 80px 0;    
}

.cta h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.btn-primary {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 35px;
    background: #fff;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px; 
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    background: var(--light);
}

/* ===========================
   MAP
   =========================== */
.map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 12px;
}

/* ===========================
   LIGHTBOX GALLERIA
   =========================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    font-size: 3.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    padding: 20px;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ===========================
   LOGO SOPRA HERO
   =========================== */
.site-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0;
    background: #1e4d8e; 
}

.site-logo img {
    max-height: 200px;      /* 🔥 più presente ma elegante */
    display: block;
    transition: transform 0.3s ease;
}


/* ===========================
   RESPONSIVE (MOBILE OPTIMIZED)
   =========================== */
@media (max-width: 992px) {
    .hero {
        height: 70vh;
        background-attachment: scroll; 
    }

    .hero-brand {
        font-size: 1.2rem; /* Leggermente più piccolo su mobile ma comunque grande */
        padding: 8px 22px;
        letter-spacing: 4px;
    }

    .section { margin: 50px 0; }
    
    .intro-box, .gallery-box, .cta {
        padding: 40px 20px;
    }

    .intro-box h1, .gallery-title {
        font-size: 1.7rem;
    }

    .gallery-box img {
        width: 260px;
        height: 180px;
    }

    .site-logo img {
        max-width: 180px;
    }
  	
	.menu-toggle {
    max-width: 55px;
    max-height: 55px;
}
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-brand { font-size: 1rem; letter-spacing: 3px; }
    .lightbox-prev, .lightbox-next { font-size: 2rem; }
}

/* ===========================
   STILE ELENCHI SERVIZI (ALLINEAMENTO SINISTRA)
   =========================== */

.services-alignment-wrapper {
    width: 100%;
    margin-top: 35px;
    text-align: left; /* Forza tutto a sinistra */
}

.services-title {
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-align: left;
    padding-left: 0; /* Rimosso il rientro per allinearlo al paragrafo sopra */
}

.services-list {
    list-style: disc;
    margin: 0;
    padding-left: 20px; /* Padding minimo solo per far stare i pallini nell'area della intro-box */
    text-align: left;
}

.services-list li {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #fff;
}

/* ===========================
   RESPONSIVE (MOBILE)
   =========================== */
@media (max-width: 992px) {
    .services-alignment-wrapper {
        text-align: center; /* Torna centrato su mobile per estetica */
    }

    .services-title {
        text-align: center;
    }

    .services-list {
        display: inline-block; /* Mantiene i pallini vicino al testo ma centra il blocco */
        text-align: left;
        margin: 0 auto;
    }
}




/* ===========================
   HERO CLAIM (TESTO SU SFONDO)
   =========================== */
.hero-claim-card {
    max-width: 1200px;          /* stessa gabbia intro-box */
    margin: 50px auto 40px;     /* spazio sopra e sotto */
    padding: 0 40px;
    text-align: center;
}

.hero-claim-card p {
    font-family: var(--font-body);
    font-size: clamp(36px, 3.8vw, 40px); /* 🔥 dimensione richiesta */
    font-weight: 500;
    line-height: 1.35;
    color: #ffffff;
    margin: 14px 0;

    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.45);
}

/* "Chi siamo..." */
.hero-claim-card p:first-child {
    font-style: normal;
    letter-spacing: 0.5px;
}

/* Claim in corsivo */
.hero-claim-card p:last-child {
    font-style: italic; /* 🔥 corsivo */
    font-weight: 400;
	white-space: nowrap;   /* 🔥 forzata su una riga */
}


/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
    .hero-claim-card {
        margin: 40px auto 30px;
        padding: 0 25px;
    }

    .hero-claim-card p {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .hero-claim-card {
        margin: 30px auto 25px;
        padding: 0 15px;
    }

    .hero-claim-card p {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .hero-claim-card p:last-child {
        white-space: normal;      /* 🔥 torna a capo */
        overflow-wrap: break-word;
        word-break: normal;
    }
}


.hero-claim-card p:first-child::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    margin: 14px auto 0;

    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.8),
        transparent
    );

    border-radius: 2px;
    opacity: 0.85;
}


/* ===========================
   SOTTOCOVER HOME
   =========================== */
.sub-hero {
    max-width: 1200px;      /* 🔥 stessa scala della intro-box */
    margin: 60px auto 80px; /* centro + spazio verticale */
    padding: 0 40px;
}

.sub-hero img {
    width: 100%;
    height: 420px;              /* altezza controllata */
    object-fit: cover;
    display: block;

    border-radius: 20px;        /* coerente con footer/topbar */
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);

    position: relative;
    z-index: 2;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
    .sub-hero {
        padding: 0 25px;
        margin: 40px auto 60px;
    }

    .sub-hero img {
        height: 300px;
        border-radius: 16px;
    }
}

@media (max-width: 576px) {
    .sub-hero {
        padding: 0 15px;
        margin: 30px auto 50px;
    }

    .sub-hero img {
        height: 220px;
        border-radius: 14px;
    }
}


/* ===========================
   INTRO BOX – MOBILE FIX
   =========================== */
@media (max-width: 768px) {
    .intro-box h1 {
        font-size: 1.4rem;   /* 🔥 più leggibile su smartphone */
        line-height: 1.45;
    }
}

@media (max-width: 480px) {
    .intro-box h1 {
        font-size: 1.25rem;  /* 🔥 ultra-mobile */
    }
}



/* ================= SOTTOCOVER ALLINEATA ALLA HERO ================= */

.sub-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.sub-hero img {
  width: 100%;
  height: 45vh;           /* proporzionale allo schermo */
  max-height: 520px;
  object-fit: cover;
  display: block;
}


/* ===========================
   RECENSIONI HOME
   =========================== */

.home-reviews {
    padding: 80px 20px;
    text-align: center;
}

.home-reviews h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.home-reviews-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.btn-more-reviews {
    display: inline-block;
    margin-top: 40px;
    padding: 14px 28px;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.btn-more-reviews:hover {
    background: rgba(255,255,255,0.1);
    border-color: #f1c40f;
    color: #f1c40f;
}

/* ===========================
   HOME – RECENSIONI CENTRATE
   =========================== */
.home-reviews-grid {
    justify-items: center;
    justify-content: center;
}


/* ============================
   AVATAR RECENSIONI - HOME
   ============================ */

.home-reviews .review-head {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.home-reviews .review-head img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;

  border: 2px solid rgba(255,255,255,0.25);
  background: #ffffff;
}

/* Sezione dedicata al titolo DOVE SIAMO sul MAP */

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }
}

/* ===========================
   MANAGER DI RIFERIMENTO
   =========================== */
.managers {
    text-align: center;
}

.managers-title {
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 10px;
}

.managers-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 45px;
}

/* Griglia */
.managers-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Card */
.manager-card {
    background: linear-gradient(135deg, #1f2f44, #1e4d8e);
    border-radius: 16px;
    padding: 32px 25px;
    width: 280px; /* leggermente più larga per bilanciare la foto */

    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manager-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.45);
}

/* Foto – PREMIUM */
.manager-photo {
    width: 170px;          /* 🔥 aumentata */
    height: 170px;
    margin: 0 auto 22px;

    border-radius: 18px;   /* 🔥 quadrata con angoli morbidi */
    overflow: hidden;

    border: 3px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.05);

    box-shadow:
        0 8px 18px rgba(0,0,0,0.35),
        inset 0 0 0 1px rgba(255,255,255,0.08);
}

.manager-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testi */
.manager-card h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.manager-card span {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Numeri telefono manager */
.manager-card a {
    color: #ffffff;          /* bianco puro */
    text-decoration: none;   /* niente sottolineatura */
    font-weight: 600;
}

/* Hover elegante */
.manager-card a:hover {
    color: #f1c40f;          /* oro Giosal */
    text-decoration: underline;
}


/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .managers-grid {
        gap: 25px;
    }

    .manager-card {
        width: 100%;
        max-width: 340px;
    }

    .manager-photo {
        width: 150px;
        height: 150px;
        border-radius: 16px;
    }
}

