
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f5;
  --cream: #ffffff;
  --dark: #0a0a0c;
  --dark-2: #1a1a1c;
  --text: #0a0a0c;
  --text-2: #4a4a52;
  --mute: #8a8a93;
  --mute-2: #b8b8be;
  --mint: #b8e6cf;
  --mint-2: #9bd6b8;
  --mint-3: #d4eedf;
  --green: #22c55e;
  --green-2: #16a34a;
  --red: #e21b2d;
  --red-2: #b51220;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}

img {
  height: auto;
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  letter-spacing: -0.025em;
  margin: 0;
}

/* Cerchio decorativo grande sullo sfondo */
.page::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  max-width: 1100px;
  max-height: 1100px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  min-height: 100vh;
}

/* ════════════════════════════════════════════════
     TESTATA E NAVIGAZIONE
     ════════════════════════════════════════════════ */
.header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 56px);
}

.nav-left {
  display: inline-flex;
  gap: clamp(20px, 3vw, 36px);
}

.nav-left a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 2px;
  position: relative;
  transition: opacity 0.2s;
}

.nav-left a:hover {
  opacity: 0.55;
}

/* Vecchio interruttore del template; il logo fp. attuale usa .brand in B01 */
.brand-toggle {
  width: 60px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #cfc5b2, #b8ad97);
  position: relative;
  box-shadow:
    inset 0 -2px 4px rgba(0, 0, 0, 0.12),
    inset 0 2px 3px rgba(255, 255, 255, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background 0.3s;
}

.brand-toggle .thumb {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  background: radial-gradient(circle at 30% 25%, #2e2e30 0%, #08080a 70%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 3px rgba(0, 0, 0, 0.4),
    0 2px 5px rgba(0, 0, 0, 0.3);
  transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-toggle.on .thumb {
  left: 35px;
}

.nav-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  position: relative;
  transition:
    background 0.25s,
    transform 0.25s;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  color: var(--text);
}

.icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 4px rgba(226, 55, 68, 0.4);
}

.avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #8a9eff 0%, #5a6eff 50%, #4a52d4 100%);
  margin-left: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(90, 110, 255, 0.35);
  cursor: pointer;
  transition: transform 0.3s;
}

.avatar-btn:hover {
  transform: scale(1.08);
}

/* ════════════════════════════════════════════════
     APERTURA DELLA PAGINA
     ════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 56px) clamp(60px, 8vw, 100px);
  max-width: 1440px;
  margin: 0 auto;
}
.hero-img-bg {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  padding: 28px 0 48px;
}
.hero-img {
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 6px solid var(--cream);
  border-radius: 0;
  background: var(--red-2);
  box-shadow: 0 18px 36px #0000001f;
}
.hero-img-secondary {
  margin-top: 64px;
  border-radius: 0;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-img-primary img {
  object-position: center center;
}
.hero-img-secondary img {
  object-position: 35% center;
}
/* ─── COLONNA DI TESTO ─── */
.info {
  padding-top: clamp(20px, 4vw, 60px);
}

.title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(44px, 6.4vw, 88px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: var(--dark);
}

.title .line {
  display: block;
  position: relative;
  white-space: nowrap;
}

.title .line + .line {
  margin-top: 4px;
}

.title .word {
  display: inline-block;
  position: relative;
}

/* Cerchio rosso disegnato attorno al cognome */
.word-wrap {
  display: inline-block;
  position: relative;
  padding: 4px 14px 6px;
}

.organic-circle {
  position: absolute;
  left: -5px;
  top: -3%;
  width: calc(100% + 10px);
  height: 110%;
  pointer-events: none;
  overflow: visible;
}

.organic-circle path {
  fill: none;
  stroke: var(--red-2);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Freccia decorativa del template originale */
.title-arrow {
  display: inline-block;
  vertical-align: 0.12em;
  margin-left: clamp(8px, 1.5vw, 18px);
  line-height: 0;
}

.title-arrow svg {
  height: clamp(18px, 1.8vw, 28px);
  width: auto;
  display: block;
}

.title-arrow path {
  fill: none;
  stroke: var(--dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Timbro del template originale, assente nell’HTML attuale */
.stamp {
  display: inline-block;
  width: clamp(28px, 3.6vw, 42px);
  height: clamp(28px, 3.6vw, 42px);
  margin-left: clamp(8px, 1.5vw, 16px);
  background: linear-gradient(140deg, #f04453 0%, #d8243a 60%, #b51e30 100%);
  border-radius: 7px;
  vertical-align: 0.05em;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -3px 5px rgba(0, 0, 0, 0.25),
    0 6px 14px rgba(226, 55, 68, 0.35),
    0 12px 24px rgba(226, 55, 68, 0.18);
}

.stamp .mark {
  position: absolute;
  inset: 18%;
  display: grid;
  place-items: center;
}

.stamp .mark svg {
  width: 100%;
  height: 100%;
}

.stamp .mark svg path {
  fill: none;
  stroke: white;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 24px;
  color: var(--dark);
}

.desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 260px;
  margin: 0 0 40px;
}

.cta-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

/*
Pulsante principale nero: padding = spazio interno; border-radius = forma a pillola.
*/
.btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px 8px 8px;
  border-radius: 999px;
  background: var(--dark);
  color: white;
  font-size: 14px;
  font-weight: 500;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -3px 5px rgba(0, 0, 0, 0.3),
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 22px 40px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-cart:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -3px 5px rgba(0, 0, 0, 0.3),
    0 14px 30px rgba(0, 0, 0, 0.28),
    0 30px 50px rgba(0, 0, 0, 0.14);
}

.btn-cart .check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  color: var(--dark);
  display: grid;
  place-items: center;
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.08);
}

