/* ==========================================================================
   Sito Maddalena Pimponi · design system
   Palette calda e desaturata, tipografia editoriale, spaziature fluide.
   ========================================================================== */

/* Font self-hosted (licenza SIL OFL in fonts/OFL.txt): nessuna richiesta ai server di Google,
   così il sito non trasmette l'indirizzo IP del visitatore a terzi prima di qualsiasi consenso. */
@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/dmsans.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/playfair.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/playfair-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Colori */
    --ink: #3b2b33;
    --ink-soft: #5a4650;
    --muted: #6d646c;
    --rose: #b07a96;
    --rose-text: #8c5470;
    --plum: #4a2b3c;
    --plum-deep: #34202c;
    --blush: #f4e9f0;
    --blush-strong: #ead6e2;
    --sand: #f7f1e8;
    --paper: #fbf8f9;
    --white: #fff;
    --line: #e8dde4;
    --line-strong: #d9c8d3;

    /* Tipografia fluida */
    --text-xs: clamp(.78rem, .76rem + .1vw, .84rem);
    --text-sm: clamp(.86rem, .84rem + .12vw, .92rem);
    --text-base: clamp(.95rem, .93rem + .15vw, 1.03rem);
    --text-lead: clamp(1.05rem, 1rem + .35vw, 1.22rem);
    --text-h3: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
    --text-h2: clamp(1.85rem, 1.5rem + 1.6vw, 2.75rem);
    --text-h1: clamp(2.6rem, 1.9rem + 3.2vw, 4.2rem);

    /* Forme e ombre */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-arch: 220px 220px 26px 26px;
    --shadow-1: 0 1px 2px rgba(59, 43, 51, .04), 0 10px 26px -16px rgba(59, 43, 51, .25);
    --shadow-2: 0 2px 4px rgba(59, 43, 51, .05), 0 30px 60px -32px rgba(59, 43, 51, .38);

    /* Spazi */
    --content: 1080px;
    --content-narrow: 720px;
    --gutter: clamp(20px, 5vw, 56px);
    --section-y: clamp(64px, 8vw, 118px);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: var(--text-base);
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }

h1, h2, h3 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.015em;
    text-wrap: balance;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: 1.3; letter-spacing: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--blush-strong); color: var(--plum-deep); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--rose);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Struttura ---------- */

