:root {
    --bg-color: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --font-titoli: 'Jost', sans-serif; 
    --font-testi: 'Nunito', sans-serif;
    --font-corsivo: 'Dancing Script', cursive;
    --shadow-soft: 0 8px 30px rgba(0,0,0,0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: var(--font-testi); color: var(--text-dark) !important; background-color: var(--bg-color) !important; line-height: 1.8; overflow-x: hidden; }

/* HEADER EDITORIALE */
header { width: 100%; background: #ffffff !important; padding: 40px 5% 20px; text-align: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 5px rgba(0,0,0,0.02);}
.header-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.logo { font-family: var(--font-titoli); font-size: 46px; font-weight: 400; text-decoration: none; color: var(--text-dark) !important; margin-bottom: 25px; letter-spacing: 1px;}
nav ul { display: flex; list-style: none; gap: 30px; justify-content: center; flex-wrap: wrap; }
nav ul li a { text-decoration: none; color: var(--text-light) !important; font-size: 14px; font-family: var(--font-titoli); text-transform: none; letter-spacing: 0.5px; transition: color 0.3s; }
nav ul li a:hover, nav ul li a.active { color: var(--text-dark) !important; font-weight: bold;}

/* CAROSELLO HOME PAGE */
.carousel-container { width: 100%; height: 65vh; max-height: 600px; position: relative; overflow: hidden; background-color: #f4f4f4;}
.mySlides { display: none; width: 100%; height: 100%; }
.mySlides img { width: 100%; height: 100%; object-fit: cover; }
.fade { animation-name: fade; animation-duration: 2s; }
@keyframes fade { from {opacity: .6} to {opacity: 1} }

/* LAYOUT A COLONNE SPLIT - GRIGLIA BLINDATA */
.split-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 60px; max-width: 1300px; margin: 80px auto; padding: 0 5%; align-items: start; }
.split-left { position: sticky; top: 160px; }
.split-left h1 { font-family: var(--font-titoli); font-size: 42px; font-weight: 400; line-height: 1.2; color: var(--text-dark) !important; margin-top: 0;}
.split-right { width: 100%; }

/* STILE TESTI */
.testo-corsivo { font-family: var(--font-corsivo); font-size: 24px; color: var(--text-light) !important; line-height: 1.8; margin-bottom: 25px; }
.titolo-paragrafo { font-family: var(--font-corsivo); font-size: 26px; text-transform: uppercase; margin-bottom: 15px; margin-top: 50px; font-weight: 700; color: var(--text-dark) !important;}
.subtitle-home { font-family: var(--font-corsivo); font-size: 20px; color: var(--text-light) !important; display: block; margin-bottom: 20px;}

/* HOME PAGE */
.home-container { text-align: center; max-width: 1000px; margin: 60px auto; padding: 0 5%; }
.home-container h1 { font-family: var(--font-titoli); font-size: 48px; font-weight: 400; margin-bottom: 10px; color: var(--text-dark) !important;}

/* COSA VEDERE - VETRINA LOCALE */
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 0; }
.showcase-card { background: #fff !important; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; transition: transform 0.4s ease; }
.showcase-img-wrap { width: 100%; height: 180px; overflow: hidden; background-color: #f0f0f0; }
.showcase-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; cursor: pointer; }
.showcase-content { padding: 25px; display: flex; flex-direction: column; flex: 1; }
.showcase-content h2 { font-family: var(--font-corsivo); font-size: 24px; font-weight: 700; color: var(--text-dark) !important; margin-bottom: 10px; margin-top: 0; text-transform: uppercase; }
.showcase-content p { font-family: var(--font-corsivo); font-size: 20px; color: var(--text-light) !important; line-height: 1.6; margin: 0; }

/* GALLERIA A GRIGLIA FLUIDA */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin-top: 60px; width: 100%; }
.grid-item { overflow: hidden; position: relative; border-radius: 6px; }
.grid-item img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform 0.5s ease; cursor: pointer; } 

@media (hover: hover) {
    .showcase-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
    .showcase-card:hover .showcase-img-wrap img { transform: scale(1.08); }
    .grid-item:hover img { transform: scale(1.03); } 
}

