/* Video Hero Section - Sostituisce la hero-section esistente */
.video-hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /*background: #000;*/
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Video overlay per la patinatura scura 
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}
*/

/* Screen reader only content */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Contenuto hero sopra il video */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    max-width: 1000px;
    animation: fadeInUp 1.5s ease-out;
}

.hero-content h1 {
    font-family: 'Palatino', serif;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.hero-main-text {
    display: block;
    font-size: 3.5rem;
    margin-bottom: 10px;
    margin-top:100px;
}

.hero-sub-text {
    display: block;
    font-size: 2.8rem;
    color: var(--primary);
    /*-webkit-text-stroke: 1px black;*/
    text-shadow: 0 0 2px var(--white);
}

.hero-description {
    font-family: 'Palatino', serif;
    font-size: 1.6rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

.hero-cta {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover,
.hero-cta:focus {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
    outline: none;
    border: 2px solid var(--white);
}

/* Animazione di entrata per il testo */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback per browser che non supportano i video */
.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/images/handshake.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Nasconde il fallback quando il video è caricato */
.video-background video:not([data-error]) + .video-fallback {
    display: none;
}

/* Latest Listings Section */
.latest-listings {
    padding: 80px 0;
    background-color: var(--white);
}

.latest-listings h2 {
    color: var(--secondary);
    font-weight: 600;
}

.latest-listings h2 span {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-dark);
}

.listings-container {
    min-height: 200px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--background);
}

.services-section h2 {
    color: var(--secondary);
    font-weight: 600;
}

.services-section h2 span {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-dark);
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 20px 20px 15px;
    line-height: 1.3;
}

.service-description {
    color: var(--secondary-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 20px 20px;
    flex-grow: 1;
}

.service-button {
    display: inline-block;
    background-color: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
    padding: 12px 25px;
    margin: 0 20px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.service-button:hover {
    background-color: var(--primary);
    color: var(--white);
}


/* Studio Section */
.studio-section {
    padding: 80px 0;
    background-color: var(--white);
}

.subsection-title {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--secondary);
}

.studio-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-light);
}

.studio-info strong {
    color: var(--secondary);
}

.map-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.map-header h4 {
    margin-bottom: 5px;
    color: var(--secondary);
}

.map-header p {
    color: var(--secondary-light);
    margin-bottom: 10px;
}

.map-link {
    color: var(--primary-dark);
    font-weight: 500;
    display: inline-block;
    margin-top: 5px;
}

.map-container {
    width: 100%;
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background-color: var(--background);
}

.team-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-image img {
    border: 5px solid var(--background);
}

.team-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 5px;
}

.team-role {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.team-description {
    color: var(--secondary-light);
    margin-bottom: 20px;
}

.team-contact a {
    font-size: 1.2rem;
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

.team-contact a:hover {
    color: var(--primary);
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background-color: var(--white);
}

.value-card {
    background-color: var(--background);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.value-title {
    margin-bottom: 15px;
    color: var(--secondary);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--background);
}

.testimonial-card {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-stars {
    color: gold;
}

.testimonial-text {
    font-style: italic;
    color: var(--secondary);
}

.testimonial-author {
    color: var(--secondary);
}

/* Contact CTA Section */
.contact-cta-section {
    padding: 80px 0;
}

.contact-cta-section .cta-box {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-main-text {
        font-size: 3rem;
    }

    .hero-sub-text {
        font-size: 2.4rem;
    }

    .hero-description {
        font-size: 1.4rem;
    }

    .hero-cta {
        padding: 16px 35px;
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .video-hero-section {
        min-height: 500px;
    }

    .hero-main-text {
        font-size: 2.5rem;
    }

    .hero-sub-text {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .hero-cta {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .map-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .video-hero-section {
        min-height: 450px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-main-text {
        font-size: 2.2rem;
    }

    .hero-sub-text {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .hero-cta {
        padding: 14px 25px;
        font-size: 0.95rem;
        width: auto;
        min-width: 200px;
    }

    .map-container {
        height: 350px;
    }

    .service-card {
        margin-bottom: 20px;
    }

}

@media (max-width: 576px) {
    .video-hero-section {
        min-height: 380px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-main-text {
        font-size: 1.8rem;
        line-height: 1.1;
    }

    .hero-sub-text {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .hero-description br {
        display: none; /* Rimuove break su mobile */
    }

    .hero-cta {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 180px;
        display: block;
        text-align: center;
        margin: 0 auto;
    }

    .service-image {
        height: 180px;
    }

    /* Miglior spacing per touch */
}