.section-shell {
    width: min(var(--content), calc(100% - 2 * var(--gutter)));
    margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--flush-top { padding-top: 0; }
.section-white { background: var(--paper); }
.section-blush { background: linear-gradient(180deg, var(--blush), #f7eff4); }
.centered { text-align: center; }
.muted { color: var(--muted); }

.section-heading { margin: .35em 0 .9em; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: .6em;
    margin: 0 0 .9em;
    color: var(--ink-soft);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow--center { justify-content: center; }

.spiral-mark {
    width: .55em;
    height: .55em;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--rose);
    box-shadow: 0 0 0 4px rgba(176, 122, 150, .14);
}

/* ---------- Header ---------- */

.skip-link {
    position: absolute;
    left: 12px;
    top: -64px;
    z-index: 60;
    padding: 12px 18px;
    color: var(--white);
    background: var(--plum);
    border-radius: 0 0 12px 12px;
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top .18s ease;
}

.skip-link:focus { top: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(251, 248, 249, .82);
    border-bottom: 1px solid transparent;
    backdrop-filter: saturate(140%) blur(14px);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.site-header.is-scrolled {
    background: rgba(251, 248, 249, .95);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px -24px rgba(59, 43, 51, .45);
}

.header-inner {
    width: min(var(--content), calc(100% - 2 * var(--gutter)));
    min-height: 84px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 4vw, 40px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    line-height: 1.15;
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--plum);
    background: linear-gradient(145deg, var(--blush), var(--blush-strong));
    border: 1px solid rgba(74, 43, 60, .12);
    border-radius: 50%;
}

.brand-mark svg { width: 24px; height: 24px; }

.brand-text { display: flex; flex-direction: column; gap: 3px; }

.brand-signature {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 21px;
    font-style: italic;
    letter-spacing: -.01em;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.2vw, 28px);
}

.desktop-nav a {
    position: relative;
    padding-block: 6px;
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.desktop-nav a::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after { transform: scaleX(1); }

.desktop-nav .nav-contact {
    padding: 12px 22px;
    color: var(--white);
    background: var(--plum);
    border-radius: 999px;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}

.desktop-nav .nav-contact::after { content: none; }
.desktop-nav .nav-contact:hover { background: var(--plum-deep); transform: translateY(-1px); }

.mobile-nav { display: none; position: relative; }

/* ---------- Bottoni e link ---------- */

.button {
    min-height: 50px;
    padding: 13px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button-primary {
    color: var(--white);
    background: var(--plum);
    box-shadow: 0 12px 24px -16px rgba(74, 43, 60, .8);
}

.button-primary:hover { background: var(--plum-deep); }

.button-outline {
    color: var(--ink);
    background: transparent;
    border-color: var(--line-strong);
}

.button-outline:hover { background: rgba(255, 255, 255, .7); border-color: var(--ink-soft); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: gap .2s ease, color .2s ease;
}

.text-link span { color: var(--rose-text); font-size: 1.1em; transition: transform .2s ease; }
.text-link:hover { gap: 14px; }

/* ---------- Hero home ---------- */

.hero {
    position: relative;
    padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 104px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    align-items: center;
    gap: clamp(36px, 6vw, 80px);
}

.hero::before {
    position: absolute;
    z-index: -1;
    top: -18%;
    left: -10%;
    width: 62vw;
    height: 62vw;
    max-width: 760px;
    max-height: 760px;
    background: radial-gradient(circle at 30% 30%, rgba(234, 214, 226, .55), transparent 68%);
    content: "";
    pointer-events: none;
}

.hero-copy { max-width: 34em; }

.hero h1 {
    margin: .1em 0 .35em;
    font-size: clamp(2.9rem, 2rem + 4.2vw, 5rem);
    line-height: .98;
}

.hero h1 em {
    font-style: italic;
    color: var(--rose-text);
}

.hero-prefix {
    display: block;
    margin-bottom: .35em;
    color: var(--ink-soft);
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero-subtitle {
    margin-bottom: .55em;
    font-size: var(--text-lead);
    font-weight: 500;
}

.hero-description {
    max-width: 33em;
    margin-bottom: 1.9em;
    color: var(--muted);
}

.hero-note {
    margin-top: 1.4em;
    color: var(--muted);
    font-size: var(--text-sm);
}

.hero-art {
    position: relative;
    display: grid;
    justify-items: center;
}

.hero-figure {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 22px;
}

.portrait-circle {
    position: relative;
    display: block;
    aspect-ratio: 1;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: var(--shadow-2);
}

.portrait-circle::after {
    position: absolute;
    inset: -16px;
    border: 1px dashed rgba(176, 122, 150, .5);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.portrait-rect {
    position: relative;
    display: block;
    width: min(420px, 100%);
    aspect-ratio: 3 / 4;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow-2);
}

.portrait-rect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 28%;
    border-radius: 21px;
}

.portrait-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    border-radius: 50%;
}

.portrait-circle--hero { width: min(340px, 100%); }

.hero-caption {
    max-width: 34ch;
    text-align: center;
}

.hero-caption-quote {
    display: block;
    color: var(--ink-soft);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.04rem;
    font-style: italic;
    line-height: 1.55;
}

.hero-caption-name {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ---------- Striscia di fiducia ---------- */

.trust-strip {
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, .6);
}

.trust-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.trust-item {
    margin: 0;
    padding: 22px clamp(12px, 2.5vw, 32px);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--text-sm);
    color: var(--ink-soft);
}

.trust-item + .trust-item { border-left: 1px solid var(--line); }

.trust-item svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--rose-text); }

/* ---------- Home: mi presento ---------- */

.intro-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(28px, 6vw, 96px);
    align-items: start;
}

.label-tag {
    display: inline-block;
    margin-bottom: 1.1em;
    padding: 6px 14px;
    color: var(--rose-text);
    background: var(--blush);
    border: 1px solid rgba(176, 122, 150, .25);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.intro-grid h2 { margin-top: .1em; }

.intro-text { padding-top: 6px; }
.intro-text p { margin-bottom: 1.1em; color: var(--ink-soft); }
.intro-text p:first-child { font-size: var(--text-lead); color: var(--ink); }

/* ---------- Card dei temi ---------- */

.paper-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 2.4em;
    text-align: left;
}

.paper-card {
    position: relative;
    min-height: 172px;
    padding: 22px 22px 20px;
    display: grid;
    align-content: space-between;
    gap: 18px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.paper-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-2);
}

