/* ============================================ */
/* RESET e base - con Raleway                   */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;  /* MODIFICATO */
    color: #333;
    line-height: 1.6;
    font-weight: 400;  /* Aggiunto: peso base */
}

a {
    text-decoration: none;
    color: #105378;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TITOLI (HEADER) - Merriweather SemiBold 600 ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-weight: 600;  /* bold */
    color: #104C8A;
}

/* ===== HEADER ===== */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    max-height: 75px;
    width: auto;
}

/* Menu di navigazione */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu ul li a {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;  /* Aggiunto */
    font-weight: 700;  
    color: #104C8A;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    font-size: 1.1rem;
    letter-spacing: 0.5px;  /* Leggero spacing per eleganza */
}

.nav-menu ul li a:hover {
    border-bottom-color: #105378;
}

/* Hamburger (mobile) - nascosto su desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}



/* ============================================ */
/* SEZIONE: LA SCUOLA                           */
/* ============================================ */
.section-scuola {
    padding: 60px 0 0 0;
    background: #ffffff;
}

.section-scuola .row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.section-scuola .col-sx {
    flex: 1 1 48%;
    min-width: 300px;
}

.section-scuola .col-dx {
    flex: 1 1 48%;
    min-width: 300px;
}

.section-title {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 2.3rem;
    color: #104C8A;
    margin-bottom: 25px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.scuola-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.scuola-image img {
    width: 100%;
    height: auto;
    display: block;
}

.scuola-text {
    margin: 20px 0;
}

.scuola-text p {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 400;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;  /* Leggermente aumentato per leggibilità */
    color: #444;
}

.scuola-text strong {
    font-weight: 700;
    color: #104C8A;
}

.cambridge-banner {
    margin-top: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cambridge-banner:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.cambridge-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mappa */
.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.map-wrapper iframe {
    display: block;
    min-height: 370px;
}

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

@media (max-width: 992px) {
    .section-scuola .col-sx,
    .section-scuola .col-dx {
        flex: 1 1 100%;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    /* Header */
    .menu-toggle {
        display: flex;
    }
    .nav-menu {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    .nav-menu.active {
        display: block;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 10px 0;
    }
    .nav-menu ul li a {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
    }

    

    /* Scuola */
    .section-scuola {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .scuola-text p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    .map-wrapper iframe {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    
    .logo img {
        max-height: 55px;
    }

    /* Scuola */
    .section-scuola {
        padding: 30px 0;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .scuola-text p {
        font-size: 0.9rem;
    }
}
/* ============================================ */
/* SEZIONE: DOPPIA IMMAGINE (INCROLL)           */
/* ============================================ */
.section-incroll {
    padding: 30px 0;
    background: #ffffff;
}

.incroll-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Colonna per l'immagine più larga (2000x500) */
.incroll-col-wide {
    flex: 0 0 auto;
    width: calc(65.8% - 10px);
    max-width: 100%;
}

/* Colonna per l'immagine più stretta (1038x500) */
.incroll-col-narrow {
    flex: 0 0 auto;
    width: calc(34.2% - 10px);
    max-width: 100%;
}

.incroll-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0; /* Rimuove il bordo arrotondato */
    transition: transform 0.3s ease;
}

.incroll-img:hover {
    transform: scale(1.01);
}

/* ===== RESPONSIVE INCROLL ===== */
@media (max-width: 768px) {
    .section-incroll {
        padding: 20px 0;
    }
    
    .incroll-row {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .incroll-col-wide,
    .incroll-col-narrow {
        width: 100%;
        flex: 1 1 100%;
    }
    
    .incroll-img:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .section-incroll {
        padding: 15px 0;
    }
    
    .incroll-row {
        gap: 10px;
    }
}
/* ============================================ */
/* SEZIONE: I NOSTRI CORSI (TABS)               */
/* ============================================ */
.section-corsi {
    padding: 60px 0 80px 0;
    background-image: url('../images/blurry-gradient-haikei.svg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat
}
.section-corsi p {
    color: #ffffff; 
}

/* Striscia decorativa */
.striscia-wrapper {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 4px;
}
.striscia-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Header corsi */
.corsi-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}
.corsi-icon {
    max-width: 133px;
    height: auto;
}
.corsi-header .section-title {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    color: #fff;
}

/* ===== TABS ===== */
.tabs-wrapper {
    display: flex;
    gap: 30px;
    background: #f5f5f9;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    min-height: 400px;
    margin-top: 30px;
}

/* Navigazione tabs (colonna sinistra) */
.tabs-nav {
    flex: 0 0 280px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    margin: 0;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #4a4a5a;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.tab-item:hover {
    background: rgba(44, 38, 99, 0.08);
    color: #2c2663;
}

.tab-item.active {
    background: #104C8A;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(44, 38, 99, 0.25);
}

.tab-item .tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    font-size: 14px;
    flex-shrink: 0;
}

.tab-item.active .tab-icon {
    background: rgba(255,255,255,0.25);
}

.tab-item .tab-label {
    flex: 1;
}

/* Contenuto tabs (colonna destra) */
.tabs-content {
    flex: 1;
    background: #ffffff;
    border-radius: 10px;
    padding: 30px 35px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    min-height: 300px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: #104C8A;
    margin-bottom: 18px;
    line-height: 1.4;
}

.tab-pane p {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.tab-pane p:last-child {
    margin-bottom: 0;
}

.tab-pane a {
    color: #105378;
    font-weight: 600;
    text-decoration: underline;
}
.tab-pane a:hover {
    color: #2c2663;
}

/* Animazione fade */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE CORSI ===== */
@media (max-width: 992px) {
    .tabs-wrapper {
        flex-direction: column;
        padding: 20px;
    }
    .tabs-nav {
        flex: 1 1 auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }
    .tab-item {
        flex: 1 1 calc(50% - 5px);
        min-width: 120px;
        padding: 10px 14px;
        font-size: 0.85rem;
        justify-content: center;
        text-align: center;
    }
    .tab-item .tab-label {
        white-space: normal;
        word-break: break-word;
    }
    .tabs-content {
        padding: 25px 20px;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .section-corsi {
        padding: 40px 0 60px 0;
    }
    .corsi-header {
        gap: 10px;
    }
    .corsi-icon {
        max-width: 80px;
    }
    .corsi-header .section-title {
        font-size: 1.5rem;
    }
    .tabs-wrapper {
        padding: 15px;
    }
    .tab-item {
        flex: 1 1 100%;
        padding: 10px 12px;
        font-size: 0.85rem;
        justify-content: flex-start;
    }
    .tabs-content {
        padding: 20px 16px;
        min-height: 150px;
    }
    .tab-pane h3 {
        font-size: 1.2rem;
    }
    .tab-pane p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .section-corsi {
        padding: 30px 0 40px 0;
    }
    .corsi-icon {
        max-width: 60px;
    }
    .corsi-header .section-title {
        font-size: 1.3rem;
    }
    .tabs-wrapper {
        padding: 10px;
        border-radius: 8px;
    }
    .tabs-nav {
        gap: 3px;
    }
    .tab-item {
        padding: 8px 10px;
        font-size: 0.8rem;
        border-radius: 6px;
        gap: 8px;
    }
    .tab-item .tab-icon {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    .tabs-content {
        padding: 16px 12px;
        border-radius: 8px;
    }
    .tab-pane h3 {
        font-size: 1rem;
    }
    .tab-pane p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}
/* ============================================ */
/* SEZIONE: CERTIFICAZIONI                      */
/* ============================================ */
.section-certificazioni {
    padding: 60px 0 80px 0;
    background: #ffffff;
}

/* Header certificazioni */
.cert-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.cert-icon {
    max-width: 208px;
    height: auto;
}
.cert-header .section-title {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* Row 2 colonne */
.cert-row {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.cert-col-sx {
    flex: 1 1 55%;
    min-width: 300px;
}
.cert-col-dx {
    flex: 1 1 40%;
    min-width: 280px;
}

/* Testo certificazioni */
.cert-text p {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 18px;
}
.cert-text strong {
    font-weight: 700;
    color: #104C8A;
}

/* Pulsante video */
.cert-button-wrapper {
    margin-top: 30px;
}
.btn-video {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #104C8A;
    color: #ffffff;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 83, 120, 0.3);
}
.btn-video:hover {
    background: #104C8A;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 83, 120, 0.4);
}
.btn-video:active {
    transform: translateY(0);
}
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 14px;
}

/* Logo Cambridge */
.cert-logo {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: #ffffff;
    padding: 15px;
}
.cert-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Diagramma CEFR */
.cert-diagram {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: #ffffff;
    padding: 15px;
    transition: transform 0.3s ease;
}
.cert-diagram:hover {
    transform: scale(1.01);
}
.cert-diagram img {
    width: 100%;
    height: auto;
    display: block;
}
.diagram-caption {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}



/* ===== YOUNG LEARNERS ===== */
.young-learners {
    margin-top: 20px;
}
.yl-title {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: #2c2663;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0dede;
}

.yl-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.yl-table-col {
    flex: 0 0 280px;
    min-width: 200px;
}
.yl-text-col {
    flex: 1;
    min-width: 280px;
}

/* Tabella YLE */
.yl-table-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: #ffffff;
}
.yl-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
}
.yl-table thead {
    background: #2c2663;
    color: #ffffff;
}
.yl-table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}
.yl-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 400;
    font-size: 0.95rem;
    color: #444;
}
.yl-table tbody tr:last-child td {
    border-bottom: none;
}
.yl-table tbody tr:hover {
    background: #f5f5f9;
}
.yl-table-caption {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #666;
    margin-top: 12px;
    text-align: center;
}

/* Testo Young Learners */
.yl-text-col p {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}
.yl-text-col strong {
    font-weight: 700;
    color: #104C8A;
}
.yl-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}
.yl-list li {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}
.yl-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #105378;
    font-weight: 700;
}

/* ===== MODAL VIDEO ===== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.3s ease;
}
.video-modal.open {
    display: flex;
}

.video-modal-content {
    position: relative;
    max-width: 800px;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    color: #ffffff;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
    line-height: 1;
}
.video-modal-close:hover {
    transform: rotate(90deg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Animazione modal */
@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== RESPONSIVE CERTIFICAZIONI ===== */
@media (max-width: 992px) {
    .cert-col-sx {
        flex: 1 1 100%;
    }
    .cert-col-dx {
        flex: 1 1 100%;
    }
    .cert-header .section-title {
        font-size: 1.8rem;
    }
    .yl-row {
        flex-direction: column;
    }
    .yl-table-col {
        flex: 1 1 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .section-certificazioni {
        padding: 40px 0 60px 0;
    }
    .cert-header {
        gap: 12px;
    }
    .cert-icon {
        max-width: 120px;
    }
    .cert-header .section-title {
        font-size: 1.5rem;
    }
    .cert-row {
        gap: 30px;
    }
    .cert-text p {
        font-size: 0.95rem;
    }
    .btn-video {
        padding: 12px 28px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    .yl-title {
        font-size: 1.4rem;
    }
    .yl-table th,
    .yl-table td {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    .yl-text-col p {
        font-size: 0.95rem;
    }
    .yl-list li {
        font-size: 0.95rem;
    }
    .video-modal-content {
        max-width: 95%;
    }
    .video-modal-close {
        top: 8px;
        right: 14px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .section-certificazioni {
        padding: 30px 0 40px 0;
    }
    .cert-icon {
        max-width: 80px;
    }
    .cert-header .section-title {
        font-size: 1.3rem;
    }
    .cert-text p {
        font-size: 0.9rem;
    }
    .btn-video {
        padding: 10px 20px;
        font-size: 0.9rem;
        gap: 10px;
    }
    .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .yl-title {
        font-size: 1.2rem;
    }
    .yl-table th,
    .yl-table td {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .yl-table-caption {
        font-size: 0.8rem;
    }
    .yl-text-col p {
        font-size: 0.9rem;
    }
    .yl-list li {
        font-size: 0.9rem;
        padding-left: 20px;
    }
    .separator-icon {
        font-size: 22px;
        padding: 0 12px;
    }
    .video-modal {
        padding: 10px;
    }
}
/* ============================================ */
/* SEZIONE: METODO                              */
/* ============================================ */
.section-metodo {
    padding: 60px 0 40px 0;
    background-image: url('../images/blurry-gradient-haikei2.svg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat
}

.metodo-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.metodo-icon {
    max-width: 180px;
    height: auto;
}
.metodo-header .section-title {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    color: #ffffff;
}

.metodo-text {
    max-width: 100%;
}
.metodo-text p {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 18px;
}
.metodo-text strong {
    font-weight: 700;
    color: #ffffff;
}
.metodo-text h3 {
    color: #ffffff;
    margin-top: 40px;
}

.metodo-image {
    float: right;
    max-width: 480px;
    height: auto;
    margin: 0 0 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.metodo-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 25px 0;
}
.metodo-list li {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    color: #ffffff;
    padding-left: 28px;
    position: relative;
    margin-bottom: 8px;
}

.metodo-list li::before {
  content: '✶';
  position: absolute;
  left: 0;
  color: #EFF7FF;
  font-size: .9rem;
}
hr.custom-hr {
    border: none;
    height: 1px;
    background: #4A8AC3;
    margin: 30px 0;
    opacity: 1;
    box-shadow: none;
    /* Nessun effetto aggiuntivo */
}

/* ============================================ */
/* SEZIONE: CONTATTI                            */
/* ============================================ */
.section-contatti {
    padding: 60px 0 80px 0;
    background: #ffffff;
}

.contatti-title {
    margin-bottom: 40px !important;
}

/* ===== LAYOUT A DUE COLONNE ===== */
.contatti-row {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Colonna sinistra: FORM */
.contatti-col-left {
    flex: 1 1 55%;
    min-width: 300px;
}

/* Colonna destra: INFO */
.contatti-col-right {
    flex: 1 1 40%;
    min-width: 280px;
}

/* ===== FORM ===== */
.contatti-col-left h3 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 25px;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #ffffff;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #105378;
    box-shadow: 0 0 0 3px rgba(16, 83, 120, 0.1);
}

.form-control.error {
    border-color: #e74c3c;
}

.form-control.success {
    border-color: #2ecc71;
}

.btn-submit {
    background: #105378;
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 83, 120, 0.3);
}

.btn-submit:hover {
    background: #0d4360;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 83, 120, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.form-feedback {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 500;
}

.form-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== INFO CONTATTI ===== */
.contatti-col-right h3 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.contatti-info p {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.address-detail {
    font-size: 0.9rem;
    color: #777;
}

/* ===== DETTAGLI CONTATTI (telefono, email) ===== */
.contatti-dettagli {
    margin: 20px 0 25px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: #444;
}

.contact-item a {
    color: #105378;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-separator {
    margin: 0 8px;
    color: #d01729;
    font-weight: 700;
}

/* ===== ICONE SVG ===== */
.contact-icon-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
    filter: brightness(0) saturate(100%) invert(25%) sepia(78%) saturate(1000%) hue-rotate(180deg) brightness(95%) contrast(90%);
    /* Colore #105378 */
}

/* ===== ORARI ===== */
.contatti-orari {
  background: #B9D6F4;
  padding: 18px 22px;
  border-radius: 8px;
  border-left: 4px solid #105378;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin: 10px 0 30px 0;
}

.contatti-orari p {
    margin-bottom: 0 !important;
    font-size: 0.95rem !important;
}

.contatti-orari strong {
    color: #1a1a2e;
}



/* ===== SOCIAL ===== */
.contatti-social h4 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.facebook:hover {
    background: #E1306C;
}

.social-link.instagram {
    background: #E12F6D;
}

.social-link.instagram:hover {
    background: #EE81A2;
}

/* Icone social (bianche) */
.social-link img {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0) invert(1);
}

/* ============================================ */
/* SEZIONE: CONTATTI                            */
/* ============================================ */
.section-contatti {
    padding: 60px 0 80px 0;
    background: #ffffff;
}

.contatti-title {
    margin-bottom: 40px !important;
}

/* ===== LAYOUT A DUE COLONNE ===== */
.contatti-row {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Colonna sinistra: FORM - 55% */
.contatti-col-left {
    flex: 1 1 55%;
    max-width: 55%;
    min-width: 300px;
}

/* Colonna destra: INFO - 40% */
.contatti-col-right {
    flex: 1 1 35%;
    max-width: 40%;
    min-width: 280px;
}

/* ===== FORM ===== */
.contatti-col-left h3 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 25px;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #ffffff;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #105378;
    box-shadow: 0 0 0 3px rgba(16, 83, 120, 0.1);
}

.form-control.error {
    border-color: #e74c3c;
}

.form-control.success {
    border-color: #2ecc71;
}

.btn-submit {
    background: #105378;
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 83, 120, 0.3);
}

.btn-submit:hover {
    background: #0d4360;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 83, 120, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.form-feedback {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 500;
}

.form-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== INFO CONTATTI ===== */
.contatti-col-right h3 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.contatti-info p {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.address-detail {
    font-size: 0.9rem;
    color: #777;
}

/* ===== DETTAGLI CONTATTI (telefono, email) ===== */
.contatti-dettagli {
    margin: 20px 0 25px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: #444;
}

.contact-item a {
    color: #105378;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-separator {
    margin: 0 8px;
    color: #d01729;
    font-weight: 700;
}

/* ===== ICONE SVG ===== */
.contact-icon-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
    filter: brightness(0) saturate(100%) invert(25%) sepia(78%) saturate(1000%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* ===== ORARI ===== */
.contatti-orari {
  background: #B9D6F4;
  padding: 18px 22px;
  border-radius: 8px;
  border-left: 4px solid #105378;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin: 10px 0 30px 0;
}

.contatti-orari p {
    margin-bottom: 0 !important;
    font-size: 0.95rem !important;
}

.contatti-orari strong {
    color: #1a1a2e;
}

/* ===== SEPARATORE ===== */
.contatti-separator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 25px 0;
    position: relative;
}

.contatti-separator::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e0dede;
}

.contatti-separator .separator-icon {
    background: #f9f9f9;
    padding: 0 20px;
    font-size: 24px;
    position: relative;
    z-index: 1;
}

/* ===== SOCIAL ===== */
.contatti-social h4 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.facebook:hover {
    background: #2d4373;
}

.social-link.instagram {
    background: #E1306C;
}

.social-link.instagram:hover {
    background: #EE81A2;
}

.social-link img {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0) invert(1);
}

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

@media (max-width: 992px) {
    .contatti-row {
        gap: 40px;
    }
    
    .contatti-col-left {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .contatti-col-right {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .section-contatti {
        padding: 40px 0 60px 0;
    }
    
    .contatti-title {
        font-size: 1.5rem;
        margin-bottom: 30px !important;
    }
    
    .contatti-row {
        flex-direction: column;
        gap: 35px;
    }
    
    .contatti-col-left {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .contatti-col-right {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .contatti-col-left h3 {
        font-size: 1.2rem;
    }
    
    .contatti-col-right h3 {
        font-size: 1.2rem;
    }
    
    .form-control {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .contact-item {
        font-size: 0.95rem;
    }
    
    .contact-icon-svg {
        width: 18px;
        height: 18px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
    
    .social-link img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .section-contatti {
        padding: 30px 0 40px 0;
    }
    
    .contatti-title {
        font-size: 1.3rem;
    }
    
    .contatti-row {
        gap: 25px;
    }
    
    .contatti-col-left h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .contatti-col-right h3 {
        font-size: 1.1rem;
    }
    
    .contatti-info p {
        font-size: 0.9rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .contact-icon-svg {
        width: 16px;
        height: 16px;
    }
    
    .contatti-orari {
        padding: 14px 16px;
    }
    
    .contatti-orari p {
        font-size: 0.85rem !important;
    }
    
    .contatti-separator {
        margin: 20px 0 15px 0;
    }
    
    .contatti-separator .separator-icon {
        font-size: 20px;
        padding: 0 15px;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
    }
    
    .social-link img {
        width: 18px;
        height: 18px;
    }
}
/* ============================================ */
/* FOOTER CON STRISCIA SUPERIORE (pseudo-element) */
/* ============================================ */
.footer {
    background: #104C8A;
    color: #b0b0c0;
    padding: 40px 0 30px 0;
    margin: 0;
    position: relative;
    /* La striscia sarà sopra il footer, sporgente verso l'alto */
}

/* Striscia decorativa sopra il footer (come pseudo-elemento) */
.footer::before {
    content: '';
    position: absolute;
    top: -13px; /* Altezza della striscia (18px) */
    left: 0;
    right: 0;
    height: 7px;
    background-image: url('../images/stripe.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
    opacity: 0.8;
}

.footer-text p {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-text .footer-credits {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 5px;
}

/* ===== RESPONSIVE METODO ===== */
@media (max-width: 768px) {
    .section-metodo {
        padding: 40px 0 60px 0;
    }
    .metodo-header {
        gap: 12px;
    }
    .metodo-icon {
        max-width: 80px;
    }
    .metodo-header .section-title {
        font-size: 1.5rem;
    }
    .metodo-image {
        float: none;
        display: block;
        max-width: 100%;
        margin: 0 auto 20px auto;
    }
    .metodo-text p {
        font-size: 0.95rem;
    }
    .metodo-list li {
        font-size: 0.95rem;
    }
}


/* ============================================ */
/* HERO SECTION (statica, senza animazioni)     */
/* ============================================ */
.hero {
    overflow: hidden;
    position: relative;
    min-height: 400px;
    background: #2c3e50; /* Colore di fallback */
}

/* --- Versione Desktop --- */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/slidehome1-desktop.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* --- Versione Mobile --- */
@media (max-width: 768px) {
    .hero {
        min-height: 300px;
    }
    
    .hero::before {
        background-image: url('../images/slidehome1-mobile.jpg');
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 250px;
    }
}

/* Rimuovi eventuali background-image dal .hero */
.hero {
    background-image: none !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Contenitore vuoto */
}
/* ============================================ */
/* LIGHTBOX                                     */
/* ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: default;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: #ff6b6b;
}

/* ===== RESPONSIVE LIGHTBOX ===== */
@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 32px;
    }
    
    .lightbox-image {
        max-width: 98%;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }
}
//* ============================================ */
/* METODO - WRAPPER TESTO + CALLOUT             */
/* ============================================ */
.metodo-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 25px 0;
    flex-wrap: wrap;
}

.metodo-text-left {
    flex: 1 1 35%;
    min-width: 280px;
}

.metodo-callout-right {
    flex: 0 0 auto;
    width: 60%;
    min-width: 250px;
}

/* ============================================ */
/* METODO - WRAPPER TESTO + CALLOUT A SINISTRA  */
/* ============================================ */
.metodo-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 25px 0;
    flex-wrap: wrap;
}

.metodo-callout-left {
    flex: 0 0 auto;
    width: 35%;
    min-width: 250px;
    order: 1; /* Forza il callout a sinistra */
}

.metodo-text-right {
    flex: 1 1 60%;
    min-width: 280px;
    order: 2; /* Forza il testo a destra */
}

/* ============================================ */
/* CALLOUT BOX - METODO                         */
/* ============================================ */
.callout-box {
  background: #eff7ff;
  border-left: 4px solid #84B2E1;
  padding: 25px 25px 20px 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  height: 100%;
}

.callout-box p {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.callout-box h3 {
    color: #104C8A;
}
.callout-list {
  margin: 20px 0 0 0;
  padding: 0;
  list-style: none;
}

.callout-list li {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    padding-left: 28px;
    position: relative;
    margin-bottom: 8px;
}

.callout-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #104C8A;
    font-size: 1rem;
    font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .metodo-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .metodo-callout-left {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        order: 2; /* Su mobile il callout va sotto */
    }
    
    .metodo-text-right {
        flex: 1 1 100%;
        min-width: 0;
        order: 1; /* Su mobile il testo va sopra */
    }
    
    .callout-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .callout-box {
        padding: 16px;
        border-radius: 8px;
    }
    
    .callout-box p {
        font-size: 0.9rem;
    }
    
    .callout-list li {
        font-size: 0.9rem;
        padding-left: 24px;
    }
}