@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary-dark: #1b4943;
    --secondary-beige: #f5ece1;
    --text-light: #ffffff;
    --text-dark: #333333;
    --accent-gold: #c5a059;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Lato', sans-serif; background-color: var(--secondary-beige); color: var(--text-dark); overflow-x: hidden;}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 400; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *{ animation:none !important; transition:none !important; } }

.serif-italic { font-style: italic; }

nav { position: absolute; top: 0; width: 100%; padding: 30px 50px; display: flex; justify-content: space-between; align-items: center; color: var(--text-light); z-index: 10; }
nav .logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; letter-spacing: 2px; text-transform: uppercase; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-switch {
    font-family: 'Lato', sans-serif; font-size: 0.72rem; letter-spacing: 1.5px;
    color: var(--text-light); border: 1px solid rgba(255,255,255,0.5); padding: 6px 12px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lang-switch:hover { background: var(--accent-gold); color: var(--primary-dark); border-color: var(--accent-gold); }
nav .menu-link { font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; }

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    opacity: 0; transition: opacity 1.4s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: rgba(27, 73, 67, 0.65); z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 5.5rem; line-height: 1.1; margin-bottom: 30px; font-weight: 300; }
.btn-outline { border: 1px solid var(--text-light); padding: 15px 40px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; display: inline-block; margin-top: 20px; transition: all 0.3s ease; }
.btn-outline:hover { background-color: var(--text-light); color: var(--primary-dark); }
.btn-outline.gold { border-color: var(--accent-gold); }
.btn-outline.gold:hover { background-color: var(--accent-gold); color: var(--primary-dark); }
.btn-solid-gold { background: var(--accent-gold); color: var(--primary-dark); border: 1px solid var(--accent-gold); padding: 15px 40px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; display: inline-block; margin-top: 20px; transition: all 0.3s ease; }
.btn-solid-gold:hover { background: transparent; color: var(--text-light); }

.vision { display: flex; align-items: flex-start; background-color: var(--primary-dark); color: var(--text-light); min-height: 70vh; }
.vision-text { flex: 1; padding: 8% 8%; }
.vision-text h2 { font-size: 3.5rem; margin-bottom: 30px; line-height: 1.1; }
.vision-text p { font-size: 1rem; line-height: 1.8; opacity: 0.85; max-width: 520px; margin-bottom: 24px; }
.vision-text a { text-decoration: underline; text-decoration-color: var(--accent-gold); text-underline-offset: 3px; transition: color .2s; }
.vision-text a:hover { color: var(--accent-gold); }
.vision-image { flex: 1; background-color: #d8c3b5; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.vision-image img { width: 100%; height: 100%; object-fit: cover; }

.about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.about-badge { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; border: 1px solid var(--accent-gold); color: var(--accent-gold); padding: 8px 14px; }

.about-quote {
    font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.7rem; line-height: 1.35;
    color: var(--accent-gold); max-width: 520px; margin: 0 0 34px; padding-left: 24px;
    border-left: 2px solid var(--accent-gold);
}

.about-links { margin-bottom: 34px; }
.about-links a { display: inline-block; font-size: 0.92rem; opacity: .95; margin-bottom: 10px; }

.studios-block { max-width: 520px; margin-bottom: 34px; }
.studios-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-gold); margin-bottom: 14px; }
.studios-list { list-style: none; border-top: 1px solid rgba(255,255,255,0.15); }
.studios-list li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 0.92rem; opacity: .9; display: flex; justify-content: space-between; gap: 12px; }
.studios-list a { text-decoration: none; color: var(--accent-gold); }

.about-edu { font-size: 0.92rem; opacity: .85; max-width: 520px; }