.btn-cart .check svg {
  width: 12px;
  height: 12px;
}

/*
Pulsante tondo con freccia accanto al pulsante principale.
*/
.btn-heart {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--text);
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s,
    transform 0.25s;
}

.btn-heart:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.btn-heart.liked {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.btn-heart svg {
  width: 18px;
  height: 18px;
}

/* ════════════════════════════════════════════════
     CONTENITORE CENTRALE DELLA FOTO
     ════════════════════════════════════════════════ */
.stage {
  position: relative;
  min-height: clamp(440px, 56vw, 660px);
  z-index: 5;
}

/* Arco rosso editoriale dietro le foto */
.arch {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  height: 78%;
  background: var(--red-2);
  border-radius: 50% 50% 12px 12px / 38% 38% 4% 4%;
  box-shadow:
    inset 0 -12px 24px rgba(0, 0, 0, 0.05),
    inset 0 10px 20px rgba(255, 255, 255, 0.35);
  z-index: 1;
}

/* Contorni degli archi dietro la foto */
.arch-ring {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 86%;
  height: 86%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 0;
}

.arch-ring.b {
  width: 94%;
  height: 94%;
  bottom: 2%;
  opacity: 0.6;
}

/* Linea SVG decorativa dietro la foto */
.ribbon {
  position: absolute;
  inset: 8% 4% 4% 4%;
  width: 92%;
  height: 92%;
  z-index: 3;
  pointer-events: none;
}

.ribbon path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sfere decorative animate; s1-s5 ne impostano posizione e dimensioni */
.sphere {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #f0f0f3 40%, #c0c0c8 100%);
  box-shadow:
    inset 0 -4px 8px rgba(0, 0, 0, 0.1),
    inset 0 3px 5px rgba(255, 255, 255, 0.6),
    0 6px 14px rgba(0, 0, 0, 0.1),
    0 18px 32px rgba(0, 0, 0, 0.06);
  z-index: 4;
}

.sphere.s1 {
  left: 12%;
  top: 30%;
  width: 26px;
  height: 26px;
}

.sphere.s2 {
  left: 18%;
  top: 60%;
  width: 18px;
  height: 18px;
}

.sphere.s3 {
  right: 14%;
  top: 38%;
  width: 34px;
  height: 34px;
}

.sphere.s4 {
  right: 28%;
  bottom: 32%;
  width: 22px;
  height: 22px;
}

.sphere.s5 {
  left: 28%;
  top: 16%;
  width: 14px;
  height: 14px;
}

/* Immagine del template; il ritratto attuale è personalizzato in B03 */
.bottle-wrap {
  position: absolute;
  inset: 4% 0 0;
  display: grid;
  place-items: center;
  z-index: 5;
}

.bottle {
  width: 150%;
  max-width: 1000px;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.2)) drop-shadow(0 36px 50px rgba(0, 0, 0, 0.12));
  transform-origin: center bottom;
}

.bottle-fallback {
  /* Sagoma del vecchio prodotto, non usata nel ritratto attuale */
  width: 38%;
  max-width: 200px;
  aspect-ratio: 1 / 2.2;
  background: linear-gradient(180deg, #2a2a2c 0%, #0c0c0e 100%);
  border-radius: 12% 12% 8% 8% / 6% 6% 3% 3%;
  box-shadow:
    inset 0 -10px 20px rgba(0, 0, 0, 0.4),
    inset 0 5px 10px rgba(255, 255, 255, 0.08),
    0 30px 50px rgba(0, 0, 0, 0.3);
  position: relative;
}

.bottle-fallback::before {
  content: "";
  position: absolute;
  left: 35%;
  top: -8%;
  width: 30%;
  height: 14%;
  background: linear-gradient(180deg, #1c1c1e, #0a0a0c);
  border-radius: 8% 8% 4% 4%;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.5);
}

/* Pulsante tondo per scorrere alla sezione successiva */
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  color: white;
  z-index: 8;
  backdrop-filter: blur(4px);
  transition:
    background 0.25s,
    transform 0.25s;
  animation: scrollBounce 2.2s infinite ease-in-out;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 6px);
  }
}

.scroll-down:hover {
  background: rgba(255, 255, 255, 0.15);
  animation-play-state: paused;
}

.scroll-down svg {
  width: 16px;
  height: 16px;
}

/* Etichette sospese sulla foto: Rete 7 e L’Occhio */
.notif {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  background: white;
  border-radius: 999px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.08),
    0 22px 40px rgba(0, 0, 0, 0.06);
  z-index: 7;
  font-size: 12.5px;
}

.notif .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.notif .av svg {
  width: 100%;
  height: 100%;
}

.notif .text {
  line-height: 1.3;
}

.notif .text strong {
  font-weight: 600;
}

.notif .text-2 {
  color: var(--mute);
  font-size: 11.5px;
}

.notif .ind {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: white;
  box-shadow:
    inset 0 -2px 3px rgba(0, 0, 0, 0.18),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.notif .ind.heart {
  background: linear-gradient(135deg, #f04453, #d8243a);
}

.notif .ind.check {
  background: linear-gradient(135deg, #2ecc71, #16a34a);
}

.notif .ind svg {
  width: 12px;
  height: 12px;
}

.notif-like {
  right: -10%;
  top: 25%;
}

.notif-buy {
  left: 6%;
  bottom: 28%;
}

/* ════════════════════════════════════════════════
     COLONNA LATERALE
     ════════════════════════════════════════════════ */
.side {
  padding-top: clamp(20px, 3vw, 40px);
}

.pagination {
  display: inline-flex;
  gap: 12px;
  margin-bottom: 40px;
  justify-content: flex-start;
}

.pag-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s;
}

.pag-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  transform: translateY(-1px);
}

.pag-btn svg {
  width: 22px;
  height: 22px;
}

.accordion {
  margin-top: 60px;
}

.acc-item {
  border-bottom: 1px solid var(--line-2);
}

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color 0.25s;
}

