/* Main stylesheet con il nuovo schema di colori PMS */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #d6c2a7; /* Nuovo rosa più beige - prima era #e29a86 */
    color: #fff;
    line-height: 1.6;
    font-weight: 300;
    overflow-y: auto;
}

/* In your CSS file */
.service-category {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    letter-spacing: 2px;
    color: #371e10;
    font-weight: 400; /* Bebas Neue is already bold by nature */
}

h1, h2, .page-title, .main-title {
    font-family: 'Playfair Display', serif;
}

body {
    font-family: 'Lato', sans-serif; /* Keep your current body font */
}

/* Speciale per la home page: no scrolling solo su desktop*/
@media screen and (min-width: 769px) {
    body.home-page {
        overflow: hidden !important;
    }
}


/* Reset globale per l'overflow */
.reset-overflow {
    overflow: auto !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

img.grayscale {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

img.grayscale:hover {
    filter: grayscale(80%);
}

.container {
    width: 100%;
    /* Rimosso max-width per consentire la larghezza completa */
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header,
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: #d6c2a7; /* Nuovo rosa-beige */
    z-index: 10;
}

::-webkit-scrollbar-track {
    background: #d6c2a7; /* Nuovo rosa-beige */
}

.logo a {
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 400;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #371e10; /* Bordeaux scuro - approssimazione di PMS 490/491 */
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.mobile-nav-content {
    text-align: center;
    width: 100%;
}

.main-menu {
    margin-bottom: 40px;
}

.main-menu li {
    margin-bottom: 20px;
}

.main-menu a {
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: 2px;
    font-weight: 300;
}

.main-menu a:hover {
    opacity: 0.7;
}

.has-submenu {
    position: relative;
}

.submenu {
    margin-top: 10px;
    display: none;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    margin-bottom: 10px;
}

.submenu a {
    font-size: 1.4rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    font-size: 1.5rem;
    color: #fff;
}

.social-icons a:hover {
    opacity: 0.7;
}

/* New Home Layout */
.new-home-layout {
    padding: 20px 0 0;
    /* Rimuovi il padding bottom */
    max-width: 1600px;
    margin: 0 auto;
    height: calc(100vh - 100px);
    /* Altezza calcolata */
    display: flex;
    flex-direction: column;
}

.service-categories {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
}

.service-category {
    font-size: 2.5rem;
    color: #371e10;
    font-weight: 700; /* Increased from 400 to make it bolder */
    text-transform: uppercase; /* Ensures text is all uppercase */
}

.home-page .service-categories {
    position: absolute;
    /* Enable positioning for children */
}

.home-page .service-categories .get-scouted-btn {
    position: absolute;
    right: -100px;
    /* Position to the right */
    top: 50%;
    /* Center vertically */
    transform: translateY(-50%);
    /* Perfect vertical alignment */
}

/* Hide the original button if it appears elsewhere */
.home-page .new-home-layout>.get-scouted-btn {
    display: none;
}

/* Footer styles for homepage */
.home-page footer {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 50; /* Ensure it appears above other elements */
}

.home-page .footer-content {
    margin-bottom: 5px;
}

.home-page .footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.home-page .footer-nav a {
    font-size: 0.9rem;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.home-page .footer-nav a:hover {
    opacity: 1;
}

.home-page .copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

.main-title {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 30px;
}

.main-title h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: #ffffff;
}

.home-page .model-showcase {
    position: fixed;
    top: 0;
    left: 50px;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.home-page .slide,
.home-page .slide.active {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
}


.model-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.home-page .model-image {
    height: 100vh;
    margin: 0;
    padding: 0;
}

.home-page .model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure content elements stay on top */
.home-page .service-categories,
.home-page .main-title {
    position: relative;
    z-index: 5;
}

/* Make sure the sidebar stays on top */
.custom-sidebar {
    z-index: 20;
}

/* Make sure the hover categories still work */
.hover-categories {
    z-index: 30 !important;
}

/* Add a container for main content to keep it visible */
.home-page .main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    z-index: 5;
    position: relative;
}

.home-page .new-home-layout {
    padding: 20px 0 0;
    /* Rimuovi padding in basso */
    margin-bottom: 0;
    flex: 1;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    /* Assicurati che occupi tutto lo spazio */
    justify-content: space-between;
    gap: 20px;
}

.slide.active {
    display: flex;
    height: 100%;
}

.model-image {
    position: relative;
    width: 50%;
    height: 100%;
    /* Imposta l'altezza al 100% del contenitore */
    overflow: hidden;
    /* Cambiato da visible a hidden */
    display: flex;
    flex-direction: column;
}

.model-image img {
    width: 100%;
    height: 100%;
    /* Imposta l'altezza al 100% */
    object-fit: cover;
    /* Mantiene le proporzioni riempiendo lo spazio */
    flex-grow: 1;
    /* Permette all'immagine di crescere */
    margin: 0;
    padding: 0;
}

.model-image img {
    aspect-ratio: auto;
    /* Rimuove il vincolo di aspect-ratio */
}

/* IMPORTANTE: Nascondi completamente le categorie normali */
.model-categories {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    z-index: -1 !important;
}

/* Nascondi anche i singoli elementi categoria */
.category {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Stile per categorie hover */
.hover-categories {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(110, 41, 32, 0.3) !important;
    z-index: 999 !important;
    /* Numero alto per essere sicuri che sia sopra tutto */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;

    /* Inizialmente nascoste */
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease !important;
}

/* Mostra le categorie SOLO al passaggio del mouse */
.model-image:hover .hover-categories {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Stile per il titolo DONNE/UOMINI */
.category-title {
    font-size: 2.5rem !important;
    color: white !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    font-weight: 300 !important;
    letter-spacing: 3px !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* Linea sotto il titolo */
.category-title:after {
    content: '' !important;
    display: block !important;
    width: 50px !important;
    height: 1px !important;
    background-color: white !important;
    margin: 10px auto 0 !important;
}

/* Stile per la lista di categorie */
.category-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
    margin-top: 20px !important;
}

/* Stile per ogni categoria */
.hover-category {
    font-size: 1.3rem !important;
    color: white !important;
    text-align: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Effetto hover sulle categorie */
.hover-category:hover {
    transform: translateY(-3px) !important;
    color: #fff !important;
}

/* Home Layout (vecchio stile, mantenuto per compatibilità) */
.home-layout {
    padding: 50px 0;
    display: none;
    /* Nascosto nella nuova versione */
}

.category-blocks {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.category-block {
    margin-bottom: 20px;
}

.category-header {
    margin-bottom: 20px;
    text-align: center;
}

.category-header h2 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.subcategories {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.subcategories a {
    font-size: 1rem;
    letter-spacing: 1px;
    color: #fff;
    position: relative;
}

.subcategories a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.subcategories a:hover:after {
    width: 100%;
}

.category-images {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.category-image {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 2/3;
}

/* Category Pages */
.category-page {
    padding: 50px 0;
}

.page-title {
    font-size: 4rem;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 2px;
}

.category-nav {
    margin-bottom: 50px;
}

.category-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.category-nav a {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    padding: 5px 10px;
    position: relative;
}

.category-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.category-nav a:hover:after,
.category-nav a.active:after {
    width: 100%;
}

.category-description {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.model-card {
    position: relative;
    overflow: hidden;
}

.model-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.model-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.model-card:hover .model-info {
    transform: translateY(0);
}

.model-info h3 {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Model Detail Page */
.model-detail-page {
    padding: 50px 0;
}

.model-header {
    text-align: center;
    margin-bottom: 50px;
}

.model-name {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.model-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.stat {
    font-size: 1rem;
    letter-spacing: 1px;
    align-items: center;
    display: flex;
}

.model-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

/* Layout per schermi grandi: 2 righe da 3 foto ciascuna */
@media screen and (min-width: 1200px) {
    .model-gallery {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto 30px;
        gap: 30px;
        padding: 0 40px;
    }
    
    .gallery-image {
        aspect-ratio: 2/3;
    }
}

/* Layout per schermi medi: 2 colonne */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .model-gallery {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto 30px;
        gap: 25px;
        padding: 0 20px;
    }
}

.gallery-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image:hover img {
    transform: scale(1.05);
}

.model-back-link {
    text-align: center;
    margin-top: 30px;
}

.model-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid #fff;
    transition: all 0.3s ease;
}

.model-back-link a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Get Scouted Page */
.get-scouted-page {
    padding: 50px 0;
}

.scouted-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.scouted-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    margin-bottom: 5px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

input,
textarea,
select {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #fff;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.hint {
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.7;
}

.consent {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.submit-btn {
    padding: 12px 30px;
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.error {
    border-color: #ff6b6b !important;
}

.success-message {
    padding: 15px;
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #fff;
    margin-top: 20px;
}

/* Contact Page */
.contact-page {
    padding: 50px 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.info-group {
    margin-bottom: 30px;
}

.info-group h3 {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 400;
}

.info-group p {
    line-height: 1.8;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Page Transitions */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #371e10;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: #371e10;
}

/* Layout specifico per la home page */
.home-page .main-content {
    height: 100vh;
    overflow: hidden;
}

.home-page .new-home-layout {
    height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
}

.home-page .service-categories,
.home-page .main-title {
    margin-bottom: 10px;
}

.home-page .service-categories {
    margin-top: 40px;
}

.home-page .main-title {
    margin-top: 20px;
}

.home-page .main-title h1 {
    font-size: 2.5rem;
}

.home-page .model-showcase {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

/* Media query */
@media screen and (max-width: 1024px) {
    .slide {
        flex-direction: column;
        align-items: center;
    }

    .model-image {
        width: 100%;
        max-width: 600px;
        margin-bottom: 30px;
    }

    .main-title h1 {
        font-size: 3rem;
    }

    .category-images {
        flex-direction: column;
        align-items: center;
    }

    .category-image {
        max-width: 100%;
    }

    .form-row {
        flex-direction: column;
    }
}



@media screen and (max-width: 576px) {
    .main-title h1 {
        font-size: 2rem;
    }

    .service-category {
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .category-header h2 {
        font-size: 2rem;
    }

    .model-name {
        font-size: 2.5rem;
    }

    .models-grid {
        grid-template-columns: 1fr;
    }
}

/* Aggiungi questa regola per assicurare la corretta visualizzazione su schermi bassi */
@media screen and (max-height: 700px) {
    .home-page .main-title h1 {
        font-size: 2rem;
    }

    .home-page .category-title {
        font-size: 2rem !important;
    }

    .home-page .hover-category {
        font-size: 1.1rem !important;
    }

    .home-page .model-image img {
        aspect-ratio: 1/1.1;
    }
}

/* CSS per rendere il testo più spesso al passaggio del mouse */

/* Stile base delle categorie */
.hover-category {
    font-size: 1.3rem !important;
    color: white !important;
    text-align: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    display: inline-block !important;
    margin-bottom: 10px !important;
    font-weight: 300 !important;
    /* Testo leggero di default */
    transition: font-weight 0.2s ease !important;
}

/* Rimuovi qualsiasi linea o effetto precedente */
.hover-category:after,
.hover-category:hover:after {
    display: none !important;
}

/* Effetto di grassetto al passaggio del mouse */
.hover-category:hover {
    transform: none !important;
    /* Rimuove eventuali trasformazioni precedenti */
    font-weight: 700 !important;
    /* Testo in grassetto (bold) */
    /* In alternativa puoi usare font-weight: bold !important; */
}

/* Stile per il titolo principale (non cambia) */
.category-title {
    font-size: 2.5rem !important;
    color: white !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    font-weight: 300 !important;
    letter-spacing: 3px !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
    display: inline-block !important;
}

/* Linea sotto il titolo principale */
.category-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 60px;
    height: 2px;
    background-color: #d6c2a7; /* Nuovo rosa-beige */
}

/* Assicura il corretto centramento */
.category-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
    margin-top: 20px !important;
}

/* Aggiungi questo codice alla fine del file styles.css */

/* Effetto grayscale per le immagini dei modelli */
img.grayscale {
    filter: grayscale(100%);
    transition: filter 0.5s ease-in-out;
}

/* Rimuovi completamente il filtro grayscale al passaggio del mouse */
img.grayscale:hover,
.model-card:hover img.grayscale,
.model-image:hover img.grayscale,
.gallery-image:hover img.grayscale {
    filter: grayscale(0%);
}

/* Assicurati che la transizione sia fluida anche per le card dei modelli */
.model-card,
.model-image,
.gallery-image {
    overflow: hidden;
}

.model-card img,
.model-image img,
.gallery-image img {
    transition: filter 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Aggiungi un leggero effetto zoom per migliorare l'interazione */
.model-card:hover img,
.model-image:hover img,
.gallery-image:hover img {
    transform: scale(1.03);
}



/* Adattamento per tablet e dispositivi più piccoli */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .slide {
        flex-direction: row;
    }

    .model-image {
        height: 500px;
    }
}



/* Miglioramenti per le pagine legali (privacy, terms, cookies) */

/* Contenitore principale */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Titolo principale */
.legal-page .page-title {
    font-size: 3rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.legal-page .page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
}

/* Data ultimo aggiornamento */
.legal-page .last-updated {
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(110, 41, 32, 0.2);
    padding: 8px 15px;
    display: inline-block;
    border-radius: 4px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Contenuto principale */
.legal-content {
    line-height: 1.8;
    font-weight: 300;
}

/* Titoli di sezione */
.legal-content h2 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    position: relative;
}

.legal-content h2:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 60px;
    height: 2px;
    background-color: #d6c2a7;
}

/* Sottotitoli */
.legal-content h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #fff;
}

/* Paragrafi */
.legal-content p {
    margin-bottom: 20px;
    text-align: justify;
}

/* Liste */
.legal-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.legal-content li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #d6c2a7;
}

/* Link */
.legal-content a {
    color: #d6c2a7;
    text-decoration: none;
    border-bottom: 1px dotted #d6c2a7;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Effetti di animazione */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-content h2 {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.legal-content h2:nth-child(1) {
    animation-delay: 0.1s;
}

.legal-content h2:nth-child(3) {
    animation-delay: 0.2s;
}

.legal-content h2:nth-child(5) {
    animation-delay: 0.3s;
}

.legal-content h2:nth-child(7) {
    animation-delay: 0.4s;
}

.legal-content h2:nth-child(9) {
    animation-delay: 0.5s;
}

.legal-content h2:nth-child(11) {
    animation-delay: 0.6s;
}

.legal-content h2:nth-child(13) {
    animation-delay: 0.7s;
}

.legal-content h2:nth-child(15) {
    animation-delay: 0.8s;
}

/* Nascondi i pulsanti quando il menu mobile è attivo */
.mobile-nav-overlay.active ~ .top-buttons,
.mobile-nav-overlay.active ~ main .top-buttons,
.mobile-nav-overlay.active ~ .main-content .top-buttons {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-nav-overlay.active ~ #language-toggle-space,
.mobile-nav-overlay.active ~ main #language-toggle-space,
.mobile-nav-overlay.active ~ .main-content #language-toggle-space {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Nascondi anche il pulsante lingua quando è fixed */
.mobile-nav-overlay.active ~ * .language-btn,
body:has(.mobile-nav-overlay.active) .language-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Selettore più generico per dispositivi che non supportano :has() */
.mobile-nav-overlay.active {
    z-index: 9999;
}

.mobile-nav-overlay.active + * .top-buttons,
.mobile-nav-overlay.active + main .top-buttons,
.mobile-nav-overlay.active + .main-content .top-buttons,
.mobile-nav-overlay.active + * #language-toggle-space,
.mobile-nav-overlay.active + main #language-toggle-space,
.mobile-nav-overlay.active + .main-content #language-toggle-space {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}