.collection { padding: 120px 50px; text-align: center; }
.collection.bg-beige { background-color: var(--secondary-beige); }
.collection.bg-dark { background-color: var(--primary-dark); color: var(--text-light); }
.collection h2 { font-size: 3.5rem; margin-bottom: 20px; }
.collection .section-sub { display:block; margin-bottom: 60px; opacity:.75; }
.collection .section-sub a { color: var(--accent-gold); border-bottom: 1px solid var(--accent-gold); padding-bottom: 2px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.card { background: #fff; text-align: left; color: var(--text-dark); display: flex; flex-direction: column;}
.card-img { height: 350px; background-color: #eaeaea; position: relative; display: flex; align-items: center; justify-content: center;}
.card-img::after { content: 'Foto Prodotto'; color: #999; }

.card-body { padding: 30px; }
.card-body .subtitle { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: #888; margin-bottom: 15px; display: block; }
.card-body h3 { font-size: 1.8rem; margin-bottom: 20px; font-family: 'Playfair Display', serif;}
.card-body .price-link { font-size: 0.9rem; font-weight: 400; border-bottom: 1px solid #333; padding-bottom: 4px; display: inline-block; text-transform: uppercase; letter-spacing: 1px;}

.values { background-color: var(--primary-dark); color: var(--text-light); padding: 120px 50px; text-align: center; }
.values h2 { font-size: 3.5rem; margin-bottom: 80px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px; max-width: 1100px; margin: 0 auto; }
.value-item { display: flex; flex-direction: column; align-items: center; }
.icon-circle { width: 90px; height: 90px; border: 1px solid rgba(255,255,255,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; font-size: 1.5rem; }
.value-item p { font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; opacity: 0.9;}

footer { display: flex; background-color: var(--primary-dark); color: var(--text-light); border-top: 1px solid rgba(255,255,255,0.1); min-height: 60vh; }
.footer-img { flex: 1; background-color: #8c7361; position: relative; display: flex; align-items: center; justify-content: center;}
.footer-img::after { content: 'Immagine Footer'; color: rgba(255,255,255,0.5); }
.footer-content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border-left: 1px solid rgba(255,255,255,0.1); padding: 50px;}
.footer-content h2 { font-size: 3.5rem; margin-bottom: 50px; }
.footer-info { margin-bottom: 35px; font-size: 1rem; letter-spacing: 1px; }
.footer-info span { display: block; text-transform: uppercase; font-size: 0.75rem; opacity: 0.6; margin-bottom: 10px; letter-spacing: 2px;}
.footer-cta { display:flex; gap:16px; flex-wrap:wrap; justify-content:center; margin-top:10px; }
.footer-map { flex:1; position: relative; }
.footer-map iframe { width:100%; height:100%; min-height:400px; border:0; display:block; filter: grayscale(15%) contrast(1.05); }

/* Selettore studi sovrapposto alla mappa */
.studio-selector { position:absolute; left:0; right:0; bottom:0; display:flex; flex-wrap:wrap; background: rgba(27,73,67,0.92); }
.studio-pill {
    flex:1 1 auto; min-width: 130px; text-align:center; padding: 13px 10px;
    font-family:'Lato', sans-serif; font-size: 0.68rem; letter-spacing:.5px; text-transform:uppercase;
    color: rgba(255,255,255,0.75); background:transparent; border: none; border-right: 1px solid rgba(255,255,255,0.12);
    cursor:pointer; transition: background .2s ease, color .2s ease;
}
.studio-pill:last-child { border-right: none; }
.studio-pill:hover { background: rgba(255,255,255,0.08); color:#fff; }
.studio-pill.active { background: var(--accent-gold); color: var(--primary-dark); font-weight: 700; }

/* Pannello studio dinamico nel footer */
.studio-info { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); padding: 26px 30px; margin-bottom: 32px; max-width: 380px; }
.footer-label { display:block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-gold); margin-bottom: 12px; }
.footer-label i { margin-left: 4px; font-size: 0.65rem; }
.studio-name { font-family:'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 4px; }
.studio-note { font-size: 0.75rem; opacity: .65; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.studio-address a, .studio-phone a { font-size: 0.9rem; opacity: .9; display: block; margin-bottom: 6px; }
.studio-address a:hover, .studio-phone a:hover { color: var(--accent-gold); }

/* ===================== CURATED EAR ===================== */
.curated-ear { padding: 120px 50px; background-color: var(--secondary-beige); }
.curated-ear-inner { max-width: 1200px; margin: 0 auto 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.curated-ear h2 { font-size: 3.5rem; margin-bottom: 24px; line-height: 1.1; }
.curated-ear-text p { font-size: 1rem; line-height: 1.8; max-width: 480px; opacity: .85; margin-bottom: 32px; }

.ec-steps { list-style: none; margin-bottom: 32px; max-width: 460px; }
.ec-steps li { display: flex; gap: 18px; margin-bottom: 22px; }
.ec-step-num {
    flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--accent-gold); color: var(--accent-gold);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif; font-size: 0.95rem;
}
.ec-steps strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.ec-steps p { font-size: 0.88rem; opacity: .75; margin: 0; max-width: none; }

/* Slider before/after */
.ba-wrap { max-width: 480px; margin: 0 auto; width: 100%; }
.ba-slider {
    position: relative; aspect-ratio: 4/5; overflow: hidden; user-select: none;
    box-shadow: 0 20px 50px rgba(27,73,67,0.25); cursor: ew-resize;
}
.ba-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before-wrap { position: absolute; top: 0; left: 0; height: 100%; width: 50%; overflow: hidden; border-right: 2px solid var(--text-light); }
.ba-before-wrap .ba-img { width: var(--ba-slider-w, 480px); max-width: none; filter: grayscale(1) brightness(1.05) contrast(.95); }
.ba-tag { position: absolute; bottom: 16px; font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; background: rgba(27,73,67,0.85); color: var(--text-light); padding: 6px 12px; }
.ba-tag-before { left: 16px; }
.ba-tag-after { right: 16px; }
.ba-handle {
    position: absolute; top: 0; left: 50%; height: 100%; width: 2px; background: var(--text-light);
    transform: translateX(-50%); cursor: ew-resize; touch-action: none;
}
.ba-handle-circle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%; background: var(--text-light); color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.ba-caption { text-align: center; font-size: 0.8rem; opacity: .65; margin-top: 16px; }
.ba-caption em { font-style: normal; color: var(--primary-dark); opacity: .85; }

/* Tab Prima/Dopo vs Video */
.ec-showcase { max-width: 480px; margin: 0 auto; }
.ec-showcase-tabs { display: flex; gap: 2px; margin-bottom: 24px; }
.ec-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 10px; font-family: 'Lato', sans-serif; font-size: 0.75rem;
    letter-spacing: .5px; text-transform: uppercase; color: var(--primary-dark);
    background: #fff; border: 1px solid var(--primary-dark); cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.ec-tab i { font-size: 0.85rem; }
.ec-tab:hover { background: rgba(27,73,67,0.06); }
.ec-tab.active { background: var(--primary-dark); color: #fff; }
.ec-panel { display: none; }
.ec-panel.active { display: block; }

.ec-video-wrap { aspect-ratio: 4/5; overflow: hidden; box-shadow: 0 20px 50px rgba(27,73,67,0.25); }
.ec-video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--primary-dark); }

.ec-video-lang { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.ec-lang-btn {
    padding: 7px 18px; font-family: 'Lato', sans-serif; font-size: 0.72rem; letter-spacing: 1px;
    background: #fff; color: var(--primary-dark); border: 1px solid var(--primary-dark); cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.ec-lang-btn:hover { background: rgba(27,73,67,0.06); }
.ec-lang-btn.active { background: var(--accent-gold); color: var(--primary-dark); border-color: var(--accent-gold); font-weight: 700; }

/* Glossario (dettaglio secondario) */
.ec-glossary { max-width: 1200px; margin: 0 auto; background: #fff; border-top: 3px solid var(--accent-gold); }
.ec-glossary summary {
    list-style: none; cursor: pointer; padding: 22px 30px; display: flex; align-items: center; gap: 10px;
    font-size: 0.9rem; letter-spacing: .3px; color: var(--primary-dark);
}
.ec-glossary summary::-webkit-details-marker { display: none; }
.ec-glossary summary .material-icons { color: var(--accent-gold); font-size: 1.2rem; }
.ec-glossary-body { padding: 10px 30px 40px; display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.ec-glossary-hint { font-size: 0.88rem; opacity: .7; max-width: 420px; }

.ear-diagram-wrap { position: relative; max-width: 260px; margin: 0 auto; }
.ear-outline { fill: #fdfaf6; stroke: var(--primary-dark); stroke-width: 2; }
.ear-inline { fill: none; stroke: var(--primary-dark); stroke-width: 1.4; opacity: .55; }
.ear-tragus { fill: #fdfaf6; opacity: .8; }
.ear-concha { fill: var(--primary-dark); opacity: .07; stroke: var(--primary-dark); stroke-width: 1; stroke-opacity: .3; }
.ear-point { fill: var(--accent-gold); stroke: #fff; stroke-width: 2; cursor: pointer; transition: r .15s; }
.ear-point:hover, .ear-point:focus { r: 9; fill: var(--primary-dark); }
.ear-tip {
    position: absolute; background: var(--primary-dark); color: var(--text-light);
    padding: 12px 16px; font-size: 0.85rem; min-width: 160px;
    pointer-events: none; opacity: 0; transform: translateY(6px);
    transition: opacity .15s, transform .15s; z-index: 5;
}
.ear-tip.show { opacity: 1; transform: translateY(0); }
.ear-tip strong { display:block; color: var(--accent-gold); font-family:'Playfair Display', serif; font-size: 0.95rem; margin-bottom: 3px; }

/* ===================== CURA / AFTERCARE — schede ===================== */
.cura-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; text-align: left; }
.cura-card { background: #fff; color: var(--text-dark); border-top: 3px solid var(--accent-gold); }
.cura-card summary { list-style: none; cursor: pointer; padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cura-card summary::-webkit-details-marker { display: none; }
.cura-card summary h3 { font-size: 1.4rem; margin-bottom: 6px; }
.cura-heal { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: #999; }
.cura-plus { font-size: 1.4rem; color: var(--accent-gold); transition: transform .2s; flex-shrink: 0; }
.cura-card[open] .cura-plus { transform: rotate(45deg); }
.cura-body-text { padding: 0 30px 28px; font-size: 0.92rem; line-height: 1.7; opacity: .8; }

#review h3{ font-size: 1.8rem; margin-bottom: 20px; font-family: 'Playfair Display', serif;}

/* ===================== SNAPWIDGET label ===================== */
.ig-link { display:inline-block; margin-bottom: 60px; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-gold); border-bottom: 1px solid var(--accent-gold); padding-bottom: 3px; }

@media (max-width: 1024px) {
    .grid-3, .cura-grid { gap: 20px; }
    .hero h1 { font-size: 4rem; }
    .curated-ear-inner { grid-template-columns: 1fr; gap: 50px; }
    .ec-glossary-body { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 768px) {
    .vision, footer { flex-direction: column; }
    .vision-image { position: static; height: 320px; }
    .footer-img { min-height: 300px; }
    .grid-3, .grid-4, .cura-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
    .collection, .values, .curated-ear { padding: 80px 24px; }
    .collection h2, .values h2, .curated-ear h2, .footer-content h2 { font-size: 2.4rem; }
    nav { padding: 20px 24px; }
    .footer-map iframe{ min-height: 300px; }
    .studio-pill { font-size: 0.6rem; padding: 10px 6px; min-width: 90px; }
}

/* --- STILI HAMBURGER E MENU OVERLAY (invariati dal template) --- */
.hamburger-menu { font-size: 1.8rem; cursor: pointer; z-index: 100; color: var(--text-light); background:none; border:none; }
.mobile-menu-overlay {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background-color: var(--primary-dark); color: var(--text-light);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1); z-index: 999;
}
.mobile-menu-overlay.open { right: 0; }
.close-btn { position: absolute; top: 30px; right: 30px; font-size: 2.2rem; cursor: pointer; transition: color 0.3s; background:none; border:none; color: var(--text-light); }
.close-btn:hover { color: var(--accent-gold); }
.nav-links { list-style: none; text-align: left; }
.nav-links li { margin: 22px 0; }
.nav-links a { font-family: 'Playfair Display', serif; font-size: 1.7rem; display: flex; align-items: center; gap: 20px; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-gold); }
.nav-links .material-icons { font-size: 1.8rem; color: var(--accent-gold); }
/* ===================== BARRA LEGALE (copyright, P.IVA) ===================== */
.legal-bar {
    background: var(--primary-dark); border-top: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6); font-size: 0.72rem; line-height: 1.6;
    padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 10px 26px;
    align-items: center; justify-content: center; text-align: center;
}
.legal-bar p { margin: 0; }
.legal-link { color: rgba(255,255,255,0.75); text-decoration: underline; text-underline-offset: 3px; }
.legal-link-btn { background: none; border: none; font: inherit; cursor: pointer; padding: 0; }
.legal-link:hover, .legal-link-btn:hover { color: var(--accent-gold); }

/* ===================== BANNER COOKIE ===================== */
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    background: var(--primary-dark); border-top: 2px solid var(--accent-gold);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.25);
    transform: translateY(110%); transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
    max-width: 1100px; margin: 0 auto; padding: 22px 24px;
    display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.cookie-banner p { color: rgba(255,255,255,0.85); font-size: 0.85rem; line-height: 1.6; max-width: 640px; margin: 0; }
.cookie-banner p a { color: var(--accent-gold); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 640px) {
    .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-banner-actions { justify-content: center; }
}

/* ===================== PLACEHOLDER GALLERIE INSTAGRAM (pre-consenso) ===================== */
.ig-placeholder {
    max-width: 480px; margin: 40px auto 0; padding: 50px 30px;
    border: 1px dashed rgba(27,73,67,0.25); text-align: center;
}
.collection.bg-dark .ig-placeholder { border-color: rgba(255,255,255,0.25); }
.ig-placeholder i { font-size: 2.2rem; color: var(--accent-gold); margin-bottom: 16px; display: block; }
.ig-placeholder p { font-size: 0.88rem; opacity: .75; margin: 0 auto 22px; max-width: 380px; }
.ig-placeholder-link { display: block; margin-top: 16px; font-size: 0.8rem; color: var(--accent-gold); text-decoration: underline; text-underline-offset: 3px; }

/* Reset per i pulsanti <button> che riusano gli stili .btn-outline / .btn-solid-gold (pensati originariamente per i link) */
button.btn-outline, button.btn-solid-gold { font-family: 'Lato', sans-serif; background-color: transparent; cursor: pointer; }
button.btn-solid-gold { background: var(--accent-gold); }