.acc-head:hover {
  color: var(--text-2);
}

.acc-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition:
    transform 0.35s,
    background 0.25s;
}

.acc-icon svg {
  width: 12px;
  height: 12px;
}

.acc-icon .v {
  transition: opacity 0.25s;
}

.acc-item[data-open="true"] .acc-icon .v {
  opacity: 0;
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.acc-item[data-open="true"] .acc-body {
  max-height: 200px;
}

.acc-body-inner {
  padding-bottom: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 260px;
}

/* ════════════════════════════════════════════════
     SCHEDE DEI PROGETTI EDITORIALI
     ════════════════════════════════════════════════ */
.related {
  position: relative;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 56px) clamp(60px, 8vw, 100px);
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.6) 30%);
  z-index: 5;
}

.related-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.related-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 16ch;
}

.related-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: white;
  flex-shrink: 0;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.25s;
}

.related-cta:hover {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
  transform: translateY(-2px);
}

.related-cta svg {
  width: 14px;
  height: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.prod {
  position: relative;
  border-radius: 28px;
  padding: 28px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.04);
}

.prod:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 6px 16px rgba(0, 0, 0, 0.06),
    0 30px 60px rgba(0, 0, 0, 0.1);
}

/*
COLORI DELLE SCHEDE: rosso, pesca e lilla. Modifica i colori nei linear-gradient.
*/
.prod.red {
  background: linear-gradient(160deg, #eed4d4 0%, #e6b8b8 100%);
}

.prod.peach {
  background: linear-gradient(160deg, #ffe4cc 0%, #ffcfa8 100%);
}

.prod.blue {
  background: linear-gradient(160deg, #dcddff 0%, #bbbaff 100%);
}

.prod-img-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 76%;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.prod-img-wrap img {
  height: 78%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.18)) drop-shadow(0 24px 36px rgba(0, 0, 0, 0.1));
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prod:hover .prod-img-wrap img {
  transform: translateY(-6px) scale(1.04);
}

.prod-like {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: var(--dark);
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s;
}

.prod-like:hover {
  background: var(--dark);
  color: white;
  transform: scale(1.08);
}

.prod-like.liked {
  background: var(--red);
  color: white;
}

.prod-like svg {
  width: 14px;
  height: 14px;
}

.prod-meta {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.prod-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--dark);
}

.prod-sub {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}

.prod-price {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
}

/* ════════════════════════════════════════════════
     REGOLE ORIGINARIE PER SCHERMI PICCOLI — integrate dalla parte C
     ════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .info {
    padding-top: 0;
  }

  .side {
    padding-top: 0;
  }

  .stage {
    min-height: clamp(420px, 80vw, 540px);
  }

  .notif-like {
    right: 4%;
  }

  .notif-buy {
    left: 4%;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  

  .nav-left {
    display: none;
  }

  .hero {
    padding: 16px;
  }

  .related {
    padding: 60px 16px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .stage {
    min-height: 380px;
  }

  .sphere {
    transform: scale(0.7);
  }

  .notif {
    font-size: 11px;
    padding: 6px 12px 6px 6px;
  }

  .notif .av {
    width: 26px;
    height: 26px;
  }
}

/* ===========================================================================
B. ASPETTO DEL SITO DI FRANCESCO — INIZIA A MODIFICARE DA QUI
Le regole seguenti completano o sostituiscono quelle della parte A.
=========================================================================== */

/*
B00. COLORE DELLE ETICHETTE
Aggiorna --mute della palette iniziale.
*/
:root {
  --mute: #66666e;
}
/*
LINK INTERNI E ACCESSIBILITÀ
scroll-margin-top lascia spazio sopra la sezione raggiunta dal link.
:focus-visible evidenzia il focus da tastiera; .skip-link permette di saltare il menu.
*/
section[id],
main[id] {
  scroll-margin-top: 24px;
}
:focus-visible {
  outline: 3px solid #167443;
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--dark);
  color: white;
  border-radius: 12px;
}
.skip-link:focus {
  top: 16px;
}
/*
B01. MENU E LOGO
.brand regola fp.; .brand span il punto; .header-contact il pulsante Parliamone.
*/
.brand {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.08em;
}
.brand span {
  color: var(--red-2);
}
.header-contact {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  gap: 18px;
  align-items: center;
}
.header-contact span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--red-2);
  color: #ffffff;
  border-radius: 50%;
  font-size: 20px;
}
/*
B02. APERTURA: COLONNE E TESTI
Le due colonne ripartiscono lo spazio tra testo e fotografie.
gap separa le colonne; padding-top sposta l’intero blocco dall’alto.
*/
.hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(30px, 4vw, 64px);
  padding-top: 30px;
}
/*
Colonna sinistra: padding-top sposta il testo verticalmente.
*/
.info {
  position: relative;
  z-index: 6;
  padding-top: 0;
}
.small-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #18814c;
  border-radius: 50%;
  flex: 0 0 auto;
}
/*
NOME PRINCIPALE: font-size regola la dimensione; line-height la distanza tra righe.
Questa è la regola generale; la parte C contiene le dimensioni per tablet e telefono.
*/
.title {
  font-size: clamp(45px, 5.25vw, 75px);
  line-height: 1.05;
  margin-bottom: 30px;
}
.title .word-wrap {
  padding-left: 0;
  padding-right: 10px;
}
/*
RUOLI PROFESSIONALI: Giornalista, Fondatore, Conduttore. Non è un prezzo.
*/
.price {
  font-size: clamp(22px, 2.05vw, 29px);
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 20px;
}
/*
Descrizione sotto i ruoli: max-width limita la lunghezza delle righe.
*/
.desc {
  font-size: 14px;
  max-width: 300px;
  margin-bottom: 26px;
}
/*
B03. RITRATTO E DECORAZIONI
.stage regola l’altezza dell’area; .bottle-wrap posiziona la foto al suo interno.
*/
.stage {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 540px;
}
.bottle-wrap {
  inset: 12% 5% 12%;
}
/*
RITAGLIO DELLA FOTO
width/height riempiono il contenitore; max-height limita l’altezza.
object-position sposta il ritaglio; border-radius disegna la cornice.
Il file della foto si cambia in src nell’HTML.
*/
.bottle.portrait {
  width: 100%;
  height: 100%;
  max-height: 490px;
  object-fit: cover;
  object-position: center 47%;
  border-radius: 48% 48% 24px 24px / 30% 30% 24px 24px;
  filter: none;
  box-shadow: 0 24px 45px #182e2826;
}
/*
Arco rosso e contorni neri dietro le foto: dimensioni e posizione.
*/
.arch {
  width: 96%;
  height: 79%;
  bottom: 9%;
}
.arch-ring {
  width: 103%;
}
.arch-ring.b {
  width: 110%;
}
/*
Sfere decorative: z-index le porta davanti alla foto; s1-s5 ne impostano la posizione.
*/
.sphere {
  z-index: 6;
}
.sphere.s1 {
  left: -1%;
  top: 34%;
}
.sphere.s2 {
  left: 2%;
  top: 70%;
}
.sphere.s3 {
  right: -3%;
  top: 42%;
}
.sphere.s4 {
  right: 4%;
  bottom: 20%;
}
/*
Etichette sulla foto: .notif-like = Rete 7; .notif-buy = L’Occhio.
*/
.notif-like {
  right: -5%;
  top: 30%;
}
.notif-buy {
  left: -5%;
  bottom: 22%;
}
.notif .av {
  display: grid;
  place-items: center;
}
.live-symbol {
  background: #fce7e6;
  color: #c92638;
}
.editorial-symbol {
  background: var(--red-2);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 21px;
}
.notif .text-2 {
  display: block;
  color: #65656d;
}
.scroll-down {
  bottom: 5%;
  background: var(--dark);
  border-color: var(--dark);
  font-size: 24px;
}
/*
B04. RIEPILOGO LATERALE
padding-top allinea la colonna al resto dell’apertura.
*/
.side {
  padding-top: 65px;
}
/*
Comandi del cambio foto: si mostrano quando main.js abilita .photos-ready.
Se i pulsanti non sono nell’HTML, queste regole non creano elementi.
*/
.pagination {
  display: none;
  align-items: center;
  gap: 5px;
  margin-bottom: 35px;
}
.photos-ready .pagination {
  display: inline-flex;
}
.pag-btn {
  border: 1px solid var(--line-2);
  font-size: 20px;
}
#photoCount {
  font-size: 10px;
  color: var(--text-2);
  min-width: 54px;
  text-align: center;
}
/*
Frase laterale e corsivo scritto a mano.
*/
.side-note {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.35;
  margin: 0;
}
.side-note em {
  font-family: Caveat, cursive;
  font-size: 34px;
  color: #167443;
  font-weight: 500;
}
/*
Pannelli apribili: spazio superiore e aspetto dei titoli.
Il tag details apre e chiude il contenuto anche senza JavaScript.
*/
.accordion {
  margin-top: 30px;
}
.acc-head {
  list-style: none;
  font-size: 13px;
  gap: 8px;
  cursor: pointer;
}
.acc-head::-webkit-details-marker {
  display: none;
}
.acc-icon {
  font-size: 19px;
  flex-shrink: 0;
}
details[open] .acc-icon {
  transform: rotate(45deg);
}
.acc-body-inner {
  font-size: 12px;
  max-width: none;
}
.text-link {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-top: 10px;
}
.side-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: var(--text-2);
  margin-top: 24px;
}
/*
B05. SEZIONI E CRONOLOGIA
Regola comune alle sezioni sotto l’apertura: max-width limita la larghezza,
margin: 0 auto centra il blocco, padding crea spazio interno.
*/
.editorial-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 36px;
  position: relative;
  z-index: 5;
}
.section-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.section-top > span {
  font-size: 13px;
  color: var(--text-2);
}
/*
Due colonne: modifica le frazioni per le proporzioni e gap per la distanza.
*/
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
/*
Titoli grandi delle sezioni: dimensione adattabile e altezza delle righe.
*/
.editorial-section h2 {
  font-size: clamp(32px, 4.3vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.editorial-section h2 em {
  font-family: Caveat, cursive;
  font-weight: 600;
  color: var(--red-2);
  font-size: 1.3em;
}
.section-copy {
  max-width: 490px;
}
.section-copy p,
.section-intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}
.section-copy p:first-child {
  margin-top: 0;
}
.section-copy .related-cta {
  margin-top: 16px;
}
.intro-section {
  border-top: 1px solid var(--line-2);
}
.thread-section {
  background: #b8e6cf40;
  border-radius: 32px;
  margin-top: 20px;
}
.section-copy .statement {
  font-size: 24px;
  line-height: 1.4;
  color: var(--dark);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.green-period {
  color: var(--red-2);
}
/*
Cronologia: quattro colonne su desktop; due sul telefono, nella parte C.
*/
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 50px;
}
.timeline article {
  border-top: 1px solid #a5c8b1;
  padding-top: 24px;
}
.timeline article > span {
  font-size: 34px;
  letter-spacing: -0.05em;
  color: #167443;
  font-weight: 500;
}
.timeline h3 {
  font-size: 17px;
  margin-top: 20px;
  line-height: 1.35;
}
.timeline p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
}
/*
B06. PROGETTI EDITORIALI
.related = intera sezione; .prod = singola scheda; .project-symbol = titolo della scheda.
*/
.related {
  padding-top: 65px;
  padding-bottom: 65px;
}
.related-title {
  max-width: 20ch;
}
.related-head .section-intro {
  margin: 0;
  font-size: 13px;
}
/*
Schede progetto: min-height regola l’altezza minima; padding lo spazio interno.
I colori mint, peach e lavender si trovano nella parte A.
*/
.prod {
  min-height: 345px;
  padding: 28px;
}
.project-symbol {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 100px;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.occhio-wordmark {
  font-family: Georgia, serif;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: bold;
}
.occhio-wordmark small {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  margin-top: 10px;
}
.network-wordmark {
  font-size: 35px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
}
.network-wordmark span {
  color: #b85427;
}
.rete-wordmark {
  font-size: 40px;
  font-weight: 600;
}
.rete-wordmark b {
  display: inline-grid;
  width: 65px;
  height: 65px;
  place-items: center;
  background: #ffffff90;
  border-radius: 50%;
}
.prod-name {
  font-size: 16px;
}
.prod-sub {
  margin-bottom: 0;
}
.project-arrow {
  border: 1px solid #0002;
  border-radius: 50%;
  padding: 6px 11px;
}
/*
B07. TELEVISIONE
Due colonne, foto e testo. .tv-photo img regola cornice e ritaglio.
*/
.television-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
figure {
  margin: 0;
}
.tv-photo {
  position: relative;
}
.tv-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 140px 140px 24px 24px;
}
.tv-photo figcaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: white;
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 12px;
}
.tv-photo figcaption .small-dot {
  margin-right: 6px;
}
.television-section .section-intro {
  margin: 25px 0;
  max-width: 390px;
}
/*
B08. PROSPETTIVE
Ogni riga contiene numero, titolo, descrizione e freccia.
*/
.perspectives {
  margin-top: 40px;
}
.perspectives > :is(a, .perspective-topic) {
  display: grid;
  grid-template-columns: 45px 1fr 1fr 22px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line-2);
  padding: 24px 0;
  transition:
    padding 0.2s,
    background 0.2s;
}
.perspectives a:hover {
  background: #b8e6cf30;
  padding-left: 12px;
  padding-right: 12px;
}
.perspectives > :is(a, .perspective-topic) > span {
  font-size: 12px;
  color: #167443;
}
.perspectives h3 {
  font-size: 20px;
}
.perspectives p {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
}
.perspectives b {
  font-weight: 400;
  font-size: 23px;
}
/*
B09. INTELLIGENZA ARTIFICIALE
background regola la sfumatura; border-radius gli angoli.
*/
.ai-section {
  border-radius: 32px;
  background: linear-gradient(130deg, #e4dcff80, #fff8e8);
  margin-top: 30px;
}
.handwritten {
  display: inline-block;
  font-family: Caveat, cursive;
  font-size: 24px;
  transform: rotate(-5deg);
  margin-top: 24px;
}
/*
B10. EVENTO AI FATTI
Scheda scura: testo a sinistra, data a destra. Una colonna sul telefono.
*/
.event-card {
  padding: 45px;
  border-radius: 28px;
  background: var(--dark-2);
  color: white;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 55px;
  align-items: center;
}
.event-card h2 {
  margin-top: 0;
  font-size: clamp(40px, 5vw, 68px);
}
.event-card h2 span {
  color: var(--red-2);
}
.event-card p {
  font-size: 13px;
  color: #d4d4d8;
  max-width: 370px;
  line-height: 1.8;
}
.event-details time {
  color: var(--red-2);
  font-size: 29px;
  letter-spacing: -0.04em;
}
.event-details .related-cta {
  margin-top: 15px;
}
/*
B11. MATERIALI E GALLERIA
.resource-grid contiene Media Hub e Press kit; .gallery contiene le fotografie.
*/
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.resource-grid a {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 30px 0;
}
.resource-grid h3 {
  font-size: 36px;
  display: flex;
  justify-content: space-between;
}
.resource-grid h3 span {
  color: #167443;
  font-weight: 400;
}
.resource-grid p {
  color: var(--text-2);
  font-size: 13px;
}
.editorial-section .gallery-heading {
  font-size: clamp(28px, 3vw, 40px);
}
/*
Foto in tre colonne: gap regola la distanza.
.gallery img = proporzioni, ritaglio e angoli; figcaption = didascalia.
*/
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 35px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 24px;
}
.gallery figcaption {
  font-size: 12px;
  color: var(--text-2);
  padding: 14px 3px;
}
/*
B12. CONTATTI E FOOTER
Invito finale centrato. Il pulsante usa .btn-cart, definito nella parte A.
*/
.contact-section {
  text-align: center;
  padding-top: 85px;
  padding-bottom: 100px;
}
.contact-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
  margin: 30px 0;
}
.contact-link {
  font-size: 13px;
  margin-left: 20px;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
}
/*
Piè di pagina: larghezza e spazi; .footer-grid dispone logo e gruppi di link.
*/
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 36px 25px;
  border-top: 1px solid var(--line-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 35px;
}
.footer-grid h2 {
  font-size: 13px;
  letter-spacing: 0;
  margin-bottom: 18px;
}
.footer-grid p,
.footer-grid nav a {
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-2);
}
.footer-grid nav a {
  display: block;
  padding: 3px 0;
}
.footer-grid nav a:hover,
.text-link:hover {
  text-decoration: underline;
}
.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--text-2);
}

