
/* Layout: editoriale centrato, ispirato a Red Dot. Fila di tre foto uguali con quella centrale rialzata, storia a righe alternate con foto contenute, quattro materiali in sequenza che aprono una pagina dedicata. Palette: i verdi del sito Pollina. Testi del sito senza modifiche. */
:root {
  --bg: #f1f4ec;
  --surface: #e4ebd9;
  --fg: #1d2a16;
  --muted: #5b6b50;
  --green: #2f6a1f;
  --green-soft: #6aa84f;
  --line: #cdd8c0;
  --on-green: #f6f9f1;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}


* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 15px; line-height: 1.65;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; }
.wrap > * { min-width: 0; }
a { color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }

.note {
  margin: 16px auto 0; max-width: 1040px; font-size: 12.5px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px;
}

header.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding-block: 22px; border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 24px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
nav.menu { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 13px; }
nav.menu a { text-decoration: none; color: var(--muted); }
nav.menu a:hover { color: var(--fg); }
.pill {
  display: inline-block; font: inherit; font-size: 13px; text-decoration: none;
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--green);
}
.pill.solid { background: var(--green); color: var(--on-green); }
.pill.line { background: transparent; color: var(--fg); border-color: var(--fg); }

.hero { text-align: center; padding-block: 72px 44px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05; margin: 0 auto 18px; max-width: 14em; text-wrap: balance;
}
.hero p { color: var(--muted); max-width: 36em; margin: 0 auto; text-wrap: balance; }
.cta-row { margin-top: 26px; }
.place { font-size: 12px; color: var(--muted); margin-top: 20px; letter-spacing: .04em; }

figure { margin: 0; min-width: 0; }
figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.frame { overflow: hidden; border-radius: 4px; background: var(--surface); }

/* Fila di tre foto: stessa grandezza, quella centrale rialzata */
.opening { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 72px; align-items: start; }
.opening .frame { aspect-ratio: 4 / 5; }
.opening figure:nth-child(2) { transform: translateY(-24px); }

/* Storia come un libro: una colonna al centro, gli anni come titoli di capitolo */
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin: 0 0 14px; text-align: center; }
.contact h2, .types h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 46px); line-height: 1.12;
  margin: 0 auto 36px; max-width: 18em; text-wrap: balance; text-align: center;
}
.story { border-top: 1px solid var(--line); padding-block: 72px 40px; }
.book { max-width: 640px; margin: 0 auto; text-align: center; }
.chap-title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.5vw, 56px); line-height: 1.1; margin: 0; }
.orn { display: block; width: 44px; height: 1px; background: var(--green); margin: 22px auto 34px; }
.year { font-family: var(--serif); font-weight: 500; font-size: clamp(84px, 14vw, 132px); line-height: 1; letter-spacing: .03em; color: var(--green); margin: 0; font-variant-numeric: lining-nums; }
.year.name { font-size: clamp(40px, 6vw, 60px); font-weight: 400; color: var(--fg); line-height: 1.05; }
.chapter { padding-top: 88px; }
.prose { font-family: var(--serif); font-size: clamp(19px, 2.3vw, 22px); line-height: 1.7; color: var(--fg); text-align: justify; hyphens: manual; text-wrap: pretty; font-variant-numeric: lining-nums; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose p.dc::first-letter { float: left; font-size: 3.7em; line-height: .78; padding: .06em .1em 0 0; color: var(--green); font-weight: 500; }
.prose .salve { text-align: center; font-style: italic; color: var(--muted); margin-bottom: .6em; }
.plate { margin: 40px auto; max-width: 440px; }
.plate.narrow { max-width: 300px; margin-top: 0; }
.plate.wide { max-width: 560px; }
.plate figcaption { text-align: center; font-family: var(--serif); font-style: italic; font-size: 17px; }
.pair { display: flex; gap: 10px; align-items: flex-start; max-width: 560px; margin: 0 auto; }
.pair figure { flex: var(--r) 1 0; }
/* Materiali in sequenza, con le righe di separazione */
.types { padding-block: 72px 24px; border-top: 1px solid var(--line); text-align: center; margin-top: 40px; }
.lead { color: var(--muted); max-width: 38em; margin: 0 auto 40px; text-align: center; text-wrap: pretty; }
.cubes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cube {
  font: inherit; color: inherit; text-align: center; cursor: pointer; background: var(--surface);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 16px; aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.cube strong { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; }
.cube span { font-size: 13px; color: var(--muted); }
.cube:hover { border-color: var(--green); }
.cube[aria-expanded="true"] { background: var(--green); border-color: var(--green); color: var(--on-green); }
.cube[aria-expanded="true"] span { color: var(--on-green); opacity: .85; }
.hint { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.reveal { margin-top: 24px; text-align: left; }
.reveal .panel { border-top: 1px solid var(--line); padding-top: 36px; }
.panel .eyebrow { text-align: left; margin-bottom: 10px; }
.panel h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
.facts .wa { margin-top: 12px; }

.contact { text-align: center; padding-block: 80px; }
.contact h2 { margin-bottom: 14px; }
.contact .lead { margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 820px; margin: 32px auto 28px; text-align: left; }
.facts dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.hours-wrap { max-width: 640px; margin: 0 auto 32px; overflow-x: auto; }
.hours { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours caption { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); padding-bottom: 12px; text-align: center; }
.hours th, .hours td { padding: 12px 14px; text-align: left; border-block: 1px solid var(--line); }
.hours thead th { font-size: 12px; font-weight: 500; color: var(--muted); border-top: 1px solid var(--fg); }
.hours tbody th { font-weight: 500; }
.hours .closed { color: var(--muted); }
footer { padding-block: 24px 40px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); text-align: center; }

/* Pagina del materiale */
.detail { padding-block: 40px 72px; }
.back { display: inline-block; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 40px; }
.back:hover { color: var(--fg); }
.detail h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 80px); line-height: 1; margin: 0 0 10px; }
.detail .sub { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.2; color: var(--muted); margin: 0 0 40px; max-width: 24em; text-wrap: balance; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; border-top: 1px solid var(--line); padding-top: 36px; }
.panel .intro { color: var(--muted); margin: 0; font-size: 16px; max-width: 30em; }
.panel h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin: 0 0 10px; font-weight: 500; }
.panel ul { margin: 0 0 28px; padding: 0; list-style: none; }
.panel li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.panel li:last-child { border-bottom: 0; }
.panel .col2 > :last-child { margin-bottom: 0; }
.others { margin-top: 56px; }
.others .materials a { padding-block: 22px; }
.others .materials strong { font-size: 24px; }
.others .eyebrow { text-align: left; }

