/* 
   Leone Legnami - Stili principali
   Sito statico 
*/

/* Importazione font */
@import url('https://fonts.googleapis.com/css2?family=Sanchez&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200&display=swap');

/* Variabili CSS */
:root {
    --primary-color: #133B55; /* Blu principale */
    --primary-color-transparent: rgba(19, 59, 85, 0.8); /* Blu trasparente */
    --secondary-color: #b68d56; /* Marrone legno chiaro */
    --text-color: #333333;
    --light-color: #ffffff;
    --footer-color: #133B55;
    --header-height: 80px;
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sanchez', serif;
}

.main-nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Bold */
}

html, body {
    height: 100%;
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

/* Layout principale */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
}

.content-wrapper {
    flex: 1;
}

/* Struttura dell'header */
.top-bar, header.transparent-header {
    width: 100%;
    position: relative;
    z-index: 100;
}

/* Top Bar - Banda blu superiore */
.top-bar {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0; 
    height: 32px; 
    overflow: visible;
    box-sizing: border-box;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    box-sizing: border-box;
}

.contacts-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    font-weight: bold;
    height: 32px;
}

.contact-item {
    font-size: 13px;
    line-height: 32px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.company-description {
    font-size: 13px;
    line-height: 32px;
    margin: 0;
    padding: 0;
    height: 32px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-weight: bold;
}

/* Stile rimosso perché non più necessario */

.contact-item i {
    margin-right: 5px;
    font-size: 12px;
}

/* Header trasparente */
header.transparent-header {
    background-color: rgba(0, 56, 106, 0.8); /* Ripristino della trasparenza blu */
    position: relative;
    height: 80px;
    width: 100%;
    margin-bottom: 0; /* Rimosso il margin negativo */
    border-bottom: 2px solid var(--secondary-color); /* Filetto marrone chiaro */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    max-height: 60px;
    width: auto;
    margin-top: 5px;
    border-radius: 4px;
}

/* Navigazione */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav li a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
}

.main-nav li a:hover {
    color: var(--secondary-color);
}

.main-nav li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav li a:hover:after {
    width: 100%;
}

.main-nav li.active a {
    color: var(--secondary-color);
}

.main-nav li.active a:after {
    width: 100%;
}

/* Hamburger menu per mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--light-color);
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Separatore - rimosso perché sostituito dal bordo nell'header */
.separator {
    display: none; /* Nascosto perché il filetto è ora nell'header */
}