.paper-index {
    color: var(--rose-text);
    font-family: "Playfair Display", Georgia, serif;
    font-size: var(--text-sm);
    letter-spacing: .12em;
}

.paper-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.12rem;
    line-height: 1.35;
    letter-spacing: 0;
}

.paper-card .card-arrow {
    justify-self: end;
    color: var(--rose-text);
    font-size: 1.15rem;
    transition: transform .22s ease;
}

.paper-card:hover .card-arrow { transform: translateX(4px); }

.handwritten {
    margin: 2.4em 0 0;
    color: var(--ink-soft);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
}

/* ---------- Titoli di sezione con link ---------- */

.section-heading-row {
    margin-bottom: clamp(28px, 4vw, 48px);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: clamp(18px, 4vw, 48px);
}

.section-heading-row h2 { margin-bottom: .35em; }
.section-heading-row p { max-width: 34em; margin-bottom: 0; }

/* ---------- Studi ---------- */

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.location-card {
    min-height: 206px;
    padding: 24px 22px;
    display: flex;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .22s ease, box-shadow .22s ease;
}

.location-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }

.location-icon,
.method-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    color: var(--rose-text);
    background: var(--blush);
    border-radius: 12px;
}

.location-icon svg,
.method-icon svg { width: 20px; height: 20px; }