/* CONTATTI & FORM */
.contact-wrapper { text-align: center; max-width: 1200px; margin: 60px auto; padding: 0 5%; }
.contact-wrapper h1 { font-family: var(--font-titoli); font-size: 42px; font-weight: 400; margin-bottom: 60px; color: var(--text-dark) !important;}
.contact-grid { display: flex; flex-wrap: wrap; gap: 60px; text-align: left; align-items: flex-start;}
.contact-info { flex: 1; min-width: 280px; }
.contact-info h3 { font-family: var(--font-titoli); font-size: 20px; font-weight: 400; margin-bottom: 10px; margin-top: 30px; display: flex; align-items: center; gap: 10px; color: var(--text-dark) !important;}
.contact-info svg { width: 24px; height: 24px; fill: var(--text-dark) !important; }
.contact-form { flex: 2; min-width: 320px; }
.form-row { display: flex; gap: 20px; margin-bottom: 25px; flex-wrap: wrap;}
.form-group { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.form-group label { font-family: var(--font-titoli); font-size: 14px; margin-bottom: 8px; color: var(--text-dark) !important; }
.form-group input, .form-group textarea { padding: 15px; border: 1px solid #ddd; font-family: var(--font-testi); outline: none; background: transparent; transition: border-color 0.3s; color: var(--text-dark) !important;}
.form-group input:focus, .form-group textarea:focus { border-color: #1a1a1a; }
button[type="submit"] { padding: 18px; background-color: #6b7261; color: #fff !important; border: none; font-family: var(--font-testi); font-size: 14px; font-weight: bold; cursor: pointer; width: 100%; transition: background-color 0.3s; margin-top: 10px;}
button[type="submit"]:hover { background-color: #4a4f43; }

/* MESSAGGIO DI SUCCESSO (INVISIBILE DI DEFAULT) */
#successMessage {
    display: none;
    background: #fcfbf9;
    border: 1px solid #e0e5db;
    padding: 60px 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    animation: fadeIn 0.5s ease;
}
#successMessage h3 { font-family: var(--font-corsivo); font-size: 38px; color: #6b7261; margin-bottom: 15px; margin-top: 0;}
#successMessage p { font-family: var(--font-testi); font-size: 16px; color: var(--text-light); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* MAPPA */
.map-container { width: 100%; height: 450px; margin-top: 80px; }

/* LIGHTBOX (ZOOM FOTO) */
.lightbox-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85) !important; justify-content: center; align-items: center; }
.lightbox-content { max-width: 95%; max-height: 90vh; object-fit: contain; box-shadow: 0 5px 30px rgba(0,0,0,0.5); border-radius: 4px; animation: zoomIn 0.3s ease; }
@keyframes zoomIn { from {transform: scale(0.9); opacity: 0;} to {transform: scale(1); opacity: 1;} }
.lightbox-close { position: absolute; top: 20px; right: 40px; color: #ffffff !important; font-size: 50px; font-weight: 300; cursor: pointer; transition: 0.3s; }
.lightbox-close:hover { color: #aaaaaa !important; }

footer { text-align: center; padding: 50px 20px; background-color: #ffffff !important; color: var(--text-light) !important; font-size: 13px; font-family: var(--font-testi); margin-top: 40px;}

/* RESPONSIVE MOBILE - GRIGLIA ADATTATA */
.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 10px; margin-top: 10px;}
.hamburger .bar { display: block; width: 25px; height: 2px; margin: 5px auto; background-color: var(--text-dark) !important; transition: 0.3s; }
@media (max-width: 900px) {
    .split-layout { grid-template-columns: 1fr; gap: 30px; margin: 40px auto; display: block;}
    .split-left { width: 100%; position: static; text-align: center; margin-bottom: 30px;}
    .split-right { width: 100%; }
    .hamburger { display: block; }
    nav ul { display: none; flex-direction: column; width: 100%; gap: 15px; padding-top: 20px; background: #ffffff !important;}
    nav ul.active { display: flex; }
    .lightbox-close { top: 10px; right: 20px; font-size: 45px; }
}