/* Palette Cielo e terracotta: carta calda, azzurro polvere, rosa mattone tenue, blu profondo per testi, mattone solo per link e dettagli.
   Layout: pentagramma sottile come filo conduttore; tre slot per immagini ad acquerello (--art) che si fondono con la carta. */
:root {
  --paper: #FBF6F0;
  --ink: #24396B;
  --ink-soft: #4B5D88;
  --powder: #A9C8F0;
  --powder-deep: #6F9ADB;
  --rose: #EBA086;
  --brick: #B04027;
  --line: #24396B33;
  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --stave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%2324396B' stroke-opacity='.22' stroke-width='1.4'%3E%3Cpath d='M0,20 C150,-10 300,50 450,20 S750,-10 900,20 S1050,50 1200,20'/%3E%3Cpath d='M0,36 C150,6 300,66 450,36 S750,6 900,36 S1050,66 1200,36'/%3E%3Cpath d='M0,52 C150,22 300,82 450,52 S750,22 900,52 S1050,82 1200,52'/%3E%3Cpath d='M0,68 C150,38 300,98 450,68 S750,38 900,68 S1050,98 1200,68'/%3E%3Cpath d='M0,84 C150,54 300,114 450,84 S750,54 900,84 S1050,114 1200,84'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--brick); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1100px, 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }

/* Acquerello: ogni .wash ha un'immagine (--art) che si fonde con la carta */
.wash { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.wash .art { position: absolute; inset: 0; background-size: cover; background-position: center; mix-blend-mode: multiply; }
/* Immagini ad acquerello. Un velo di carta tiene leggibili i testi. */
.s1 .art { background-image: url("../immagini/pentagramma.jpg"); }
.s2 .art { background-image: url("../immagini/cerchi.jpg"); }
.s3 .art { background-image: url("../immagini/onde.jpg"); }
.wash::after { content: ""; position: absolute; inset: 0; background: #FBF6F0; opacity: .3; }
.s1::after { background: linear-gradient(90deg, #FBF6F0 0%, #FBF6F0cc 38%, #FBF6F000 75%); opacity: 1; }
.block > .wash.s3 { opacity: .4; }
.stave { position: absolute; left: 0; right: 0; height: 130px; background: var(--stave) center / 100% 100% no-repeat; pointer-events: none; z-index: 0; }

/* Navigazione */
.nav { position: sticky; top: 0; z-index: 10; background: #FBF6F0ee; backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-size: 1.35rem; text-decoration: none; color: var(--ink); }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a.tab { display: inline-block; padding: 7px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink); border: 1px solid transparent; }
.nav a.tab:hover { border-color: var(--ink); }
.nav a.tab[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; padding: 13px 26px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--brick); border-color: var(--brick); }
.btn.brick { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn.brick:hover { background: var(--ink); border-color: var(--ink); }


/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .stave { bottom: 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: 72px 96px; }
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brick); margin-bottom: 18px; display: block; }
.hero h1 { font-size: clamp(3.2rem, 8.5vw, 6rem); letter-spacing: -.01em; }
.hero h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 20px; max-width: 20ch; color: var(--ink-soft); }
.hero p.lead { font-size: 1.15rem; max-width: 44ch; margin-top: 18px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Segnaposto foto: arco */
.photo { margin: 0; aspect-ratio: 3 / 4; border: 1.5px solid var(--ink); border-radius: 999px 999px 22px 22px; background: var(--powder); overflow: hidden; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

section.block { padding-block: 84px; position: relative; }
.section-title { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 14px; }
.section-intro { max-width: 56ch; color: var(--ink-soft); margin-bottom: 40px; font-size: 1.1rem; }

/* Schede */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--ink); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.card h3 { font-size: 1.55rem; }
.card p { margin: 0; }
.card .icon { width: 44px; height: 44px; margin-bottom: 6px; }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 700; }
.t-powder { background: var(--powder); }
.t-rose { background: var(--rose); }
.t-paper { background: var(--paper); }
.t-sand { background: #F3E9DD; }
.card a { color: var(--ink); }

/* Chi sono */
.about { border-block: 1px solid var(--line); overflow: hidden; }
.about .wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 56px; align-items: center; }
.about p { font-size: 1.12rem; max-width: 52ch; }

/* Percorso */
.path-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.path-item { border: 1px solid var(--ink); border-radius: 18px; background: var(--paper); overflow: hidden; }
.path-item h3 { font-size: 1.35rem; padding: 14px 24px; border-bottom: 1px solid var(--ink); }
.path-item:nth-child(3n+1) h3 { background: var(--powder); }
.path-item:nth-child(3n+2) h3 { background: var(--rose); }
.path-item:nth-child(3n+3) h3 { background: #F3E9DD; }
.path-item > div { padding: 20px 24px 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { border: 1px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: .93rem; background: var(--paper); }
.chip:nth-child(3n+1) { background: var(--powder); }
.chip:nth-child(3n+2) { background: #F3E9DD; }
.chip:nth-child(3n+3) { background: var(--rose); }
.interest { margin-top: 28px; }
.interest h3 { font-size: 1.5rem; margin-bottom: 14px; }

/* Fascia contatti */
.cta { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding-block: 76px; background: #F3E9DD; }
.cta .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
.cta p { max-width: 48ch; margin-top: 14px; }
.cta .actions { margin-top: 0; }

/* Pagine interne */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding-block: 72px 80px; }
.page-head .stave { bottom: 12px; }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); }
.page-head p { font-size: 1.15rem; max-width: 50ch; margin: 16px 0 0; color: var(--ink-soft); }
.proposte-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.proposta { padding: 0; gap: 0; overflow: hidden; }
.proposta .media { aspect-ratio: 16 / 9; border-bottom: 1.5px solid var(--ink); overflow: hidden; background: var(--powder); }
.proposta .media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.proposta .tile { display: grid; place-items: center; background: var(--rose); position: relative; }
.proposta .tile.alt { background: var(--powder); }
.proposta .tile::before { content: ""; position: absolute; inset: 0; background: var(--stave) center / 100% 100% no-repeat; opacity: .8; }
.proposta .tile svg { position: relative; width: 84px; height: 84px; }
.proposta .body { padding: 24px 28px 28px; }
.proposta h3 { font-size: 1.45rem; margin-bottom: 8px; }
.proposta p { margin-bottom: .6em; }
.invite { margin-top: 36px; border: 1px solid var(--ink); border-radius: 18px; padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--paper); }
.invite p { margin: 0; font-weight: 600; max-width: 50ch; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
form.card { gap: 18px; }
label { font-weight: 700; display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 12px 14px; }
textarea { min-height: 150px; resize: vertical; }
.status { min-height: 1.4em; font-weight: 600; margin: 0; }
.direct dl { margin: 0; display: grid; gap: 16px; }
.direct dt { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.direct dd { margin: 2px 0 0; font-size: 1.12rem; font-weight: 600; word-break: break-word; }

footer { background: var(--ink); color: var(--paper); padding-block: 32px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero .wrap, .about .wrap, .cta .wrap, .contact-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding-block: 48px 90px; }
  .hero .photo, .about .photo { max-width: 300px; }
  .cards, .path-grid, .proposte-grid { grid-template-columns: 1fr; }
  section.block { padding-block: 56px; }
  .s1::after { background: linear-gradient(180deg, #FBF6F0 0%, #FBF6F0cc 50%, #FBF6F000 100%); }
}
@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .nav .wrap { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Accessibilità e moduli */
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: auto; margin-top: 7px; flex: none; }
.check label { font-weight: 500; margin: 0; }
.check a { color: var(--brick); }
.status.ok { color: var(--ink); }
.status.err { color: var(--brick); }

/* Testi lunghi (informativa) */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose .todo { background: #FFF0C4; border: 1px dashed var(--ink); border-radius: 6px; padding: 0 6px; }
.notfound { text-align: center; padding-block: 96px; }
.notfound h1 { font-size: clamp(3rem, 8vw, 5rem); margin-bottom: 16px; }

/* Sottopagine proposte */
.back { margin: 0 0 18px !important; font-weight: 600; font-size: 1rem !important; }
.back a { color: var(--ink); }
.block.alt { background: linear-gradient(180deg, #F3E9DD66, #F3E9DD33); border-block: 1px solid var(--line); }
.card .nota { font-size: .95rem; color: var(--ink-soft); margin-top: auto; padding-top: 6px; }
.figura-larga { margin: 0 0 40px; border: 1.5px solid var(--ink); border-radius: 22px; overflow: hidden; max-height: 460px; }
.figura-larga img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eventi { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 720px; }
.evento { display: flex; gap: 20px; align-items: center; border: 1px solid var(--ink); border-radius: 18px; padding: 16px 22px; background: var(--paper); }
.evento time { flex: none; width: 72px; text-align: center; border-radius: 14px; background: var(--powder); border: 1px solid var(--ink); padding: 8px 0; }
.evento .g { display: block; font-family: "Young Serif", serif; font-size: 1.9rem; line-height: 1; }
.evento .m { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }
