/* Stefano Paterno – Psicologo · Istruttore di Mindfulness */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #FAF7F5;
  --surface: #EEF0F4;
  --white: #FFFFFF;
  --navy: #26324A;
  --navy-2: #323F5C;
  --ink: #1C2333;
  --text: #3D4558;
  --muted: #5A6275;
  --line: #E4E1DE;
  --line-dark: #4A5670;
  --accent: #D9735E;
  --accent-ink: #B4533F;
  --accent-deep: #8E3D2D;
  --accent-soft: #F2B5A6;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1248px;
  --pad: clamp(20px, 5vw, 96px);
  --section: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0; }
em { font-style: italic; color: var(--accent-ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: #fff; }
.kicker { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.section--navy .kicker { color: var(--accent-soft); }
.h2 { font-size: clamp(30px, 3.6vw, 44px); max-width: 22ch; }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--text); max-width: 36em; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; border-radius: 999px; font-weight: 500; font-size: 17px; padding: 16px 26px; text-align: center; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--ghost { border: 1.5px solid var(--accent); color: var(--accent-deep); padding: 14.5px 24.5px; }
.btn--ghost:hover { background: rgba(217, 115, 94, 0.1); color: var(--accent-deep); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.brand strong { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--navy); }
.brand span { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent-ink); }
.nav .btn { color: #fff; padding: 12px 20px; font-size: 15px; }
.menu { display: none; }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; width: 44px; height: 44px; border: 1px solid #C9CEDA; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; background: #fff; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu__panel { display: flex; }
  .menu__panel { display: none; position: absolute; right: 0; top: 54px; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; min-width: 240px; box-shadow: 0 12px 32px rgba(28, 35, 51, 0.12); }
  .menu__panel a { padding: 12px 14px; color: var(--ink); text-decoration: none; border-radius: 10px; }
  .menu__panel a:hover { background: var(--bg); }
  .menu__panel .btn { color: #fff; margin-top: 6px; }
}

/* Breadcrumb */
.crumbs { font-size: 15px; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--ink); }

/* Hero */
.hero { padding: clamp(40px, 6vw, 96px) 0 clamp(56px, 7vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; background: var(--surface); color: var(--navy); font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.06; }
.hero__photo { position: relative; aspect-ratio: 1.1; max-width: 520px; width: 100%; justify-self: center; }
.hero__photo::before { content: ""; position: absolute; right: 0; top: 10%; width: 86%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); opacity: 0.18; }
.hero__photo .circle { position: absolute; left: 0; top: 0; width: 88%; }
.circle { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 12px var(--bg); }
.circle img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 0%; }
.creds { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.creds b { font-weight: 600; color: var(--navy); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__photo { order: -1; max-width: 260px; aspect-ratio: 1; }
  .hero__photo::before { display: none; }
  .hero__photo .circle { position: static; width: 100%; box-shadow: 0 0 0 10px var(--bg), 0 0 0 12px var(--accent); }
  .btns .btn { flex: 1 1 100%; }
}

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; } }