/*
===============================================================================
C. ADATTAMENTO AGLI SCHERMI
===============================================================================
@media applica le regole solo quando la condizione è soddisfatta.
max-width = fino a quella larghezza; min-width = a partire da quella larghezza.
A 390px valgono regole generali, regole fino a 1100px e regole fino a 700px.

C01. DESKTOP GRANDI — da 1440px: centra e limita la testata.
*/
@media (min-width: 1440px) {
  .header {
    max-width: 1440px;
    margin: auto;
  }
}
/*
C02. TABLET — fino a 1100px
Apertura su due colonne; spazi e fotografie ridotti.
*/
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr);
    gap: 28px;
  }
  .title {
    font-size: clamp(38px, 5.25vw, 58px);
  }
  .stage {
    min-height: 410px;
  }
  .side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 0 50px;
    padding-top: 0;
  }
  .pagination {
    grid-column: 1;
    margin-bottom: 18px;
  }
  .side-note {
    grid-column: 1;
  }
  .accordion {
    grid-column: 2;
    grid-row: 1 / 4;
    margin-top: 0;
  }
  .side-bottom {
    grid-column: 1;
    align-self: end;
    max-width: 240px;
  }
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .prod {
    padding: 22px;
    min-height: 340px;
  }
  .project-symbol {
    left: 22px;
    right: 22px;
  }
  .occhio-wordmark,
  .network-wordmark {
    font-size: 28px;
  }
  .rete-wordmark {
    font-size: 28px;
  }
  .rete-wordmark b {
    width: 46px;
    height: 46px;
  }
  .split,
  .television-section {
    gap: 45px;
  }
  .thread-section,
  .ai-section {
    margin-left: 20px;
    margin-right: 20px;
  }
}
/*
C03. TELEFONI — fino a 700px
Una colonna per apertura e sezioni; menu sotto il logo.
Modifica qui font-size, padding e gap per intervenire sulla versione mobile.
*/
@media (max-width: 700px) {
  
  .nav-right {
    grid-column: 2;
    grid-row: 1;
  }
  .nav-left {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--line-2);
    padding-top: 10px;
  }
  .nav-left a {
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px 24px 45px;
  }
  .info {
    padding-top: 10px;
  }
  .title {
    font-size: clamp(43px, 11.5vw, 76px);
    margin-bottom: 23px;
  }
  .price {
    font-size: 22px;
  }
  .desc {
    margin-bottom: 24px;
  }
  .stage {
    min-height: 0;
    max-width: 520px;
    width: 100%;
    margin: 15px auto 10px;
  }
  .hero-img-bg {
    padding: 12px 0 28px;
  }
  .hero-img {
    border-width: 4px;
    border-radius: 0;
  }
  .hero-img-secondary {
    margin-top: 36px;
    border-radius: 0;
  }
  .bottle-wrap {
    inset: 11% 7% 12%;
  }
  .notif-like {
    right: -2%;
  }
  .notif-buy {
    left: -2%;
  }
  .notif {
    font-size: 12px;
  }
  .notif .text-2 {
    font-size: 10px;
  }
  .side {
    grid-column: 1;
    display: block;
    padding-top: 0;
  }
  .side-note {
    display: none;
  }
  .pagination {
    margin-bottom: 5px;
  }
  .accordion {
    margin-top: 10px;
  }
  .acc-head {
    font-size: 15px;
  }
  .acc-body-inner {
    font-size: 13px;
  }
  .side-bottom {
    max-width: none;
    font-size: 12px;
  }
  .editorial-section {
    padding: 50px 24px;
  }
  .split,
  .television-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .section-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 28px 22px;
    margin-top: 30px;
  }
  .timeline h3 {
    font-size: 15px;
  }
  .timeline p {
    font-size: 12px;
  }
  .thread-section,
  .ai-section {
    margin-left: 12px;
    margin-right: 12px;
  }
  .related {
    padding: 50px 24px;
  }
  .related-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .prod {
    min-height: 310px;
  }
  .project-symbol {
    font-size: 40px;
    top: 85px;
  }
  .prod-name {
    font-size: 18px;
  }
  .tv-photo img {
    max-height: 520px;
  }
  .perspectives > :is(a, .perspective-topic) {
    grid-template-columns: 24px 1fr 20px;
    gap: 10px;
    padding: 21px 0;
  }
  .perspectives h3 {
    font-size: 17px;
  }
  .perspectives p {
    grid-column: 2;
    font-size: 12px;
  }
  .perspectives b {
    grid-column: 3;
    grid-row: 1 / 3;
  }
  .event-card {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    gap: 25px;
  }
  .resource-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .resource-grid a + a {
    border-top: 0;
  }
  .resource-grid h3 {
    font-size: 30px;
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery img {
    max-height: 520px;
  }
  .contact-section {
    padding-top: 60px;
    padding-bottom: 65px;
  }
  .site-footer {
    padding: 35px 24px 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

/* Pagina Chi sono */
.publications-section { max-width: 1440px; margin: 0 auto; padding: 72px clamp(20px, 5vw, 72px) 82px; scroll-margin-top: 28px; }
.publications-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 34px; }
.publications-kicker { color: #167443; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.publications-heading h2 { margin-top: 12px; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -.07em; }
.publications-heading h2 span { color: #167443; }
.publications-heading > p { max-width: 290px; margin-bottom: 4px; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.publications-empty { min-height: 180px; display: grid; place-content: center; justify-items: center; gap: 12px; border: 1px dashed #a5c8b1; border-radius: 20px; background: #b8e6cf24; color: var(--text-2); text-align: center; }
.publications-empty p { margin: 0; font-size: 14px; }
.publications-empty-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #b8e6cf; color: #155b35; font-size: 24px; font-weight: 400; }
.publications-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.publication-card { position: relative; display: block; overflow: hidden; border-radius: 18px; background: #f1f4f1; transition: transform .22s ease, box-shadow .22s ease; }
.publication-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px #10181018; }
.publication-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.publication-card h3 { min-height: 64px; margin: 0; padding: 17px 48px 17px 18px; font-size: 16px; line-height: 1.4; }
.publication-arrow { position: absolute; right: 18px; bottom: 19px; color: #167443; font-size: 18px; }
.publications-admin-link { display: flex; width: fit-content; gap: 8px; margin: 22px 0 0 auto; color: var(--text-2); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.publications-page .page::before { display: none; }
.publications-hero { min-height: 510px; position: relative; display: flex; align-items: center; overflow: hidden; padding: 74px clamp(24px, 8vw, 120px); background: #b51220; color: #fff; }
.publications-hero::after { content: ""; position: absolute; width: min(58vw, 760px); aspect-ratio: 1; right: -12%; top: -44%; border: 1px solid #ffffff2b; border-radius: 50%; box-shadow: 0 0 0 60px #ffffff0a, 0 0 0 120px #ffffff08, 0 0 0 180px #ffffff06; }
.publications-hero-inner { max-width: 740px; position: relative; z-index: 1; }
.publications-hero .publications-kicker { color: #ffd7d7; }
.publications-hero h1 { margin: 26px 0 20px; font-size: clamp(58px, 9vw, 118px); line-height: .92; letter-spacing: -.085em; }
.publications-hero h1 em { color: #ffcf76; font-family: Caveat, cursive; font-size: 1.12em; font-weight: 600; letter-spacing: -.04em; }
.publications-hero p { max-width: 510px; color: #ffeded; font-size: 16px; line-height: 1.8; }
.publications-scroll { display: inline-flex; gap: 14px; align-items: center; margin-top: 20px; padding-bottom: 8px; border-bottom: 1px solid #ffffff75; font-size: 13px; }
.publications-hero-index { position: absolute; z-index: 1; right: 7%; bottom: 8%; color: #ffffff20; font-size: clamp(60px, 10vw, 140px); font-weight: 700; letter-spacing: -.09em; }
.publications-collection { max-width: 1440px; min-height: 410px; margin: 0 auto; padding: 82px clamp(24px, 7vw, 100px) 72px; scroll-margin-top: 30px; }
.publications-collection-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.publications-collection-heading h2 { margin-top: 12px; font-size: clamp(42px, 6vw, 74px); line-height: 1; letter-spacing: -.075em; }
.publications-collection-heading h2 span { color: #b51220; }
.publications-collection-heading > p { max-width: 290px; margin: 0 0 5px; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.publications-collection .publications-kicker { color: #b51220; }
.publications-results .publications-empty { border-color: #df9fa4; background: #fff5f5; }
.publications-results .publications-empty-mark { background: #b51220; color: #fff; }
.publications-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.publication-card { background: #fff5f5; }
.publication-card img { aspect-ratio: 4 / 3; }
.publication-card h3 { font-size: 17px; }
.publication-arrow { color: #b51220; }
.publications-admin-link { color: #8f101b; }
.publications-contact { padding: 72px 24px 78px; background: #f9e9e9; text-align: center; }
.publications-contact > span { color: #8f101b; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.publications-contact h2 { margin: 16px 0; font-size: clamp(48px, 8vw, 88px); letter-spacing: -.08em; }
.publications-contact a { display: inline-flex; gap: 12px; align-items: center; padding: 13px 22px; border-radius: 999px; background: #b51220; color: #fff; font-size: 13px; }
.publications-footer { border-color: #ead0d1; }
.publications-page .menu-toggle { color: #b51220; }
.bio-page { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }
.bio-hero { min-height: 630px; display: grid; grid-template-columns: 1.05fr .85fr; align-items: center; gap: clamp(40px, 8vw, 120px); padding: 54px 0 88px; position: relative; }
.bio-hero-copy { max-width: 620px; position: relative; z-index: 1; }
.bio-kicker, .bio-section-heading > span, .bio-quote > span, .bio-end > span { color: #167443; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.bio-hero h1 { margin: 22px 0; font-size: clamp(64px, 9.2vw, 128px); line-height: .88; letter-spacing: -.085em; font-weight: 700; }
.bio-hero h1 em { color: #167443; font-family: Caveat, cursive; font-weight: 600; letter-spacing: -.04em; }
.bio-lead { max-width: 570px; margin: 26px 0 12px; font-size: clamp(20px, 2vw, 27px); line-height: 1.45; letter-spacing: -.035em; }
.bio-summary { max-width: 530px; color: var(--text-2); font-size: 15px; line-height: 1.85; }
.bio-text-link, .bio-quote a, .bio-end a { display: inline-flex; gap: 16px; align-items: center; margin-top: 22px; padding-bottom: 8px; border-bottom: 1px solid #9fb7a8; font-size: 13px; font-weight: 600; }
.bio-portrait { margin: 0; position: relative; z-index: 1; }
.bio-portrait img { display: block; width: 100%; height: min(55vw, 520px); min-height: 390px; object-fit: cover; object-position: center 30%; border-radius: 48% 48% 12px 12px; }
.bio-portrait figcaption { margin-top: 14px; text-align: right; color: var(--text-2); font-size: 11px; }
.bio-year { position: absolute; z-index: 0; right: 2%; bottom: 4%; color: #b8e6cf66; font-size: clamp(100px, 18vw, 260px); line-height: 1; font-weight: 800; letter-spacing: -.1em; }
.bio-milestones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0 44px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.bio-milestones div { display: grid; gap: 8px; }
.bio-milestones strong { color: #167443; font-size: 25px; letter-spacing: -.06em; }
.bio-milestones span { color: var(--text-2); font-size: 12px; line-height: 1.5; }
.bio-section { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(40px, 9vw, 140px); padding: clamp(70px, 10vw, 130px) clamp(4px, 5vw, 76px); border-bottom: 1px solid var(--line-2); scroll-margin-top: 40px; }
.bio-section-tint { background: #b8e6cf40; border: 0; border-radius: 28px; margin: 18px 0; }
.bio-section-heading h2 { margin-top: 24px; max-width: 500px; font-size: clamp(36px, 5vw, 66px); line-height: 1.02; letter-spacing: -.065em; }
.bio-prose { max-width: 650px; }
.bio-prose p { margin: 0 0 20px; color: var(--text-2); font-size: 15px; line-height: 1.9; }
.bio-prose strong { color: var(--dark); }
.bio-prose .bio-emphasis { margin: 0 0 24px; color: var(--dark); font-size: clamp(19px, 2vw, 25px); font-weight: 600; line-height: 1.5; letter-spacing: -.035em; }
.bio-quote { margin: 54px auto; max-width: 920px; padding: 55px 30px; text-align: center; }
.bio-quote blockquote { max-width: 800px; margin: 24px auto; font-size: clamp(32px, 5.5vw, 68px); line-height: 1.08; letter-spacing: -.06em; font-weight: 600; }
.bio-quote a { margin-top: 6px; }
.bio-end { margin: 40px 0 90px; padding: clamp(45px, 8vw, 96px); border-radius: 30px; background: #111; color: #fff; text-align: center; }
.bio-end > span { color: #b8e6cf; }
.bio-end h2 { margin: 22px auto; max-width: 850px; font-size: clamp(38px, 6vw, 78px); line-height: 1.02; letter-spacing: -.065em; }
.bio-end p { max-width: 680px; margin: 0 auto; color: #ffffffbb; font-size: 15px; line-height: 1.85; }
.bio-end a { color: #fff; border-color: #b8e6cf88; }
@media (max-width: 760px) {
  .publications-section { padding-top: 54px; padding-bottom: 58px; }
  .publications-heading { align-items: start; flex-direction: column; gap: 12px; }
  .publications-empty { min-height: 145px; }
  .publications-grid { grid-template-columns: 1fr; }
  .publications-hero { min-height: 460px; padding: 62px 24px; }
  .publications-hero h1 { font-size: clamp(60px, 16vw, 92px); }
  .publications-hero-index { right: 5%; bottom: 4%; font-size: 17vw; }
  .publications-collection { min-height: 350px; padding-top: 60px; padding-bottom: 54px; }
  .publications-collection-heading { align-items: start; flex-direction: column; gap: 14px; }
  .publications-contact { padding: 60px 22px; }
  .bio-hero { min-height: 0; grid-template-columns: 1fr; gap: 36px; padding: 48px 0 60px; }
  .bio-hero h1 { font-size: clamp(68px, 17vw, 110px); }
  .bio-portrait { width: min(100%, 480px); justify-self: center; }
  .bio-portrait img { height: 105vw; max-height: 510px; min-height: 330px; }
  .bio-year { right: 0; bottom: 2%; font-size: 27vw; }
  .bio-milestones { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .bio-section { grid-template-columns: 1fr; gap: 28px; padding: 58px 8px; }
  .bio-section-tint { padding: 45px 22px; }
  .bio-section-heading h2 { margin-top: 16px; }
  .bio-quote { margin: 25px auto; padding: 45px 8px; }
  .bio-end { margin: 24px 0 60px; padding: 48px 22px; }
}
/*
C04. TELEFONI PICCOLI — fino a 360px
Riduce ulteriormente spazi e dimensioni dei pulsanti.
*/
@media (max-width: 360px) {
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }
  .stage {
    min-height: 0;
  }
  .cta-row {
    gap: 10px;
  }
  .btn-cart {
    font-size: 12px;
    padding-right: 14px;
  }
  .contact-link {
    display: block;
    width: fit-content;
    margin: 25px auto 0;
  }
}
/*
MOVIMENTO RIDOTTO
Rispetta la preferenza di chi disattiva le animazioni sul proprio dispositivo.
*/
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Titolo di sezione disponibile alle tecnologie assistive. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Contatti professionali e aree di tocco accessibili. */
.contact-details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin-top: 32px;
  font-style: normal;
}
.contact-section .contact-details p {
  margin: 0;
  min-width: 0;
  font-size: 14px;
}
.contact-details a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-link,
.footer-bottom > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 1100px) {
  .nav-left a,
  .related-cta,
  .footer-grid nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}
@media (max-width: 700px) {
  .nav-left a { font-size: 14px; }
  .timeline p,
  .perspectives p,
  .event-card p,
  .footer-grid p,
  .footer-grid nav a { font-size: 14px; }
  .contact-details { flex-direction: column; gap: 20px; }
  .contact-link { justify-content: center; }
  .resource-grid h3 { font-size: clamp(23px, 6vw, 30px); gap: 12px; }
  .resource-grid h3 span { flex-shrink: 0; }
}

@media (max-width: 900px) {
  .header {
    grid-template-columns: 1fr auto 1fr;
    padding: 14px clamp(20px, 5vw, 40px);
  }

  .header nav {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    right: clamp(20px, 5vw, 40px);
    left: clamp(20px, 5vw, 40px);
    z-index: 110;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(17, 17, 17, .14);
  }

  .header.is-menu-open nav {
    display: flex;
  }

  .header nav a {
    display: block;
    padding: 15px 12px;
    font-size: 14px;
  }

  .project-detail-page .header nav {
    background: #111;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    gap: 4px;
  }

  .nav-right { gap: 12px; }

  .header nav {
    top: calc(100% + 4px);
    border: 1px solid rgba(17, 17, 17, .08);
    border-radius: 18px;
  }

  .menu-toggle:focus-visible,
  .header nav a:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 3px;
  }
}
