/* 
Theme Name: Ambasciatori 
Template Name: Home
*/



/* ============== HERO SECTION ================ */
.hero-section {
    position: relative;
    color: var(--text-white);
    padding: 120px 0 200px;
    text-align: center;
}

.hero-bg, .hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    background: #0d1b31; /* Fallback */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-translation {
    font-size: 24px;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.stat-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.stat-item p {
    font-size: 16px;
    line-height: 1.2;
}

.stat-item p span {
    font-size: 24px;
    font-weight: 700;
}

/* Applica il margine solo quando la lingua attiva è l'inglese */
.lang-en .hero-title {
    margin-bottom: 100px !important;
}

/* ============== DESTINATIONS SECTION ================ */
.destinations-section {
    margin-top: -100px; /* Pull up to overlap hero */
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.destinations-container {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.destination-card {
    position: relative;
    flex: 1;
    max-width: 500px;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    color: var(--text-white);
}

.card-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background-color: #2c89be;
}

.card-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-top-text {
    font-size: 16px;
    font-style: italic;
    text-align: center;
    margin-top: 20px;
}

.card-bottom-text {
    text-align: center;
}

.card-bottom-text h2 {
    font-size: 32px;
    margin-bottom: 5px;
}

.card-bottom-text p {
    font-size: 14px;
}

/* ============== CHI SIAMO SECTION ================ */
.about-section {
    padding: 60px 0;
    margin-bottom: 100px;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}
.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    background: #e0e0e0;
    min-height: 300px;
    object-fit: cover;
}

.about-text {
    flex: 1;
}
.about-text h2 {
    color: var(--primary-color);
    font-size: 32px;
}
.about-text p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #555;
}

.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Layout Immagini */
.about-image-layout {
    display: flex;
    gap: 15px;
    flex: 1.2; /* Dà un po' più di spazio alle immagini rispetto al testo */
}

.about-img-wrapper {
    flex: 1;
}

.about-img-wrapper img {
    width: 100%;
    height: 450px; /* Altezza verticale come da screen */
    object-fit: cover;
    border-radius: 40px; /* Arrotondamento pronunciato */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Testo */
.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 42px;
    color: #1d4a7a;
    margin-bottom: 20px;
    font-weight: 800;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

/* Bottone stile screen */
.btn-discover {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid #1d4a7a;
    color: #1d4a7a;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-discover:hover {
    background-color: #1d4a7a;
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-image-layout {
        width: 100%;
    }
    .about-img-wrapper img {
        height: 350px;
    }
}
.about-image-layout {
    display: flex;
    gap: 20px;
    flex: 1.2;
    padding-bottom: 40px; /* Spazio per l'ombra */
}

.about-img-wrapper {
    flex: 1;
}

.about-img-wrapper img {
    width: 100%;
    height: 480px; 
    object-fit: cover;
    border-radius: 45px;
    display: block;

    /* OMBRA FISSA E VISIBILE */
    /* 0px spostamento orizzontale, 20px verso il basso, 40px di sfocatura */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); 
    
    /* Manteniamo una transizione fluida per pulizia visiva */
    transition: transform 0.3s ease;
}

/* Se vuoi un effetto hover molto leggero che non cambi l'ombra, 
   puoi lasciare solo un piccolo movimento */
.about-img-wrapper img:hover {
    transform: translateY(-5px);
}
/* ============== ASSOCIATI CON NOI ================ */
.join-section {
    position: relative;
    padding: 100px 0;
    color: var(--text-white);
}

.join-bg, .join-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
    background-color: #1b3664;
}

.join-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   /* background: rgba(27, 54, 100, 0.85); /* Navy blue overlay */
    z-index: -1;
}

.join-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.join-text {
    flex: 1;
    padding-right: 40px;
}
.join-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}
.join-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.join-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.join-price-note {
    margin: 14px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
}

.join-price-note .woocommerce-Price-amount {
    color: inherit;
}

.join-image {
    flex: 1;
    position: relative;
    z-index: 1;
    margin-top: -170px;
}
.join-image img {
    width: 100%;
    border-radius: 40px;
    background: #ccc;
    min-height: 300px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ============== TESTIMONIALS ================ */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: var(--border-radius);
    padding: 25px;
    position: relative;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #666;
}

.author-info h4 {
    margin: 0;
    font-size: 15px;
}

.stars {
    color: #f1c40f;
    font-size: 12px;
}

.author-info .role {
    font-size: 11px;
    opacity: 0.8;
}

.facebook-icon {
    margin-left: auto;
    background: #3b5998;
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

.testimonial-body p {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

.carousel-dots {
    text-align: center;
    margin-top: 30px;
}
.carousel-dots .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}
.carousel-dots .dot.active {
    background: var(--primary-color);
}

/* ============== PARTNER SECTION (GRID 4x2) ================ */
.partner-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.partner-bg, .partner-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.partner-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay scuro come da immagine  */
    z-index: -1;
}

.partner-container {
    max-width: 1200px; /* Container impostato a 1200px  */
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 20px; /* Spazio tra i loghi  */
    margin-top: 50px;
}

.partner-logo {
    background: #fff;
    border-radius: 20px; /* Angoli arrotondati come da screenshot  */
    padding: 15px;
    
    /* Calcolo per 4 loghi per riga: 
       (100% / 4) - (gap totale / 4) */
    flex: 0 1 calc(25% - 15px); 
    
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.partner-logo img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

/* ================= RESPONSIVE ================= */

/* Tablet: 3 o 2 loghi per riga */
@media (max-width: 992px) {
    .partner-logo {
        flex: 0 1 calc(33.33% - 15px);
    }
}

/* Mobile: 2 per rigo come richiesto [cite: 16] */
@media (max-width: 576px) {
    .partner-logos {
        gap: 15px;
    }
    .partner-logo {
        flex: 0 1 calc(50% - 15px); 
        height: 90px;
        border-radius: 15px;
    }

}
/* ============== FAQ CTA ================ */
.faq-cta-section {
    max-width: 1420px !important;
    margin-top: 50px !important; /* pull up over partner section if needed, else normal margin */
    margin-bottom: 50px !important;
    position: relative;
    z-index: 10;
}

.faq-cta-card {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: var(--border-radius);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.faq-cta-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.faq-icon {
    width: 60px;
    height: auto;
}

.faq-text h2 {
    margin-bottom: 5px;
}
.faq-text p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}



/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .destinations-container {
        flex-direction: column;
        align-items: center;
    }
    .about-container, .join-container, .faq-cta-card {
        flex-direction: column;
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .join-image img {
        margin-top: 150px;
    }
    .join-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        width: fit-content;
        margin: 0 auto;
        gap: 20px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .faq-cta-content {
        flex-direction: column;
        text-align: center;
    }
}