.location-card h3 { margin: 0 0 6px; font-size: 1.22rem; }
.location-card p {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.6;
}
.location-card strong { color: var(--ink); font-weight: 500; }
.location-card > div { display: flex; flex-direction: column; }
.location-card > div > .text-link { margin-top: auto; align-self: flex-start; white-space: nowrap; }
.location-online { background: linear-gradient(160deg, #f3ecf6, #efe6f3); border-color: #e4d6ec; }

/* ---------- CTA finale ---------- */

.closing-cta {
    position: relative;
    min-height: 260px;
    padding: clamp(32px, 5vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 56px);
    overflow: hidden;
    color: #f8eff5;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(176, 122, 150, .38), transparent 60%),
        var(--plum);
    border-radius: var(--radius-lg);
}

.closing-cta > div { max-width: 34em; }
.closing-cta .eyebrow { color: #e7cfdd; }
.closing-cta .eyebrow .spiral-mark { background: var(--rose); box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.closing-cta h2 { margin-bottom: .4em; }
.closing-cta h2 em { color: #f0c6dc; font-style: italic; }
.closing-cta p { margin-bottom: 0; color: #dfc8d6; }
.closing-cta .button-primary { color: var(--plum); background: var(--paper); }
.closing-cta .button-primary:hover { background: var(--white); }

/* ---------- Testata pagine interne ---------- */

.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--blush), rgba(244, 233, 240, .45));
    border-bottom: 1px solid var(--line);
}

.page-hero-inner {
    position: relative;
    min-height: 280px;
    padding-block: clamp(40px, 6vw, 68px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
}

.page-hero-copy { max-width: 52ch; }
.page-hero-inner:not(:has(.page-hero-art)) { grid-template-columns: minmax(0, 1fr); }

.page-hero-art {
    justify-self: end;
    width: clamp(220px, 25vw, 340px);
    aspect-ratio: 1;
}

.page-hero-art svg { width: 100%; height: auto; display: block; }

.page-hero h1 {
    max-width: 22ch;
    margin-bottom: .3em;
    font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.6rem);
}

.page-hero-copy > p {
    max-width: 46ch;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: var(--text-lead);
}

/* ---------- Chi sono ---------- */

.story-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(30px, 6vw, 88px);
    align-items: center;
}

.portrait-frame {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(14px, 3vw, 26px);
}

.story-copy h2 { margin: .15em 0 .6em; }
.story-copy p { margin-bottom: 1.05em; color: var(--ink-soft); }

blockquote {
    margin: 1.7em 0 0;
    padding: 22px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--rose);
    border-radius: var(--radius-sm);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.6;
}

blockquote cite {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-xs);
    font-style: normal;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ---------- Timeline ---------- */

.timeline {
    position: relative;
    width: min(620px, 100%);
    margin: 2.8em auto 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.timeline::before {
    position: absolute;
    top: 6px;
    bottom: 14px;
    left: 118px;
    width: 1px;
    background: var(--line-strong);
    content: "";
}

.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 36px;
    padding-bottom: clamp(22px, 3vw, 34px);
}

.timeline li::before {
    position: absolute;
    top: 6px;
    left: 112px;
    width: 11px;
    height: 11px;
    background: var(--paper);
    border: 2px solid var(--rose-text);
    border-radius: 50%;
    content: "";
}

.timeline li > span {
    padding-top: 1px;
    color: var(--rose-text);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: .08em;
    text-align: right;
    text-transform: uppercase;
}

.timeline h3 { margin: 0 0 4px; font-size: 1.16rem; line-height: 1.35; }
.timeline p { margin: 0 0 4px; color: var(--ink-soft); font-size: var(--text-sm); }

.timeline small {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 10px;
    color: var(--rose-text);
    background: var(--blush);
    border-radius: 999px;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Temi: navigazione e righe ---------- */

.topic-nav {
    position: sticky;
    top: 84px;
    z-index: 20;
    padding: 12px clamp(12px, 4vw, 24px);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.topic-nav a {
    padding: 8px 14px;
    color: var(--ink-soft);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: var(--text-xs);
    font-weight: 500;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.topic-nav a:hover { background: var(--blush); color: var(--ink); }
.topic-nav a.is-active { color: var(--white); background: var(--plum); border-color: var(--plum); }

.topic-list { padding-top: 0; }

.topic-row {
    padding-block: clamp(40px, 6vw, 68px);
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: clamp(20px, 5vw, 64px);
    border-bottom: 1px solid var(--line);
}

.topic-row:last-child { border-bottom: 0; }
.topic-row > div { min-width: 0; }
.topic-number {
    display: block;
    margin-bottom: .4em;
    color: var(--rose-text);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.1rem;
    letter-spacing: .14em;
}

.topic-row h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.topic-row h3 { margin: .1em 0 .5em; font-size: 1.1rem; font-style: italic; font-weight: 400; }
.topic-row p { margin-bottom: .8em; color: var(--ink-soft); }
.topic-highlight {
    margin-block: clamp(16px, 3vw, 28px);
    padding-inline: clamp(18px, 3vw, 34px);
    background: linear-gradient(150deg, #f4edf7, #f7f1f4);
    border: 1px solid #e6d7ec;
    border-radius: var(--radius);
}

/* ---------- FAQ ---------- */

.faq-content { max-width: var(--content-narrow); margin-inline: auto; }

.faq-group { margin-bottom: clamp(34px, 5vw, 52px); }
.faq-group:last-child { margin-bottom: 0; }

.faq-group h2 {
    margin-bottom: 1em;
    text-align: center;
    color: var(--rose-text);
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.faq-item {
    margin-bottom: 10px;
    padding: 0 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-1); }

.faq-item summary {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    list-style: none;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.06rem;
    line-height: 1.4;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    color: var(--rose-text);
    background: var(--blush);
    border-radius: 50%;
    content: "+";
    font: 500 1.15rem "DM Sans", sans-serif;
    transition: transform .2s ease, background .2s ease;
}

.faq-item[open] summary::after { content: "−"; background: var(--blush-strong); }
.faq-item p { padding: 0 44px 18px 0; margin-bottom: 0; color: var(--muted); }

/* ---------- Privacy ---------- */

.privacy-content { max-width: var(--content-narrow); }
.privacy-content h2 { margin: 2em 0 .5em; font-size: 1.5rem; }
.privacy-content p { color: var(--ink-soft); }
.privacy-content a { color: var(--ink); }

/* ---------- Contatti ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
    align-items: start;
    gap: clamp(20px, 4vw, 40px);
}

.contact-form-card {
    padding: clamp(22px, 4vw, 36px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
}

.contact-form-card h2 { margin-bottom: .25em; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); }
.contact-form-card > p { margin-bottom: 1.6em; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.form-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.full-field { grid-column: 1 / -1; }

.form-field label { font-size: var(--text-xs); font-weight: 600; letter-spacing: .03em; }
.form-field label span,
.form-field small { color: var(--muted); font-weight: 400; }
.form-field small { font-size: 12px; line-height: 1.5; }

.form-field input:not([type=checkbox]),
.form-field textarea,
.form-field select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fdfbfc;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: var(--text-sm);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-field input:not([type=checkbox]):hover,
.form-field textarea:hover,
.form-field select:hover { border-color: var(--ink-soft); }

.form-field input:not([type=checkbox]):focus,
.form-field textarea:focus,
.form-field select:focus {
    background: var(--white);
    border-color: var(--plum);
    box-shadow: 0 0 0 4px rgba(176, 122, 150, .18);
    outline: none;
}

.form-field textarea { resize: vertical; min-height: 130px; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: #9b9096; }

.validation-message {
    display: block;
    color: #a12c3c;
    font-size: var(--text-xs);
    font-weight: 500;
}

.consent-field label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--text-sm);
    font-weight: 400;
    line-height: 1.6;
}

.consent-field input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--plum);
}

.consent-field label span { color: var(--ink); }
.consent-field label a { color: var(--ink); }

.contact-form-card .form-field > .button { align-self: flex-start; }

.form-status {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
}

.form-status.success { color: #1f5137; background: #e8f3ec; border: 1px solid #cbe3d5; }
.form-status.error { color: #7f2b3a; background: #f9e9ed; border: 1px solid #f0cfd7; }

.form-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.contact-aside { display: grid; gap: 12px; }

.contact-method {
    min-height: 78px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.contact-method[href]:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-1);
}

.contact-method small {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.map-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.map-details { padding: 24px 22px; }
.map-details .eyebrow { margin-bottom: .5em; }
.map-details h3 { margin: 0 0 6px; font-size: 1.2rem; }
.map-details p:not(.eyebrow) { margin-bottom: 14px; color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }
.map-details .button { min-height: 42px; padding: 10px 16px; font-size: var(--text-xs); }

.map-card iframe {
    width: 100%;
    height: 230px;
    display: block;
    border: 0;
    filter: saturate(.85) contrast(.98);
}

/* La mappa di Google viene incorporata solo dopo un clic esplicito: prima di allora il
   browser non contatta i server di Google e l'indirizzo IP del visitatore resta al sito. */
.map-placeholder {
    width: 100%;
    min-height: 230px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-top: 1px dashed var(--line-strong);
    background: var(--sand);
    color: var(--ink);
    font: inherit;
    font-size: var(--text-sm);
    text-align: center;
    cursor: pointer;
    transition: background .2s ease;
}

.map-placeholder:hover { background: var(--blush); }
.map-placeholder:focus-visible { outline: 3px solid var(--rose-text); outline-offset: -3px; }
.map-placeholder strong { display: block; font-size: var(--text-sm); }
.map-placeholder span { max-width: 32em; color: var(--muted); font-size: var(--text-xs); line-height: 1.5; }

.map-privacy-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: var(--text-xs);
    line-height: 1.6;
}

/* Campo esca per i bot: invisibile agli occhi e agli screen reader, non raggiungibile da tastiera. */
.form-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: clamp(48px, 7vw, 76px) 0 22px;
    color: #e8d8e2;
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(176, 122, 150, .22), transparent 55%),
        var(--plum-deep);
}

.footer-inner,
.footer-bottom {
    width: min(var(--content), calc(100% - 2 * var(--gutter)));
    margin-inline: auto;
}

.footer-inner {
    padding-bottom: clamp(30px, 5vw, 48px);
    display: grid;
    grid-template-columns: 1.3fr .7fr .9fr;
    gap: clamp(28px, 5vw, 64px);
}

.footer-about .brand { margin-bottom: 18px; }
.footer-about .brand-mark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #f0d9e6; }
.footer-about .brand-signature { font-size: 23px; }
.footer-about p { max-width: 30em; margin-bottom: 10px; color: #cdb6c4; font-size: var(--text-sm); }

.footer-inner h2 {
    margin: 0 0 14px;
    color: #f0d9e6;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.footer-inner > div:not(.footer-about) a {
    width: fit-content;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dcc6d3;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

.footer-inner > div:not(.footer-about) a:hover { color: var(--white); transform: translateX(3px); }
.footer-inner svg { width: 16px; height: 16px; flex: 0 0 auto; }

.footer-bottom {
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #b79fa9;
    font-size: 12px;
}

.whatsapp-float {
    position: fixed;
    z-index: 35;
    right: clamp(14px, 2.4vw, 26px);
    bottom: clamp(14px, 2.4vw, 24px);
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--plum);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    box-shadow:
        0 16px 34px -16px rgba(52, 32, 44, .8),
        0 0 0 6px rgba(74, 43, 60, .08);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.whatsapp-float:hover {
    background: var(--plum-deep);
    transform: translateY(-3px);
    box-shadow:
        0 20px 40px -18px rgba(52, 32, 44, .85),
        0 0 0 6px rgba(74, 43, 60, .12);
}

body.senza-float .whatsapp-float { display: none; }
.whatsapp-float svg { width: 26px; height: 26px; }
@media (max-width: 480px) {
    .whatsapp-float { width: 54px; height: 54px; }
}

/* ---------- Errori runtime ---------- */

#blazor-error-ui {
    position: fixed;
    z-index: 1000;
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: 560px;
    margin-inline: auto;
    padding: 15px 20px;
    display: none;
    color: #7f2b3a;
    background: #f9e9ed;
    border: 1px solid #f0cfd7;
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
    font-size: var(--text-sm);
}

#blazor-error-ui .reload,
#blazor-error-ui .dismiss {
    margin-left: 12px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Comparsa progressiva dei blocchi ---------- */

@media (prefers-reduced-motion: no-preference) {
    .rivela {
        opacity: 0;
        transform: translate3d(0, 22px, 0);
        transition: opacity .6s ease, transform .7s cubic-bezier(.22, .7, .25, 1);
        will-change: opacity, transform;
    }

    .rivela.is-visibile {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    /* La testata non ha spazio per la riga descrittiva del marchio accanto al menu. */
    .brand-subtitle { display: none; }
    .brand-signature { font-size: 19px; }
    .desktop-nav { gap: 16px; }

    .page-hero-inner { grid-template-columns: 1fr; }
    .page-hero-art { display: none; }

    .hero { grid-template-columns: 1fr; gap: 40px; }
    .hero-copy { max-width: none; }
    .hero-art { justify-items: center; }
    .portrait-circle--hero { width: min(320px, 82%); }
    .intro-grid, .story-grid { grid-template-columns: 1fr; gap: 32px; }
    .paper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .location-grid { grid-template-columns: 1fr; }
    .location-card { min-height: 0; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .topic-row { grid-template-columns: 1fr; gap: 14px; }
    .trust-inner { grid-template-columns: 1fr; }
    .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
    .section-heading-row { align-items: start; flex-direction: column; }
    .closing-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
    :root { --section-y: 58px; }

    .header-inner { min-height: 72px; }
    .desktop-nav { display: none; }
    html { scroll-padding-top: 132px; }
    .topic-nav { top: 72px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .topic-nav::-webkit-scrollbar { display: none; }
    .topic-nav a { flex: 0 0 auto; padding: 10px 15px; }
    .mobile-nav { display: block; }

    .mobile-nav summary {
        padding: 10px 16px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--ink);
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 999px;
        cursor: pointer;
        list-style: none;
        font-size: var(--text-sm);
        font-weight: 600;
    }

    .mobile-nav summary::-webkit-details-marker { display: none; }
    .mobile-nav summary svg { width: 16px; height: 16px; }

    .mobile-nav nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        min-width: min(280px, calc(100vw - 2 * var(--gutter)));
        padding: 10px;
        display: grid;
        gap: 2px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow-2);
        animation: menu-in .18s ease;
    }

    @keyframes menu-in {
        from { opacity: 0; transform: translateY(-6px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .mobile-nav nav a {
        padding: 12px 14px;
        border-radius: var(--radius-sm);
        font-size: var(--text-sm);
        text-decoration: none;
    }

    .mobile-nav nav a:hover { background: var(--blush); }
    .mobile-nav nav a.active { color: var(--rose-text); background: var(--blush); font-weight: 600; }

    .hero { padding-block: 28px 52px; }
    .hero h1 { font-size: clamp(2.5rem, 10vw, 3.3rem); }
    .portrait-circle--hero { width: min(280px, 78%); }
    .portrait-rect { width: min(300px, 82%); border-radius: 24px; }
    .portrait-rect img { border-radius: 17px; }
    .portrait-circle::after { inset: -11px; }
    .hero-figure { gap: 18px; }
    .hero-caption-quote { font-size: .98rem; }

    .brand-subtitle { display: none; }
    .brand-signature { font-size: 19px; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-mark svg { width: 20px; height: 20px; }

    .paper-grid { grid-template-columns: 1fr; }
    .paper-card { min-height: 0; }

    .timeline::before { left: 86px; }
    .timeline li { grid-template-columns: 70px 1fr; gap: 30px; }
    .timeline li::before { left: 80px; }
    .timeline li > span { font-size: 11px; }

    .map-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field { grid-column: 1 / -1; }

    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
    .button-row { align-items: stretch; flex-direction: column; }
    .button-row .button { width: 100%; }
    .contact-form-card { padding: 20px 16px; }
}

@media print {
    .rivela { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