/* Slider */
.slider-container {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    position: relative;
    margin-top: -82px; /* Sposta lo slider verso l'alto per coprire l'header e attaccarlo alla top bar */
    z-index: 90; /* Sotto l'header ma sopra altri elementi */
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 1.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide-content {
    position: absolute;
    bottom: 30%;
    left: 10%;
    color: var(--light-color);
    max-width: 600px;
    background-color: var(--primary-color-transparent);
    padding: 20px 30px;
    border-left: 5px solid var(--secondary-color);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.slide-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.slide-btn:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.slider-nav button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-nav button.active {
    background-color: var(--secondary-color);
}

/* Features Bar - Barra dei punti di forza */
.features-bar {
    background-color: var(--primary-color); /* Blu #133B55 */
    color: var(--light-color);
    padding: 30px 0;
    width: 100%;
    margin-top: -1px; /* Attacca la barra direttamente allo slider */
    position: relative;
    z-index: 80; /* Sotto lo slider che ha z-index 90 */
}

.features-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
    min-width: 300px;
    margin-bottom: 20px;
}

.feature-icon {
    flex: 0 0 70px;
    margin-right: 20px;
}

.feature-icon img {
    width: 60px;
    height: auto;
    filter: brightness(0) invert(1); /* Rende le icone bianche */
}

.feature-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.feature-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Info Blocks - Chi Siamo e I Nostri Servizi */
.info-blocks {
    padding: 60px 0;
    background-color: var(--light-color);
}

.info-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.info-block {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.info-block h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.info-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 4px;
    width: 402px;
    height: 93px;
    margin: 0 auto 20px;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.info-image img:hover {
    transform: scale(1.05);
}

.info-description {
    margin: 15px auto;
    max-width: 402px;
    line-height: 1.6;
    text-align: left;
}

.info-description p {
    color: #333;
    font-size: 1rem;
    font-weight: bold;
    text-align: justify;
}

.info-button-wrapper {
    margin-top: 20px;
}

.info-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-button:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Filetto separatore marrone */
.separator-line {
    height: 2px;
    background-color: var(--secondary-color);
    width: 80%;
    max-width: 900px;
    margin: 40px auto;
}

/* Sezione I NOSTRI LAVORI */
.our-works {
    padding: 20px 0 60px;
    background-color: var(--light-color);
}

.our-works h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

.our-works-content {
    max-width: 1100px;
    margin: 0 auto 30px;
}

.text-button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.our-works-text {
    flex: 1;
    text-align: left;
    min-width: 300px;
}

.our-works-text p {
    line-height: 1.6;
    font-size: 1.1rem;
    margin: 0;
}

.button-wrapper {
    white-space: nowrap;
}

/* Galleria Boxes */
.gallery-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-box {
    width: 270px;
    height: 183px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.15);
}

.gallery-link {
    display: block;
    height: 100%;
    width: 100%;
}

.gallery-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.gallery-box:hover img {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Stili per Fancybox */
.fancybox__container {
    --fancybox-bg: rgba(24, 24, 27, 0.95);
}

.fancybox__toolbar {
    --fancybox-accent-color: var(--primary-color);
}

.fancybox__nav {
    --fancybox-accent-color: var(--primary-color);
}

/* Main Content */
.main-content {
    padding: 60px 30px;
}

/* Section Styling */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.separator-small {
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 20px auto;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Services Grid */
.services-section {
    padding-top: 60px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    flex: 0 1 calc(33.333% - 30px);
    min-width: 280px;
    text-align: center;
    margin-bottom: 40px;
}

.service-item a {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-item a:hover {
    transform: translateY(-5px);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    font-size: 1.4rem;
    margin: 15px 0 10px;
    color: var(--primary-color);
}

.service-item p {
    color: var(--text-color);
    line-height: 1.5;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    padding: 10px 0;
    color: white;
    font-size: 14px;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info span {
    margin-left: 15px;
}

.contact-info i {
    margin-right: 5px;
}

/* Header */
header {
    background-color: transparent;
    padding: 10px 0;
    position: relative;
    z-index: 1000;
    margin-bottom: -40px; /* Sovrapposizione di 4cm con lo slider */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: transparent; /* Rimosso lo sfondo bianco */
    border-radius: 0 0 8px 8px;
    box-shadow: none; /* Rimossa l'ombra */
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 0;
    margin-top: 60px;
}

/* Nuovo stile footer con 3 sezioni orizzontali */
.footer-sections {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    flex-wrap: wrap;
    position: relative;
}

.footer-section {
    padding: 15px 30px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    margin: 10px 0;
    position: relative;
}

/* Separatore verticale tra le sezioni */
.footer-section:not(:last-child):after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Stile specifico per la sezione nome azienda */
#company-name {
    flex: 1;
}

.footer-title {
    font-size: 32px;
    font-family: 'Sanchez', serif;
    margin: 0;
    font-weight: bold;
    color: var(--secondary-color);
    letter-spacing: 1px;
    line-height: 1.2;
}

/* Stile per la sezione indirizzo */
#address {
    flex: 1;
}

#address p {
    margin: 5px 0;
    line-height: 1.6;
    font-size: 16px;
}

/* Stile per la sezione telefono */
#phone {
    flex: 0.8;
}

#phone p {
    margin: 5px 0;
    line-height: 1.6;
    font-size: 16px;
}

/* Stile per la sezione web */
#web {
    flex: 1;
}

#web p {
    margin: 5px 0;
    line-height: 1.6;
    font-size: 16px;
}

.footer-section p {
    margin: 5px 0;
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stile per le icone nel footer */
.footer-icon {
    width: 20px;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
}

/* Stilizzazione dei link */
.footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    font-size: 14px;
}