@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr; text-align: center; }
  .block, .block.flip { grid-template-columns: 1fr; gap: 24px; }
  .block.flip .media { order: 0; justify-self: start; }
  .media { max-width: 420px; }
  .panel { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  header.top { justify-content: center; text-align: center; }
  nav.menu { justify-content: center; }
  .hero { padding-block: 48px 28px; }
  .opening { grid-template-columns: 1fr; padding-bottom: 48px; }
  @media (min-width: 721px) { .opening figure:nth-child(2) { transform: translateY(-24px); } }
@media (max-width: 720px) { .opening figure:nth-child(2) { transform: none; } }
  .opening .frame { aspect-ratio: 4 / 3; }
  .cubes { grid-template-columns: 1fr 1fr; }
  .contact { padding-block: 56px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pill { transition: background .2s, color .2s; }
  .pill.line:hover { background: var(--fg); color: var(--bg); }
}
/* ===== Motivo "persiana" sopra l'impaginazione editoriale ===== */
.slats { background: repeating-linear-gradient(180deg, #2d6247 0 15px, #1f4733 15px 20px, #3a7757 20px 21px); }
header.top { border-bottom: 0; }
.hero.slats { display: flex; justify-content: center; padding: clamp(22px, 6vw, 64px) clamp(14px, 4vw, 40px); border-radius: 4px; }
.hero-plate { background: var(--bg); width: 100%; max-width: 760px; padding: 48px clamp(18px, 5vw, 56px) 36px; border-radius: 2px; box-shadow: 0 14px 34px rgba(0,0,0,.32); }
.opening { padding-top: 64px; }
.opening .win { display: grid; grid-template-columns: 14px minmax(0, 1fr) 14px; gap: 5px; }
.opening .anta { display: block; border-radius: 2px; }
.opening .win .frame { border-radius: 0; }
.opening figcaption { text-align: center; }
.band { height: 63px; border-radius: 4px; }
.story, .types { border-top: 0; }
.types { margin-top: 0; }
.cube[aria-expanded="true"] { background: repeating-linear-gradient(180deg, #2d6247 0 15px, #1f4733 15px 20px, #3a7757 20px 21px); border-color: #1f4733; }
.cube[aria-expanded="true"] strong, .cube[aria-expanded="true"] span { background: var(--bg); color: var(--fg); opacity: 1; padding: 2px 12px; }
.orn { width: 56px; height: 17px; background: repeating-linear-gradient(180deg, var(--green) 0 3px, transparent 3px 7px); }
/* ===== Storia a pagine, pensata per il telefono ===== */
.story { padding-block: 48px 40px; text-align: center; }
.story .chap-title { font-size: clamp(34px, 9vw, 52px); margin: 0 0 4px; }
.swipe-hint { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.flip-book { position: relative; display: flex; align-items: flex-start; gap: 12px; max-width: 520px; margin: 0 auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 6% 8px; scrollbar-width: none; }
.flip-book::-webkit-scrollbar { display: none; }
.leaf { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px 10px 22px; }
.leaf .photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; }
.leaf .head { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; margin: 18px 6px 12px; }
.leaf .head.date { font-size: 68px; line-height: 1; color: var(--green); font-variant-numeric: lining-nums; }
.leaf p { font-family: var(--serif); font-size: 19px; line-height: 1.5; margin: 0 8px 10px; font-variant-numeric: lining-nums; text-wrap: pretty; }
.leaf p:last-child { margin-bottom: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.pager button { font: inherit; font-size: 26px; line-height: 1; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--green); background: transparent; color: var(--fg); cursor: pointer; }
.pager button:disabled { opacity: .3; cursor: default; }
/* ===== Caratteri dello stile rivista ===== */
:root { --serif: "DM Serif Display", Georgia, "Times New Roman", serif; --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3, .brand, .when, .cube strong, .leaf .head, .leaf .head.date, .panel h3, .types h2, .contact h2, .story .chap-title { font-weight: 400 !important; }
.brand { letter-spacing: .02em; text-transform: none; }
.hero h1 { font-size: clamp(38px, 8.5vw, 66px); letter-spacing: -.01em; }
.hero h1 em { display: block; color: var(--green); }
.leaf p { font-family: var(--sans); font-size: 17px; line-height: 1.6; }
/* ===== La persiana che si apre sulla storia ===== */
.window { position: relative; max-width: 520px; margin: 0 auto; }
.window .shutter { display: none; }
.window.closed { height: min(560px, 130vw); overflow: hidden; }
.window.closed .inside { visibility: hidden; }
.window.closed .shutter, .window.opening .shutter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; position: absolute; top: 0; left: 0; right: 0; height: min(560px, 130vw);
  z-index: 2; padding: 10px; border: 0; border-radius: 6px; background: #14260f; cursor: pointer; perspective: 1400px; font: inherit;
}
.window.opening .shutter { background: transparent; pointer-events: none; }
.door { display: block; position: relative; border: 12px solid #2d6247; border-radius: 3px;
  background: repeating-linear-gradient(180deg, #2d6247 0 15px, #1f4733 15px 20px, #3a7757 20px 21px);
  transition: transform 1.1s cubic-bezier(.55,.05,.25,1), opacity .4s ease .7s; }
.door.left { transform-origin: left center; }
.door.right { transform-origin: right center; }
.door::after { content: ""; position: absolute; top: 50%; width: 9px; height: 46px; margin-top: -23px; background: #14260f; border-radius: 3px; }
.door.left::after { right: -6px; }
.door.right::after { left: -6px; }
.window.opening .door.left { transform: rotateY(-100deg); opacity: 0; }
.window.opening .door.right { transform: rotateY(100deg); opacity: 0; }
.open-label { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); white-space: nowrap; background: var(--bg); color: var(--fg);
  font-size: 16px; font-weight: 700; padding: 13px 24px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,.35); transition: opacity .3s ease; }
.window.opening .open-label { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .door { transition: none; } }
/* ===== Fila delle tre foto, senza sfondo ===== */
.opening figcaption { text-align: center; }

/* titolo della storia in verde */
.story .chap-title { color: var(--fg); }
/* ===== Didascalie nello stesso stile di "qualita garantita!" ===== */
@media (min-width: 721px) { .opening figure:nth-child(2) { transform: translateY(-24px); } }
@media (max-width: 720px) { .opening figure:nth-child(2) { transform: none; } }
.opening figcaption.cap { text-align: center; margin-top: 14px; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; color: var(--green); }
/* ===== Contatti nello stesso stile dell'apertura ===== */
.contact.slats { display: flex; justify-content: center; padding: clamp(22px, 6vw, 64px) clamp(10px, 4vw, 40px); border-radius: 4px; margin-top: 56px; margin-bottom: 24px; }
.contact-plate { text-align: center; }
.contact-plate h2 { font-size: clamp(38px, 8.5vw, 60px); margin-bottom: 14px; }
.contact-plate .facts { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 460px; margin: 28px auto 12px; text-align: center; }
.contact-plate .facts > div { padding: 24px 0; border-top: 1px solid var(--line); }
.contact-plate .facts dt { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.2; text-transform: none; letter-spacing: 0; color: var(--green); margin-bottom: 6px; }
.contact-plate .facts dd { font-size: 17px; }
.contact-plate .pill.line { background: var(--green); border-color: var(--green); color: var(--on-green); font-size: 14px; padding: 11px 24px; margin-top: 14px; }
.contact-plate .pill.line:hover { background: var(--green); color: var(--on-green); filter: brightness(1.12); }
.contact-plate .hours-wrap { max-width: 520px; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 24px; }
.contact-plate .hours caption { font-family: var(--serif); font-style: italic; font-size: 26px; text-transform: none; letter-spacing: 0; color: var(--green); }
.contact-plate .hours thead th { border-top: 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.contact-plate .hours th, .contact-plate .hours td { text-align: center; }
.contact-plate .hours tbody th { text-align: left; }
@media (max-width: 480px) { .contact-plate { padding-inline: 12px; } .contact-plate .hours { font-size: 13px; } .contact-plate .hours th, .contact-plate .hours td { padding: 10px 4px; } .contact-plate .hours thead th { font-size: 10px; letter-spacing: .04em; } }
html { scroll-behavior: smooth; color-scheme: light; }
.facts dd a { text-decoration: none; }
.scheda { max-width: 660px; margin: 0 auto; padding-top: 32px; border-top: 1px solid var(--line); text-align: left; }
.scheda .eyebrow { text-align: left; }
.scheda h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 5vw, 32px); line-height: 1.2; margin: 0 0 14px; }
.scheda h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 21px; line-height: 1.25; color: var(--green); margin: 24px 0 8px; }
.scheda p { margin: 0 0 12px; font-size: 16px; }
/* ===== Foto di famiglia in trasparenza dietro "Contatti" ===== */
.intro-foto { position: relative; isolation: isolate; overflow: hidden; border-radius: 4px; aspect-ratio: 1024 / 761; max-height: 440px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 20px 12px; }
.intro-foto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; opacity: .3; z-index: -1; }
.intro-foto .lead { color: var(--fg); font-weight: 500; margin-bottom: 0; }
.leaf .photo.due { aspect-ratio: 4 / 5; margin-top: 16px; }
.leaf .photo.due img { object-position: 50% 45%; }
.flip-book { overflow-y: hidden; transition: height .3s ease; }
.leaf .photo.alta { aspect-ratio: 4 / 5; }
.leaf .photo.alta img { object-position: 50% 45%; }
.pager { margin-top: 10px; }

/* ===== Pagine dei lavori e collaborazioni ===== */
.sub .hero.slats { margin-top: 6px; }
.sub .hero h1 { margin: 0; font-size: clamp(34px, 8vw, 58px); }
.sub .hero-plate { padding-block: 34px 30px; }
.testo { max-width: 660px; margin: 40px auto 0; }
.testo h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 27px; line-height: 1.25; color: var(--green); margin: 34px 0 10px; text-align: center; }
.testo h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; margin: 0 0 14px; text-align: center; }
.testo p { margin: 0 0 14px; font-size: 16px; text-align: center; }
.galleria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.galleria figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--surface); }
.galleria figure.larga { grid-column: span 2; aspect-ratio: auto; align-self: center; }
.galleria figure.larga img { height: auto; }
.altri { margin: 56px 0 8px; text-align: center; }
.altri h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 18px; }
.altri ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.altri ul a { display: inline-block; text-decoration: none; border: 1px solid var(--green); border-radius: 999px; padding: 8px 18px; font-size: 14px; }
.indice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.indice a { text-decoration: none; display: block; text-align: center; }
.indice .f { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
.indice span { display: block; font-family: var(--serif); font-size: 23px; margin-top: 10px; }
.sub footer { margin-top: 40px; }
.link-foto { margin-top: 8px; }
@media (max-width: 720px) { .galleria, .indice { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
/* ===== Ogni foto con la sua descrizione, nello stesso riquadro ===== */
.blocchi { display: flex; flex-direction: column; gap: 28px; margin-top: 36px; }
.blocco { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.blocco:nth-child(even) .foto { order: 2; }
.blocco .foto { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; align-self: start; }
.blocco .foto img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.blocco .foto img:first-child { grid-column: 1 / -1; }
.blocco .foto.pari { grid-template-columns: 1fr 1fr; }
.blocco .foto.pari img:first-child { grid-column: auto; }
.blocco .foto img.intera { aspect-ratio: auto; grid-column: 1 / -1; }
.blocco .did { padding: 6px 8px 10px; text-align: center; }
.blocco .did h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 27px; line-height: 1.2; color: var(--green); margin: 0 0 12px; }
.blocco .did h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.25; margin: 0 0 10px; }
.blocco .did p { margin: 0 0 12px; font-size: 16px; }
.blocco .did > :last-child { margin-bottom: 0; }
@media (max-width: 720px) { .blocco { grid-template-columns: 1fr; gap: 12px; } .blocco:nth-child(even) .foto { order: 0; } }
/* ===== Disposizione come il sito vecchio ===== */
.riga { display: grid; grid-template-columns: var(--col); column-gap: 22px; row-gap: 18px; align-items: start; margin-top: 40px; }
.riga.media { align-items: center; }
.riga.fascia { background: var(--surface); border-radius: 6px; padding: 20px; }
.cella { min-width: 0; }
.cella h2 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 22px; line-height: 1.25; color: var(--green); margin: 0 0 10px; }
.cella p { margin: 0 0 12px; font-size: 15px; }
.cella ul { margin: 0 0 14px; padding-left: 20px; font-size: 15px; }
.cella li { margin-bottom: 8px; }
.cella a { color: var(--green); }
.cella .centro { text-align: center; }
.cella figure { margin: 0; }
.cella p + figure { margin-top: 14px; }
.cella figure img { width: 100%; height: auto; object-fit: cover; display: block; }
.cella figure.intera img { object-fit: contain; }
.cella figcaption { text-align: center; font-size: 14px; margin-top: 10px; color: var(--fg); }
.cella figure.sinistra figcaption { text-align: left; }
.cella .grande { display: block; font-family: var(--serif); font-size: 24px; }
.giostra .nastro { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: flex-start; }
.giostra .nastro::-webkit-scrollbar { display: none; }
.giostra .nastro img { flex: 0 0 100%; width: 100%; height: auto; object-fit: cover; scroll-snap-align: start; }
.punti { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.punti button { width: 24px; height: 24px; padding: 0; border: 0; background: radial-gradient(circle, var(--line) 0 5px, transparent 6px); cursor: pointer; }
.punti button[aria-current="true"] { background: radial-gradient(circle, var(--green) 0 5px, transparent 6px); }
@media (max-width: 720px) {
  .riga { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .cella:empty { display: none; }
}
/* ===== Armonia delle pagine ===== */
.riga { column-gap: 30px; row-gap: 20px; margin-top: 54px; align-items: start; }
.riga:first-of-type { margin-top: 36px; }
.cella { align-self: start; }
.riga.media .cella { align-self: center; }
.cella p, .cella li { line-height: 1.7; }
.cella h2 { margin-bottom: 12px; }
.cella figure img, .giostra .nastro img { height: var(--h, auto); border-radius: 4px; }
.cella figure.intera img { height: auto; }
.cella figcaption { margin-top: 12px; line-height: 1.4; color: var(--muted); }
.riga.fascia { padding: 26px; }

@media (max-width: 720px) {
  .riga { margin-top: 36px; row-gap: 22px; align-items: start; }
  .cella figure img, .giostra .nastro img { height: auto; }
}
/* ===== Torna indietro ===== */
.indietro { margin: 26px 0 0; font-size: 15px; }
.indietro.fondo { margin: 44px 0 0; text-align: center; }
.indietro a { color: var(--green); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.indietro a:hover, .indietro a:focus-visible { border-bottom-color: var(--green); }
/* ===== Collaborazioni: righe equilibrate ===== */
.riga.centrata { justify-content: center; }
@media (max-width: 820px) { .riga.media { grid-template-columns: minmax(0, 1fr) !important; } .riga.media .cella figure img { height: auto; } }
/* ===== Telefono: foto più piccole, affiancate a due a due ===== */
@media (max-width: 720px) {
  .riga { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 10px; row-gap: 14px; margin-top: 28px; }
  .riga .cella { grid-column: 1 / -1; }
  .riga .cella.foto { grid-column: auto; }
  .riga .cella.foto.piena { grid-column: 1 / -1; }
  /* foto intere, mai tagliate: proporzioni originali, altezza massima limitata */
  .cella.foto figure img { width: auto; max-width: 100%; height: auto; max-height: 230px; object-fit: contain; margin: 0 auto; background: transparent; }
  .cella.foto.piena figure img { max-height: 300px; }
  .cella.foto .giostra .nastro img { height: auto; object-fit: contain; }
  .cella.foto figcaption { font-size: 12.5px; margin-top: 6px; }
}