/* ---------- Colori e misure ---------- */
:root {
    --lavender-900: #2e2545;
    --lavender-700: #4a3d6b;
    --lavender-500: #7b6aa8;
    --lavender-200: #d9d0ec;
    --lavender-100: #efeaf7;
    --cream: #fbf9f6;
    --ink: #2b2733;
    --ink-soft: #5e5869;
    --white: #ffffff;

    --sidebar-width: 270px;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(46, 37, 69, .08);

    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    color: var(--lavender-700);
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--lavender-900);
    margin: 0;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin: 0 0 1.1rem;
}

section[id] {
    scroll-margin-top: 0;
}

/* ---------- Menu laterale ---------- */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    background: var(--white);
    border-right: 1px solid var(--lavender-100);
    z-index: 20;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--lavender-900);
}

.brand-title {
    font-size: .8rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--lavender-500);
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.1;
}

.brand-role {
    font-size: .85rem;
    color: var(--ink-soft);
    margin-top: .3rem;
}

.nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.nav a {
    display: block;
    padding: .6rem .9rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    transition: background .2s, color .2s;
}

.nav a:hover {
    background: var(--lavender-100);
    color: var(--lavender-900);
}

.nav a.active {
    background: var(--lavender-700);
    color: var(--white);
}

.sidebar-contacts {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: .85rem;
}

.sidebar-contacts a {
    text-decoration: none;
    color: var(--ink-soft);
    word-break: break-word;
}

.sidebar-contacts a:hover {
    color: var(--lavender-700);
}

main {
    margin-left: var(--sidebar-width);
}

/* ---------- Barra superiore (solo telefono) ---------- */
.topbar {
    display: none;
}

/* ---------- Home ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(46, 37, 69, .85) 0%, rgba(46, 37, 69, .55) 50%, rgba(46, 37, 69, .25) 100%);
}

.hero-content {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 4rem clamp(1.5rem, 5vw, 4.5rem);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.hero-kicker {
    font-size: .9rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    margin-bottom: .4rem;
    opacity: .85;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-role {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    line-height: 1.3;
    margin-bottom: .8rem;
}

.hero-services {
    font-size: 1.05rem;
    max-width: 32rem;
    opacity: .9;
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.btn {
    display: inline-block;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .03em;
    transition: transform .2s, background .2s, color .2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--white);
    color: var(--lavender-900);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, .7);
    color: var(--white);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .15);
}

.hero-photo {
    margin: 0;
    justify-self: center;
    width: min(100%, 360px);
    aspect-ratio: 4 / 5;
    border-radius: 200px 200px var(--radius) var(--radius);
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, .85);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .3);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% 40%;
}

/* ---------- Sezioni ---------- */
.section {
    padding: clamp(4rem, 9vw, 7rem) clamp(1.5rem, 5vw, 4.5rem);
}

.section-tinted {
    background: var(--lavender-100);
}

.section-inner {
    max-width: 1050px;
    margin: 0 auto;
}

.section-inner.narrow {
    max-width: 760px;
}

.eyebrow {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--lavender-500);
    margin-bottom: .6rem;
}

.lead {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    line-height: 1.45;
    color: var(--lavender-900);
}

/* Chi sono */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    font-weight: 400;
}

.about-block {
    padding-left: 1.3rem;
    border-left: 3px solid var(--lavender-200);
}

.about-block h3 {
    font-family: var(--font-sans);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--lavender-500);
    margin-bottom: .5rem;
}

.about-block p {
    margin-bottom: .7rem;
}

.about-block p:last-child {
    margin-bottom: 0;
}

.about-block strong {
    font-weight: 600;
    color: var(--lavender-900);
}

.video-placeholder,
.about-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--lavender-700), var(--lavender-500));
    color: var(--white);
    font-size: .95rem;
    box-shadow: var(--shadow);
}

.play-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .8);
    position: relative;
}

.play-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent var(--white);
}

.facts {
    list-style: none;
    padding: 0;
    margin: 3.5rem 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.facts li {
    background: var(--white);
    border: 1px solid var(--lavender-100);
    border-radius: var(--radius);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    box-shadow: var(--shadow);
}

.facts strong {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--lavender-700);
}

.facts span {
    font-size: .88rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

/* Aree di intervento */
.cards {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 3vw, 2.4rem);
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: 1.3rem;
}

.tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.section-hint {
    margin: -1.2rem 0 2rem;
    color: var(--ink-soft);
}

.tag {
    font: inherit;
    padding: .4rem .9rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--lavender-100);
    color: var(--lavender-700);
    font-size: .88rem;
    font-weight: 400;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.tag::after {
    content: '+';
    margin-left: .45rem;
    font-weight: 600;
    opacity: .6;
}

.tag:hover {
    border-color: var(--lavender-500);
}

.tag:focus-visible {
    outline: 2px solid var(--lavender-500);
    outline-offset: 2px;
}

.tag[aria-expanded="true"] {
    background: var(--lavender-700);
    color: var(--white);
}

.tag[aria-expanded="true"]::after {
    content: '\2212';
    opacity: .9;
}

.tag-panel {
    flex-basis: 100%;
    margin: .2rem 0 .4rem;
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--lavender-500);
    border-radius: 0 12px 12px 0;
    background: var(--cream);
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.6;
    animation: panel-in .25s ease;
}

.tag-panel p {
    margin: 0;
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

/* Tariffe */
.prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.price {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.price h3 {
    font-size: 1.3rem;
    margin-bottom: .8rem;
}

.price-value {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1;
    color: var(--lavender-700);
    margin: 0;
}

.price-note {
    margin: .6rem 0 0;
    font-size: .9rem;
    color: var(--ink-soft);
}

.price-highlight {
    background: var(--lavender-700);
}

.price-highlight h3,
.price-highlight .price-value,
.price-highlight .price-note {
    color: var(--white);
}

.price-badge {
    display: inline-block;
    margin: 1rem 0 0;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: var(--lavender-100);
    color: var(--lavender-700);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.tax-callout {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 3vw, 2.2rem);
    padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.4rem);
    border-radius: var(--radius);
    background: var(--white);
    border: 2px solid var(--lavender-500);
    box-shadow: var(--shadow);
}

.tax-percent {
    flex-shrink: 0;
    margin: 0;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lavender-700);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
}

.tax-callout h3 {
    margin-bottom: .4rem;
}

.tax-callout p:last-child {
    margin: 0;
    color: var(--ink-soft);
}

.hours {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--lavender-200);
    max-width: 700px;
}

.hours h3 {
    margin-bottom: .6rem;
}

/* Contatti */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 1.8rem;
    border-radius: var(--radius);
    border: 1px solid var(--lavender-200);
    background: var(--white);
    text-decoration: none;
    color: var(--ink);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.contact-card:hover {
    border-color: var(--lavender-500);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--lavender-500);
}

.contact-value {
    font-size: 1.05rem;
    font-style: normal;
    font-weight: 400;
    color: var(--lavender-900);
    word-break: break-word;
}

.footer {
    padding: 2rem clamp(1.5rem, 5vw, 4.5rem);
    background: var(--lavender-900);
    color: var(--lavender-200);
    font-size: .82rem;
    text-align: center;
}

.footer p {
    margin: 0;
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .cards {
        grid-template-columns: 1fr;
    }
}

/* ---------- Telefono e tablet piccolo ---------- */
@media (max-width: 860px) {
    .topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: calc(.8rem + env(safe-area-inset-top, 0px)) 1.2rem .8rem;
        background: rgba(255, 255, 255, .95);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--lavender-100);
    }

    .topbar-name {
        font-family: var(--font-serif);
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--lavender-900);
        text-decoration: none;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        border: 0;
        background: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 24px;
        height: 2px;
        background: var(--lavender-900);
        transition: transform .25s, opacity .25s;
    }

    .menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .sidebar {
        width: min(85vw, 320px);
        padding-top: 5.5rem;
        transform: translateX(-100%);
        transition: transform .3s ease;
        box-shadow: 0 0 40px rgba(0, 0, 0, .15);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    main {
        margin-left: 0;
    }

    section[id] {
        scroll-margin-top: 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 7rem;
        text-align: center;
    }

    .hero-photo {
        grid-row: 1;
        width: min(60vw, 240px);
    }

    .hero-services {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-overlay {
        background: rgba(46, 37, 69, .65);
    }

    .prices,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .tax-callout {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .facts {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .tag-panel {
        animation: none;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
