/* Font faces */
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dm-sans/DMSans-Regular.woff2') format('woff2'),
         url('../fonts/dm-sans/DMSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dm-sans/DMSans-Medium.woff2') format('woff2'),
         url('../fonts/dm-sans/DMSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dm-sans/DMSans-Bold.woff2') format('woff2'),
         url('../fonts/dm-sans/DMSans-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satisfy';
    src: url('../fonts/satisfy/Satisfy-Regular.woff2') format('woff2'),
         url('../fonts/satisfy/Satisfy-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* navbar */
.navbar {
    background: linear-gradient(to bottom, rgb(18, 18, 18) 0%, rgba(0,0,0,0) 100%);
}

/* CONTACTS PAGE */
.contacts-content {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh; /* cambiato da height a min-height */
    display: flex;
    position: relative;
    max-width: 80dvw;
    margin: 0 auto;
    overflow: hidden;
}

/* Layout base a due colonne */
.contacts-left,
.contacts-right {
    flex: 1;
    height: 100dvh;
    position: relative;
    box-sizing: border-box;
    padding: 1rem;
    padding-top: 2rem;
    min-height: 0;
}

/* Colonna sinistra con immagine */
.contacts-left {
    display: flex; 
    flex-direction: column;
    overflow: visible; /* Modificato da hidden a visible */
    position: sticky; /* Cambiato da relative a sticky */
    top: 0; /* Aggiunto per sticky positioning */
}

.contact-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    flex: 1; 
    min-height: 0; 
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* rimosso position: absolute */
}

/* Colonna destra con contenuti */
.contacts-right {
    overscroll-behavior: contain;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch; /* Per iOS */
}

/* Stili sezioni */
.contact-section,
.hours-section,
.map-section {
    background-color: #252525;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    color: #ffffff; /* Aumentiamo il contrasto */
    font-family: 'DM Sans', sans-serif;
    line-height: 1.375;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #e7e5e4;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    font-weight: 400;
    min-height: 44px; /* Per una migliore accessibilità touch */
}

.contact-method:hover {
    color: #d2b758;
}

.contact-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

.contact-label {
    font-size: 1.2rem;
}



/* Stili sezioni e titoli */
.section-title {
    margin-top: 0;
    margin-bottom: 2rem;
    line-height: 1.25;
    font-weight: 600;
    font-size: 2.8em;
    font-family: 'Satisfy', sans-serif;
    color: #d2b758;
    text-align: center;
}

.store-hours {
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.5;
}

.address {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

/* Media Queries */
@media (max-width: 1440px) {
    .section-title {
        font-size: 2.5em;
    }

    .contacts-content {
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .section-title {
        font-size: 2.2em;
    }
    .contact-method,
    .store-hours,
    .address {
        font-size: 1.1rem;
    }

    
}

@media (max-width: 767px) {
    .contacts-content {
        flex-direction: column;
        max-width: 100%;
        height: 100dvh;
    }

    .contacts-left {
        height: 40dvh; /* Cambiato da 50vh a 40vh */
        flex: none;
        padding-top: 1rem;
        position: relative; /* Torniamo a relative per il mobile */
        min-height: 0;
    }

    .contact-image-container {
        border-radius: 8px;
    }

    .contacts-right {
        height: calc(100dvh - 40dvh);
        min-height: 0;
        padding-top: 0;
    }

    .contacts-right-scroll {
        height: 100%;
        display: flex;
        flex-direction: row; /* Cambia direzione a orizzontale */
        overflow-x: auto; /* Scroll orizzontale */
        overflow-y: hidden; /* Disable vertical scroll */
        scroll-snap-type: x mandatory; /* Snap alle sezioni */
    }

    /* Stile per le sezioni nel layout mobile */
    .contact-section,
    .hours-section,
    .map-section {
        
        margin-bottom: 1rem; /* Rimuove il margine inferiore */
        scroll-snap-align: center; /* Snap point */
        flex-shrink: 0; /* Impedisce il restringimento */
    }    
    
    .contacts-right-scroll::-webkit-scrollbar {
        display: none;
    }

    /* Aggiusta la mappa per il nuovo layout */
    .map-container {
        height: 50dvh; /* Lascia spazio per il titolo e l'indirizzo */
    }

    .map-container iframe {
        height: 100%;
    }
}

/* Stili per skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #d2b758;
    color: black;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Media query per preferenze di movimento ridotto */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Stile per il link del telefono */
.phone-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #d2b758;
}