/* Media query per responsività */
@media (max-width: 992px) {
    .footer-sections {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section {
        width: 100%;
        max-width: 400px;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .footer-section:not(:last-child):after {
        display: none; /* Rimuove i separatori verticali su mobile */
    }
    
    #company-name, #address, #phone, #web {
        flex: none;
    }
}

/* Media query per dispositivi piccoli */
@media (max-width: 576px) {
    .footer-section {
        max-width: 90%;
        padding: 10px;
    }
    
    .footer-title {
        font-size: 28px;
    }
}

/* Stili pagina Chi Siamo */
.page-header {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
}

.section-title {
    font-family: 'Sanchez', serif;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}


.about-image {
    margin: 20px auto 30px;
    width: 1004px;
    height: 167px;
    overflow: hidden;
    max-width: 100%;
}

.full-width-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-subtitle {
    text-align: center;
    margin: 20px 0 40px;
}

.about-subtitle h2 {
    font-size: 24px;
    color: var(--secondary-color);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px 60px;
}

.about-text {
    flex: 1;
    padding-right: 40px;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

.services-box {
    flex: 0 0 340px;
    background-color: var(--primary-color);
    border-radius: 8px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.service-item {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.service-icon {
    flex: 0 0 50px;
    font-size: 24px;
    color: var(--secondary-color);
}

.service-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff; /* Testo bianco per renderlo leggibile sul background blu */
}

/* Slider Chi Siamo */
.about-slider-section {
    margin: 40px 0 60px;
    padding: 0 20px;
}

.slider-title {
    text-align: center;
    font-family: 'Sanchez', serif;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.slider-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
}

.about-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.about-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto;
    height: 500px;
}

.slides-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 5;
}

.slider-arrow {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.slider-arrow:hover {
    background-color: var(--secondary-color);
    color: white;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

/* Responsività per la pagina Chi Siamo */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .services-box {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Stili pagina Progetti */
.progetti-image {
    margin: 20px auto 30px;
    width: 1004px;
    height: 167px;
    overflow: hidden;
    max-width: 100%;
}

.progetti-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
    gap: 40px;
}

.column {
    flex: 1;
    min-width: 300px;
}

.left-column {
    padding-right: 20px;
    border-right: 1px solid rgba(19, 59, 85, 0.2);
}

.right-column {
    padding-left: 20px;
}

.column p {
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

.progetti-showcase {
    margin: 40px auto 60px;
    max-width: 1000px;
    padding: 0 20px;
}

.showcase-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsività per pagina Progetti */
@media (max-width: 992px) {
    .progetti-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .left-column {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(19, 59, 85, 0.2);
        padding-bottom: 20px;
    }
    
    .right-column {
        padding-left: 0;
        padding-top: 20px;
    }
}

/* Stili pagina Lavorazioni */
.services-section {
    margin: 30px auto 50px;
    padding: 0 20px;
    max-width: 1200px;
}

.services-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.services-text {
    flex: 1;
    min-width: 300px;
}

.services-subtitle {
    font-family: 'Sanchez', serif;
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.services-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(19, 59, 85, 0.1);
    font-size: 16px;
    position: relative;
    padding-left: 24px;
}

.services-list li:before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.services-image {
    flex: 0 0 400px;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider lavorazioni e prodotti */
.lavorazioni-slider-section, .prodotti-slider-section {
    margin: 0 auto;
    padding: 50px 20px;
    max-width: 1200px;
    clear: both;
}

.lavorazioni-slider-container, .prodotti-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 500px;
}

/* Sezione prodotti */
.products-section {
    margin: 60px auto 30px;
    padding: 0 20px;
    max-width: 1200px;
}

/* Stili per la pagina Contatti */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.contact-info-block, 
.contact-form-block {
    margin-bottom: 40px;
    flex: 1;
}

.section-subtitle {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary-color);
    padding-left: 0;
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
    padding: 0;
    width: 100%;
    max-width: 550px;
    text-align: left;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    width: 100%;
    position: relative;
    padding-left: 40px;
    margin: 0;
    box-sizing: border-box;
}

.contact-info-item i {
    color: var(--secondary-color);
    font-size: 24px;
    position: absolute;
    left: 0;
    top: 3px;
}

.contact-text {
    line-height: 1.6;
    font-size: 18px;
    width: 100%;
    box-sizing: border-box;
}

.contact-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Form di contatto */
.contact-form {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.captcha-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-question {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

#refresh-captcha {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

#refresh-captcha:hover {
    color: var(--secondary-color);
}

.captcha-box input {
    width: 80px;
    text-align: center;
}

.captcha-info {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.privacy-check input {
    width: auto;
    margin-top: 5px;
}

.privacy-check label {
    font-size: 14px;
}

.form-submit {
    text-align: right;
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

/* Mappa */
.contact-map-container {
    margin-top: 20px;
    margin-bottom: 40px;
}

.contact-map {
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive per pagina contatti */
@media (min-width: 768px) {
    .contact-content {
        flex-direction: row;
        gap: 40px;
        align-items: flex-start;
    }

    .contact-info-block {
        flex: 0 0 40%;
        padding-right: 20px;
    }

    .contact-form-block {
        flex: 0 0 60%;
    }
}

/* Stile container principale */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header {
    margin: 20px 0 40px;
    width: 100%;
    text-align: left;
}

.section-title {
    font-family: 'Sanchez', serif;
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 0;
    border-bottom: 4px solid var(--secondary-color);
    padding-bottom: 12px;
    display: inline-block;
    text-align: left;
}

.section-subtitle {
    text-align: left;
    font-family: 'Sanchez', serif;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: inline-block;
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 40px;
    margin-bottom: 40px;
}

.product-category {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: rgba(19, 59, 85, 0.05);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.category-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Sanchez', serif;
    font-size: 20px;
}

.product-category p {
    line-height: 1.8;
}

/* Responsività per pagina Lavorazioni */
@media (max-width: 992px) {
    .services-content {
        flex-direction: column;
    }
    
    .services-image {
        flex: 0 0 300px;
        height: 300px;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .lavorazioni-slider-container,
    .prodotti-slider-container {
        height: 400px;
    }
    
    .product-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .product-category {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .lavorazioni-slider-container,
    .prodotti-slider-container {
        height: 300px;
    }
}

/* Stili pagina Case in Legno */
.wooden-house-image {
    margin: 20px auto 30px;
    width: 1004px;
    overflow: hidden;
    max-width: 100%;
}

.wooden-house-image img {
    width: 1004px;
    max-width: 100%;
}

.gallery-sections {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
    gap: 20px;
}

.gallery-section {
    flex: 1;
    min-width: 300px;
    margin-bottom: 40px;
    padding: 0;
}

.gallery-title {
    text-align: left;
    font-family: 'Sanchez', serif;
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding: 10px 0 14px;
    position: relative;
    border-bottom: 5px solid var(--secondary-color);
    width: 300px;
    max-width: 100%;
}

.gallery-container {
    margin-top: 35px;
    margin-left: 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    width: 270px;
    height: 183px;
    margin-bottom: 15px;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.photo-card {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    border: 5px solid #ffffff;
    box-sizing: border-box;
}

.gallery-item:hover .photo-card {
    transform: scale(1.05);
}

/* Responsività per pagina Case in Legno */
@media (max-width: 767px) {
    .wooden-house-image {
        height: auto;
    }
    
    .gallery-title {
        width: 100%;
        max-width: 100%;
    }
}

/* Media Query per responsive design */
@media screen and (max-width: 992px) {
    .header-container {
        padding: 0 20px;
    }
    
    .main-nav ul {
        gap: 20px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--primary-color);
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav li a {
        padding: 15px 0;
        display: block;
    }
    
    .slide-content {
        left: 5%;
        bottom: 20%;
        max-width: 90%;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .header-container {
        padding: 0 15px;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    .slider-container {
        height: 50vh;
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .footer-col {
        flex: 100%;
    }
}