.card { background: var(--bg); border-radius: 24px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.section--white .card { background: var(--bg); }
.card h3 { font-size: clamp(22px, 2vw, 26px); }
.card p { color: var(--text); }
.card .more { margin-top: auto; font-weight: 500; text-decoration: none; }
.icon { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.num { font-family: var(--serif); font-size: 34px; color: var(--accent); line-height: 1; }

/* Steps (navy) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 48px; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.step { border-top: 1px solid var(--line-dark); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-family: var(--sans); font-size: 20px; font-weight: 600; }
.steps--4 .step h3 { color: var(--accent-soft); }
.step p { color: #D5D9E3; }
.step .num { font-size: 40px; }
@media (max-width: 900px) { .steps, .steps--4 { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; } .step { padding-top: 16px; } }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; line-height: 1.4; }
.checks svg { flex-shrink: 0; margin-top: 2px; color: var(--accent-deep); }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; gap: 10px; } }

/* About */
.about .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__panel { background: var(--surface); border-radius: 28px; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; }
.about__panel .circle { width: 150px; box-shadow: 0 0 0 8px var(--surface), 0 0 0 10px var(--accent); }
.about__panel .creds { font-size: 16px; gap: 10px; }
.about__text { display: flex; flex-direction: column; gap: 20px; }
.about__text p { color: var(--text); font-size: 18px; line-height: 1.7; }
@media (max-width: 900px) { .about .wrap { grid-template-columns: 1fr; } }

/* Blog note / book */
.panel { background: var(--surface); border-radius: 32px; padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.panel h2 { font-size: clamp(28px, 3vw, 40px); }
.panel p { color: var(--text); margin-top: 14px; }
.tag { display: inline-block; background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
@media (max-width: 820px) { .panel { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--serif); font-size: clamp(19px, 1.8vw, 23px); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin-top: 12px; color: var(--text); max-width: 42em; }

/* CTA */
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta h2 { font-size: clamp(32px, 4.2vw, 52px); max-width: 18ch; }
.cta p { color: var(--text); max-width: 34em; font-size: 19px; }
.cta-box { background: var(--surface); border-radius: 32px; padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-box h2 { font-size: clamp(28px, 3vw, 42px); }
.cta-box p { color: var(--text); margin-top: 10px; }

/* Contact block */
.contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
.contact a { display: inline-flex; align-items: center; gap: 12px; color: #C9CEDA; text-decoration: none; }
.contact a:hover { color: #fff; }

/* Footer */
.site-footer { background: var(--ink); color: #C9CEDA; padding: 64px 0 36px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand-f { font-family: var(--serif); font-size: 22px; color: #fff; margin-bottom: 12px; display: block; }
.site-footer .creds { color: #C9CEDA; }
.site-footer .creds b { color: #fff; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a { color: #C9CEDA; text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.site-footer .bottom { border-top: 1px solid #333D52; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.site-footer .bottom a { color: #C9CEDA; margin-left: 20px; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr; gap: 28px; } .site-footer .bottom a { margin: 0 20px 0 0; } }

/* Plain text pages */
.prose { max-width: 44em; }
.prose h1 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 24px; }
.prose h2 { font-size: 26px; margin: 32px 0 12px; }
.prose p { color: var(--text); margin-bottom: 14px; }

/* ---------- Animazioni ---------- */
.site-header { transition: box-shadow 0.3s ease, background-color 0.3s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(28, 35, 51, 0.08); background: rgba(250, 247, 245, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.btn { transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--primary:hover { box-shadow: 0 10px 24px rgba(38, 50, 74, 0.25); }

.card, .checks li, .about__panel, .panel, .cta-box { transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(28, 35, 51, 0.10); background: #fff; }
.card .icon { transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease; }
.card:hover .icon { background: var(--accent-soft); color: var(--accent-deep); transform: rotate(-6deg) scale(1.06); }
.card .more { display: inline-flex; align-items: center; gap: 6px; }
.card .more::after { content: "→"; transition: transform 0.3s ease; }
.card:hover .more::after { transform: translateX(5px); }
.card .num { transition: transform 0.35s ease; display: inline-block; }
.card:hover .num { transform: translateY(-3px); }
.checks li:hover { border-color: var(--accent); transform: translateX(4px); box-shadow: 0 8px 20px rgba(28, 35, 51, 0.06); }
.step { transition: border-color 0.35s ease; }
.step:hover { border-top-color: var(--accent); }
.faq summary { transition: color 0.25s ease; }
.faq summary:hover { color: var(--accent-ink); }
.circle img { transition: transform 0.6s ease; }
.circle:hover img { transform: scale(1.04); }
.contact a svg, .site-footer nav a { transition: transform 0.25s ease, color 0.25s ease; }
.contact a:hover svg { transform: scale(1.15); }

@keyframes floaty { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, 12px); } }
.hero__photo::before { animation: floaty 9s ease-in-out infinite; }

/* Comparsa allo scroll: attiva solo con JavaScript */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0ms); }
.js .reveal.from-top { transform: translateY(-28px); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.js .card.reveal, .js .checks li.reveal, .js .panel.reveal, .js .about__panel.reveal, .js .cta-box.reveal, .js .btn.reveal {
  transition: opacity 0.7s ease, transform 0.5s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
  transition-delay: var(--delay, 0ms);
}

/* ---------- Pulsanti extra ---------- */
.btn--icon { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--accent-soft); color: var(--ink); }
.btn--line { border: 1.5px solid rgba(255, 255, 255, 0.5); color: #fff; padding: 14.5px 24.5px; }
.btn--line:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.btns--stack { flex-direction: column; align-items: stretch; }
.step a { color: var(--accent-soft); }
.step__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.step__actions .btn { font-size: 15px; padding: 12px 18px; }
.step__actions .btn--line { padding: 10.5px 16.5px; }

/* ---------- Contatti e social ---------- */
.contact { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact a { display: inline-grid; grid-template-columns: 18px auto; align-items: center; column-gap: 12px; text-decoration: none; }
.contact--light .badge { background: #fff; border: 1px solid #C9CEDA; color: var(--navy); }
.contact--light a { color: var(--text); }
.contact--light a:hover { color: var(--accent-ink); }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--navy); border: 1px solid #C9CEDA; transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.socials a:hover { transform: translateY(-3px); background: var(--accent); border-color: var(--accent); color: var(--ink); }
.socials--dark a { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Chi sono ---------- */
.about .wrap { align-items: start; }
.about__panel { align-items: stretch; gap: 22px; }
.about__photo .circle { width: 170px; box-shadow: 0 0 0 8px var(--surface), 0 0 0 10px var(--accent); }
.about__panel .creds { font-size: 15px; gap: 8px; }
.about__contacts { display: flex; flex-direction: column; gap: 18px; padding-top: 22px; border-top: 1px solid #D5D9E3; }
.about__sub { font-size: 24px; margin-top: 8px; }
.list-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 17px; line-height: 1.5; }
.list-check svg { flex-shrink: 0; margin-top: 3px; color: var(--accent-deep); }
.note { font-size: 15px !important; color: var(--muted) !important; background: var(--surface); border-radius: 14px; padding: 14px 18px; }
@media (min-width: 901px) { .about__panel { position: sticky; top: 110px; } }

/* ---------- Form (stile tipo Bootstrap, coerente con il sito) ---------- */
.narrow { max-width: 720px; }
.booking-section { padding-top: 32px; }
.booking { max-width: 820px; }
.booking__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.booking__head h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.1; }
.booking__alt { margin-top: 22px; font-size: 15px; color: var(--muted); text-align: center; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 1px 2px rgba(28, 35, 51, 0.04), 0 16px 40px rgba(28, 35, 51, 0.06); }
.form { display: flex; flex-direction: column; gap: 24px; }
.form-section { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-section + .form-section { padding-top: 24px; border-top: 1px solid var(--line); }
.form-section legend { padding: 0; margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-section .form-row > .field:first-child, .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.req { color: var(--accent-ink); margin-left: 3px; font-weight: 600; }
.input { display: block; width: 100%; font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); background: #fff; border: 1px solid #CED4DA; border-radius: 12px; padding: 11px 14px; min-height: 48px; transition: border-color 0.15s ease, box-shadow 0.15s ease; -webkit-appearance: none; appearance: none; }
textarea.input { min-height: 132px; resize: vertical; }
select.input { padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2326324A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder { color: #9AA2B5; }
.input:hover { border-color: #AEB6C4; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(38, 50, 74, 0.14); }
.hint { font-size: 13px; color: var(--muted); line-height: 1.4; }
.invalid-msg { display: none; font-size: 13px; color: #B02A37; }
.is-invalid .input { border-color: #B02A37; }
.is-invalid .input:focus { box-shadow: 0 0 0 4px rgba(176, 42, 55, 0.15); }
.is-invalid .invalid-msg { display: block; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); line-height: 1.5; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.check.is-invalid { border-color: #B02A37; background: #FDF1F2; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.req-note { font-size: 13px; color: var(--muted); }
.form .btn { border: 0; cursor: pointer; font-family: inherit; min-width: 200px; }
.form .btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
@media (max-width: 640px) { .form-foot { flex-direction: column-reverse; align-items: stretch; } .form .btn { width: 100%; } .req-note { text-align: center; } }
.form-error { display: none; }
.form-alert { background: #FDF1F2; color: #842029; border: 1px solid #F5C2C7; border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; font-size: 15px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.updated { color: var(--muted) !important; font-size: 15px; }

/* ---------- Finestra "Avvisami" ---------- */
.dialog { border: 0; border-radius: 28px; padding: clamp(24px, 4vw, 44px); max-width: 520px; width: calc(100% - 32px); background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(28, 35, 51, 0.3); }
.dialog::backdrop { background: rgba(28, 35, 51, 0.55); backdrop-filter: blur(3px); }
.dialog h2 { font-size: clamp(26px, 3vw, 32px); padding-right: 36px; }
.dialog__lead { color: var(--text); margin: 12px 0 22px; }
.dialog__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dialog__close:hover { background: var(--bg); }
.dialog[open] { animation: pop 0.3s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.step a.btn--light { color: var(--navy); }
.step a.btn--line { color: #fff; }
.creds a.albo { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.creds a.albo:hover { color: var(--accent-ink); }
.site-footer .creds a.albo:hover { color: #fff; }

.dialog .form-row { grid-template-columns: 1fr; }
.dialog .form .btn { min-width: 0; }
.form-section legend { float: left; width: 100%; }
.form-section .form-row { clear: both; }

/* Allineamento icona + testo (pulsanti e contatti) */
.btn { line-height: 1.25; }
.btn--icon, .btn:has(> svg) { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn svg, .contact a svg, .badge svg, .socials svg { display: block; flex-shrink: 0; }
.btn svg { position: relative; top: -1px; }
.contact a { line-height: 1.25; }
.contact a > span { display: block; padding-top: 1px; }
.badge { line-height: 1; }

/* ---------- Blog ---------- */
.blog-head { padding-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid #C9CEDA; background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.chip span { font-size: 12px; color: var(--muted); }
.chip:hover { border-color: var(--navy); color: var(--ink); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-active span { color: #C9CEDA; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid, .post-grid--2 { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease; }
.section--white .post-card { background: var(--bg); }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(28, 35, 51, 0.10); }
.post-card__img { display: block; aspect-ratio: 16 / 9; background: var(--surface); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--accent-ink); background: radial-gradient(circle at 80% 20%, rgba(217, 115, 94, 0.22), transparent 55%), var(--surface); }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.post-card__cat { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none; }
.post-card h3 { font-size: 22px; line-height: 1.25; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent-ink); }
.post-card p { color: var(--text); font-size: 16px; }
.post-card__meta { margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 44px; color: var(--muted); font-size: 15px; }
.blog-home__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }

/* Articolo */
.post__head { max-width: 820px; padding-top: 32px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.post__head .pill { text-decoration: none; }
.post__head h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1; }
.post__meta { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--muted); line-height: 1.4; }
.post__meta img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 72% 0%; background: var(--surface); }
.post__meta strong { color: var(--ink); font-weight: 600; }
.post__cover { max-width: 1040px; margin-top: 36px; }
.post__cover img { width: 100%; border-radius: 24px; aspect-ratio: 16 / 9; object-fit: cover; }
.post__body { max-width: 760px; padding-top: 40px; padding-bottom: 24px; }
.post__body.prose p, .post__body.prose li { font-size: 19px; line-height: 1.75; color: var(--text); }
.post__body.prose p { margin-bottom: 22px; }
.post__body.prose h2 { font-size: clamp(26px, 3vw, 32px); margin: 44px 0 16px; }
.post__body.prose h3 { font-size: 23px; margin: 32px 0 12px; }
.post__body.prose h4 { font-size: 19px; margin: 24px 0 10px; font-family: var(--sans); font-weight: 600; }
.post__body.prose ul, .post__body.prose ol { margin: 0 0 22px; padding-left: 24px; }
.post__body.prose li { margin-bottom: 8px; }
.post__body.prose li::marker { color: var(--accent); }
.post__body.prose blockquote { margin: 32px 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--accent); }
.post__body.prose blockquote p { font-family: var(--serif); font-size: 23px; line-height: 1.5; color: var(--navy); margin: 0; }
.post__body.prose img { border-radius: 18px; margin: 12px 0 28px; }
.post__body.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.post__body.prose strong { color: var(--ink); }
.post__video { margin-top: 12px; }
.post__author { max-width: 760px; }
.author-box { display: flex; gap: 22px; align-items: flex-start; background: var(--surface); border-radius: 24px; padding: 28px; }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 72% 0%; background: #fff; flex-shrink: 0; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--accent); }
.author-box > div { display: flex; flex-direction: column; gap: 8px; }
.author-box strong { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.author-box p { color: var(--text); font-size: 16px; }
@media (max-width: 560px) { .author-box { flex-direction: column; } }
.post__cta { max-width: 1040px; padding-top: 40px; padding-bottom: var(--section); }
.post__head, .post__body, .post__author { max-width: calc(760px + 2 * var(--pad)); }
.post__cover, .post__cta { max-width: calc(1040px + 2 * var(--pad)); }
.post-card__img { text-decoration: none; }

/* Testo degli articoli giustificato, con sillabazione italiana per evitare spazi larghi */
.post__body.prose p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 6 3 3; }
.post__body.prose blockquote p { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
@media (max-width: 420px) { .post__body.prose p { text-align: left; } }
.cite-box { margin: 36px 0 8px; background: var(--surface); border-radius: 18px; padding: 22px 26px; }
.cite-box .kicker { margin-bottom: 8px; }
.post__body.prose .cite-box p { font-size: 16px; line-height: 1.6; text-align: left; hyphens: manual; margin: 0 0 6px; }
.post__body.prose .cite-box a { overflow-wrap: anywhere; }
.post__body.prose .cite-box__doi { font-size: 14px !important; color: var(--muted) !important; margin: 0 !important; }

/* Etichetta "Da dicembre" per la mindfulness */
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.soon { display: inline-block; background: var(--accent-soft); color: #6E2E21; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.soon-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-size: 16px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
