/* Cattedra Serale */
:root {
  --black: #000000;
  --barHeight: 42px;
  --marginBig: 220px;
  --marginNormal: 40px;
  --avorio: #FDF9F7;
  --pesca: #FFD9C2;
  --greige: #A79F9B;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: 100px; }
body {
  margin: 0;
  padding-top: calc(var(--barHeight) * 2);
  background: #FFFFFF;
  color: var(--black);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.35;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.vaiA { position: absolute; left: -9999px; }
.vaiA:focus { left: 20px; top: 100px; background: #fff; padding: 6px 12px; z-index: 200; }

/* due barre fisse di testo */
.barTop, .barPage {
  position: fixed;
  left: 0;
  right: 0;
  height: var(--barHeight);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 17px;
  font-size: 24px;
  line-height: 1;
}
.barTop { top: 0; background: #FFF; z-index: 105; }
.barPage { top: var(--barHeight); background: var(--avorio); z-index: 98; }
.barTop .logoMark img { height: 22px; width: auto; }
.menuWord {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0;
  color: #000;
  transition: opacity .2s ease;
}
.menuWord:hover { text-decoration: underline; text-underline-offset: 2px; }
.barPage a { text-decoration: none; }
.barPage a:hover { text-decoration: underline; }
.barPage .barLabel { font-size: 18px; }
.menuPanel {
  position: fixed;
  top: calc(var(--barHeight) * 2);
  right: 20px;
  width: 352px;
  background: #FFF;
  z-index: 104;
  padding: 26px 28px 30px;
  box-shadow: 0 0 5px 1px rgba(61,61,61,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.menuPanel.open { opacity: 1; pointer-events: auto; }
.menuPanel ul { list-style: none; margin: 0; padding: 0; }
.menuPanel li { overflow: hidden; padding-bottom: 3px; }
.menuPanel a { font-size: 40px; line-height: 1.02; text-decoration: none; }
.menuPanel a:hover, .menuPanel a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* titolo e attacco */
.article-title {
  width: 60%;
  margin: 0 auto;
  padding: 160px 0 120px;
  text-align: center;
}
.article-title h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(36px, 4.6vw, 65px);
  line-height: .98;
  letter-spacing: -1.6px;
  text-wrap: balance;
}
.article-title .kicker { display: block; font-size: 18px; letter-spacing: 0; margin-bottom: 26px; }
.lede {
  padding: 0 var(--marginBig) 110px;
  text-align: center;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 300;
  font-size: clamp(30px, 3.9vw, 56px);
  line-height: 1.02;
  letter-spacing: -1px;
}
.lede p { margin: 0 0 20px; }
.lede .cta-line { font-family: "Hanken Grotesk", Arial, sans-serif; font-size: 20px; letter-spacing: 0; margin-top: 34px; }

.photoRow { padding: 0 var(--marginNormal); margin-bottom: 120px; }
.photoRow img { width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.js .revealElement { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .revealMedia { opacity: 0; transform: scale(1.03); transition: opacity .6s ease, transform .6s ease; }
.js .revealed { opacity: 1; transform: none; }

/* testo a due colonne */
.columns_02 { display: flex; gap: 30px; padding: 0 var(--marginBig); margin-bottom: 140px; }
.columns_02 > div { flex: 1 1 50%; min-width: 0; }
.columns_02 h2, .sectionHead {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -1px;
  margin: 0 0 24px;
}
.columns_02 p { margin: 0 0 16px; }
.columns_02 ol { margin: 0; padding-left: 26px; }
.columns_02 li { margin-bottom: 10px; }

/* la pagina del quaderno */
.quaderno-zone { padding: 0 var(--marginBig); margin-bottom: 140px; }
.notebook {
  background: var(--avorio);
  background-image: repeating-linear-gradient(180deg, transparent 0, transparent 43px, #E2DCD7 43px, #E2DCD7 44px);
  border: 1px solid #000;
  padding: 22px 34px 26px 96px;
  position: relative;
}
.notebook::before { content: ""; position: absolute; top: 0; bottom: 0; left: 70px; border-left: 1px solid #E8A48A; }
.notebook ol { list-style: none; margin: 0; padding: 0; counter-reset: pagina; }
.notebook li { counter-increment: pagina; line-height: 44px; position: relative; }
.notebook li::before { content: "p. " counter(pagina); position: absolute; left: -82px; width: 60px; text-align: right; font-size: 15px; }
.notebook li b { font-weight: 500; }
.notebook li span { display: block; line-height: 1.6; padding: 0 0 10px; font-size: 17px; }

/* le otto serate */
.serate { padding: 0 var(--marginBig); margin-bottom: 140px; }
.serate-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #000; border-left: 1px solid #000; }
.serata { border-right: 1px solid #000; border-bottom: 1px solid #000; padding: 16px 18px 22px; min-height: 150px; min-width: 0; }
.serata .day { font-size: 15px; display: block; margin-bottom: 8px; }
.serata b { font-weight: 500; display: block; margin-bottom: 4px; font-size: 19px; }
.serata p { margin: 0; font-size: 16px; line-height: 1.4; }
.serata.tinta { background: var(--avorio); }
.serate .nota { font-size: 17px; margin-top: 18px; }

/* galleria sfalsata */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 30px;
  row-gap: 60px;
  padding: 0 var(--marginBig);
  margin: 0 0 160px;
  align-items: start;
}
.blog-grid figure { margin: 0; min-width: 0; }
.blog-grid img { width: 100%; object-fit: cover; margin-bottom: 9px; aspect-ratio: .8; }
.blog-grid figure:nth-child(odd) img { aspect-ratio: .62; }
.blog-grid figcaption { font-size: 16px; line-height: 1.3; }

.statement {
  padding: 0 var(--marginBig);
  margin-bottom: 150px;
  text-align: center;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -1px;
}
.statement p { margin: 0; }
.statement small { display: block; font-family: "Hanken Grotesk", Arial, sans-serif; font-size: 17px; letter-spacing: 0; margin-top: 20px; }

/* domande numerate */
.faqNum { padding: 0 var(--marginBig); margin-bottom: 140px; }
.faqNum ol { list-style: none; margin: 0; padding: 0; counter-reset: domanda; border-top: 1px solid #000; }
.faqNum li { counter-increment: domanda; display: flex; gap: 30px; padding: 22px 0; border-bottom: 1px solid #000; }
.faqNum li::before { content: counter(domanda, decimal-leading-zero); font-family: "Cormorant Garamond", serif; font-size: 44px; line-height: 1; flex: 0 0 70px; }
.faqNum h3 { font-weight: 500; font-size: 20px; margin: 0 0 6px; }
.faqNum p { margin: 0; font-size: 18px; }

/* cassetti prima del piede */
.drawer { border-top: 1px solid rgba(0,0,0,.08); }
.drawer summary {
  list-style: none;
  cursor: pointer;
  height: var(--barHeight);
  padding: 10px 40px 8px;
  font-size: 24px;
  line-height: 1;
  position: relative;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { position: absolute; right: 40px; top: 8px; width: 26px; height: 26px; transition: transform .4s ease; }
.drawer:not([open]) summary svg { transform: rotate(45deg); }
.drawer.contact { background: var(--avorio); }
.drawer.place { background: var(--pesca); }
.drawer-body { display: flex; gap: 30px; padding: 30px 40px 70px; }
.drawer-body > div { min-width: 0; }
.drawer-body .left { flex: 0 0 calc(49vw - 70px); }
.drawer-body .left h2 { font-family: "Cormorant Garamond", serif; font-weight: 300; font-size: 48px; line-height: 1; margin: 0 0 18px; letter-spacing: -1px; }
.drawer-body .right { flex: 1; max-width: 718px; }
.place .drawer-body p { margin: 0 0 14px; }

/* modulo a righe */
.line-form { border-top: 1px solid #000; }
.line-row { display: flex; align-items: stretch; border: 1px solid #000; border-top: 0; min-height: 55px; background: #FFF; }
.line-row label { flex: 0 0 34%; padding: 15px 16px; border-right: 1px solid #000; font-size: 18px; }
.line-row input, .line-row select, .line-row textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  font: inherit;
  font-size: 20px;
  padding: 0 16px;
  background: transparent;
  color: #000;
  border-radius: 0;
}
.line-row textarea { padding-top: 15px; min-height: 110px; resize: none; }
.line-row.wrong { background: #FFF3EE; }
.row-error { display: block; min-height: 24px; font-size: 15px; padding: 3px 0 0 2px; color: #8A1C00; }
.consentRow { position: relative; display: block; padding: 6px 0 6px 52px; font-size: 17px; margin: 14px 0 6px; cursor: pointer; }
.consentRow input { position: absolute; opacity: 0; left: 0; top: 0; width: 34px; height: 34px; margin: 0; cursor: pointer; }
.consentRow::before { content: ""; position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border: 1px solid #000; background: #FFF; }
.consentRow svg { position: absolute; left: 3px; top: 5px; width: 28px; height: 28px; opacity: 0; }
.consentRow input:checked ~ svg { opacity: 1; }
.consentRow input:focus-visible ~ svg { opacity: .35; }
.sendCell {
  display: block;
  width: 25%;
  min-width: 180px;
  height: 55px;
  border: 1px solid #000;
  background: transparent;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  transition: color .4s ease, background .4s ease;
  margin-top: 12px;
}
.sendCell:hover { background: #000; color: #FFF; }
.sendCell:disabled { opacity: .2; }
.form-ok { border: 1px solid #000; background: #FFF; padding: 22px 24px; }
.form-ok h3 { font-family: "Cormorant Garamond", serif; font-weight: 300; font-size: 36px; margin: 0 0 8px; }
.form-ok p { margin: 0; }
.bait { display: none; }

/* piede greige */
.footerGreige { background: var(--greige); padding: 56px 0 24px; }
.footerCols { display: grid; grid-template-columns: repeat(5, 1fr); padding: 0 var(--marginNormal); }
.footerCols > div { border-left: 1px solid #000; padding: 0 20px 20px; min-width: 0; font-size: 16px; line-height: 22px; }
.footerCols .x2 { grid-column: span 2; }
.footerCols ul { list-style: none; margin: 0; padding: 0; }
.footerCols li { margin-bottom: 4px; }
.footerCols a { text-decoration: none; display: inline-block; padding: 2px 0; }
.footerCols a:hover { text-decoration: underline; }
.footerCols img { height: 22px; width: auto; margin-bottom: 14px; }
.footerCols button { background: none; border: 0; font: inherit; padding: 2px 0; cursor: pointer; text-decoration: underline; }
.copyLine { text-align: center; font-size: 12px; margin-top: 30px; }

/* consenso: carta nell'angolo */
.ck-card {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(390px, calc(100% - 40px));
  background: #FFF;
  border: 1px solid #000;
  box-shadow: 0 0 5px 1px rgba(61,61,61,.4);
  z-index: 150;
  padding: 20px 22px;
  font-size: 16px;
}
.ck-card p { margin: 0 0 14px; }
.ck-card .ck-row { display: flex; border-top: 1px solid #000; }
.ck-card .ck-row button { flex: 1; height: 46px; background: #FFF; border: 0; border-right: 1px solid #000; font: inherit; font-size: 16px; cursor: pointer; transition: background .4s ease, color .4s ease; }
.ck-card .ck-row button:last-child { border-right: 0; }
.ck-card .ck-row button:hover { background: #000; color: #FFF; }
.ck-card .ck-opts { padding: 10px 0 12px; }
.ck-card .ck-opts label { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }

/* titolo e testo delle altre pagine */
.inner-title { width: 70%; margin: 0 auto; padding: 120px 0 70px; text-align: center; }
.inner-title h1 { margin: 0; font-weight: 300; font-size: clamp(36px, 4.4vw, 62px); line-height: .98; letter-spacing: -1.6px; }
.inner-title p { font-family: "Cormorant Garamond", serif; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; margin: 22px 0 0; }
.inner-title .crumbs { font-size: 16px; margin-bottom: 24px; display: block; }
.textBlock { padding: 0 var(--marginNormal); margin-bottom: 110px; }
.textBlock h2 { font-family: "Cormorant Garamond", serif; font-weight: 300; font-size: 40px; line-height: 1.05; letter-spacing: -.6px; margin: 44px 0 14px; }
.textBlock h2:first-child { margin-top: 0; }
.textBlock p { margin: 0 0 16px; }
.legalText h2 { font-size: 34px; }
.pair { display: flex; gap: 30px; padding: 0 var(--marginNormal); margin-bottom: 110px; }
.pair > * { flex: 1 1 50%; min-width: 0; }
.pair img { width: 100%; aspect-ratio: .8; object-fit: cover; }
.aside-note { background: var(--avorio); border: 1px solid #000; padding: 22px 26px; margin: 26px 0; }

@media (max-width: 1440px) {
  :root { --marginBig: 150px; }
  .consentRow { font-size: 15px; }
}
@media (max-width: 1024px) {
  :root { --marginBig: 60px; }
  .menuPanel a { font-size: 36px; }
  .blog-grid, .serate-grid { grid-template-columns: repeat(2, 1fr); }
  .footerCols { grid-template-columns: repeat(3, 1fr); }
  .footerCols .x2 { grid-column: span 3; padding-top: 30px; }
}
@media (max-width: 740px) {
  :root { --marginBig: 20px; --marginNormal: 20px; }
  body { font-size: 18px; }
  .barTop, .barPage { font-size: 20px; }
  .barPage .barLabel { font-size: 14px; }
  .article-title, .inner-title { width: 100%; padding: 110px 20px 50px; }
  .columns_02, .pair, .drawer-body { flex-direction: column; }
  .drawer-body { padding: 20px 20px 50px; }
  .drawer-body .left { flex-basis: auto; }
  .drawer summary { padding: 10px 20px 8px; font-size: 20px; }
  .drawer summary svg { right: 20px; }
  .line-row { flex-direction: column; }
  .line-row label { border-right: 0; border-bottom: 1px solid #000; padding: 10px 12px; flex-basis: auto; }
  .line-row input, .line-row select { min-height: 46px; padding: 0 12px; }
  .notebook { padding-left: 66px; padding-right: 16px; }
  .notebook::before { left: 50px; }
  .notebook li::before { left: -64px; width: 44px; }
  .faqNum li { gap: 14px; }
  .faqNum li::before { flex-basis: 46px; font-size: 32px; }
}
@media (max-width: 550px) {
  .menuPanel { left: 0; right: 0; width: 100%; height: calc(100dvh - var(--barHeight) * 2); padding: 34px 20px 22px; box-shadow: none; }
  .blog-grid, .serate-grid { grid-template-columns: 1fr; }
  .footerCols { grid-template-columns: 1fr; }
  .footerCols .x2 { grid-column: auto; }
  .sendCell { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .revealElement, .revealMedia { opacity: 1; transform: none; transition: none; }
}

/* seconda passata: misure relative dove servono, barra stretta sul telefono */
.notebook li span { font-size: 1.0625rem; }
.serata p, .blog-grid figcaption { font-size: 1rem; }
.row-error { font-size: .9375rem; }
.barPage a { display: inline-block; padding: 6px 0; }
.lede p, .statement p { text-wrap: balance; }
@media (max-width: 420px) {
  .barPage .barLabel { font-size: .75rem; }
  .barPage a { font-size: 1.05rem; }
}

/* compiti per casa: elenco con le caselle disegnate come quelle del modulo */
.compiti { padding: 0 var(--marginBig); margin-bottom: 140px; }
.compiti-intro { max-width: 1150px; margin: 0 0 30px; }
.compiti-lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid #000; counter-reset: compito; }
.compiti-lista li { border-bottom: 1px solid #000; }
.compiti-lista label { display: flex; gap: 22px; align-items: flex-start; padding: 18px 0; cursor: pointer; }
.compiti-lista input { width: 34px; height: 34px; flex: 0 0 34px; margin: 0; accent-color: #000; }
.compiti-lista b { display: block; font-weight: 500; font-size: 22px; margin-bottom: 4px; }
.compiti-lista input:checked + span { opacity: .45; text-decoration: line-through; text-decoration-thickness: 1px; }
.compiti-stato { margin: 16px 0 0; font-family: "Cormorant Garamond", serif; font-size: 28px; min-height: 34px; }
@media (max-width: 740px) {
  .compiti-lista b { font-size: 19px; }
}

/* carta del consenso in basso a sinistra, come un foglio appoggiato */
.ck-card--sinistra { right: auto; left: 20px; transform: rotate(-.6deg); }
@media (prefers-reduced-motion: reduce) { .ck-card--sinistra { transform: none; } }
