@import url("https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap");

:root {
  --giallo-ada: #f5ad18;
  --giallo-chiaro: #ffd77a;
  --marrone-ada: #5b3109;
  --crema: #fff7e8;
  --crema-scuro: #f3e2c2;
  --testo: #2f2418;
  --bianco: #ffffff;
  --ombra-soft: 0 12px 32px rgba(91, 49, 9, 0.12);
  --ombra-media: 0 18px 42px rgba(91, 49, 9, 0.18);
  --radius-big: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--testo);
  background-color: var(--crema);
  font-family: "Nunito", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

header {
  background-image: linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)), url("pattern-sfondo.png");
  background-size: auto, 420px auto;
  background-position: center;
  border-bottom: 4px solid var(--giallo-ada);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 72px;
  width: auto;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.menu-item {
  position: relative;
}

.menu-item > a {
  position: relative;
  display: inline-block;
  padding: 12px 0;
  color: var(--marrone-ada);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.menu-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 3px;
  background-color: var(--giallo-ada);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.menu-item:hover > a::after,
.menu-item > a.active::after {
  width: 100%;
}

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 10;
  min-width: 230px;
  padding: 10px;
  background-color: var(--bianco);
  border-radius: 18px;
  box-shadow: 0 18px 35px rgba(91, 49, 9, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.menu-item:hover .dropdown,
.menu-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 12px 14px;
  color: var(--testo);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
}

.dropdown a:hover,
.dropdown a[aria-current="page"] {
  background-color: var(--crema);
  color: var(--marrone-ada);
}

.hero {
  max-width: 1100px;
  min-height: 390px;
  margin: 36px auto;
  padding: 48px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-big);
  background: linear-gradient(rgba(91,49,9,0.48), rgba(91,49,9,0.48)), url("hero.jpg") center/cover no-repeat;
  box-shadow: var(--ombra-media);
}

.hero-text {
  max-width: 760px;
  padding: 32px;
  color: var(--bianco);
  text-align: center;
}

.hero h1 {
  margin: 0 0 12px;
  font-family: "Patrick Hand", "Nunito", Arial, Helvetica, sans-serif;
  font-size: clamp(50px, 6.4vw, 76px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.4px;
}

.hero p {
  margin: 0;
  font-family: "Patrick Hand", "Nunito", Arial, Helvetica, sans-serif;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.2px;
}

.features {
  max-width: 1100px;
  margin: 0 auto 36px;
  padding: 50px 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  background-color: var(--bianco);
  border-radius: var(--radius-big);
  box-shadow: var(--ombra-soft);
}

.feature {
  min-width: 0;
  aspect-ratio: 1 / 1.05;
  border-radius: 24px;
  perspective: 1000px;
  cursor: pointer;
  outline: none;
  transition: transform 0.25s ease;
}

.feature:hover,
.feature:focus,
.feature:focus-within {
  transform: translateY(-8px);
}

.feature-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s ease;
  transform-style: preserve-3d;
}

.feature:hover .feature-inner,
.feature:focus .feature-inner,
.feature:focus-within .feature-inner,
.feature:active .feature-inner {
  transform: rotateY(180deg);
}

.feature-face {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background-color: var(--crema);
  border-radius: 24px;
  box-shadow: 0 0 0 rgba(91, 49, 9, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: box-shadow 0.25s ease;
}

.feature:hover .feature-face,
.feature:focus .feature-face,
.feature:focus-within .feature-face {
  box-shadow: 0 18px 30px rgba(91, 49, 9, 0.2);
}

.feature-front img {
  width: 100%;
  height: 78%;
  display: block;
  object-fit: contain;
}

.feature-front p {
  margin: 10px 0 0;
  color: var(--marrone-ada);
  font-size: 22px;
  font-weight: 900;
}

.feature-back {
  justify-content: center;
  gap: 14px;
  text-align: center;
  background: linear-gradient(135deg, var(--giallo-ada), var(--giallo-chiaro));
  transform: rotateY(180deg);
}

.feature-back h2 {
  margin: 0;
  color: var(--marrone-ada);
  font-size: 25px;
  line-height: 1.1;
  font-weight: 900;
}

.feature-back p {
  margin: 0;
  color: var(--testo);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
}

.catalogo,
.extra {
  max-width: 1100px;
  margin: 0 auto 36px;
  border-radius: var(--radius-big);
}

.catalogo {
  padding: 60px 30px;
  background-image: linear-gradient(135deg, rgba(245,173,24,0.88), rgba(255,215,122,0.88)), url("pattern-sfondo.png");
  background-size: auto, 420px auto;
  background-position: center;
  box-shadow: 0 14px 34px rgba(91, 49, 9, 0.16);
}

.catalog-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background-color: var(--bianco);
  color: var(--marrone-ada);
  border-radius: 26px;
  box-shadow: 0 16px 34px rgba(91, 49, 9, 0.2);
}

.catalog-title-link,
.catalog-arrow-link {
  color: inherit;
  text-decoration: none;
}

.catalog-title-link:hover,
.catalog-title-link:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--giallo-ada);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.catalog-title-link:focus-visible,
.catalog-arrow-link:focus-visible {
  outline: 4px solid rgba(245, 173, 24, 0.55);
  outline-offset: 6px;
  border-radius: 12px;
}

.catalog-text span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 14px;
  color: var(--bianco);
  background-color: var(--marrone-ada);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.catalog-text h2,
.wishlist h2 {
  margin: 0 0 10px;
  color: var(--marrone-ada);
  font-size: 32px;
  line-height: 1.1;
}

.catalog-text p {
  margin: 0;
  color: #5a4a3a;
  font-size: 17px;
  line-height: 1.45;
}

.catalog-illustration {
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-illustration img {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.extra {
  padding: 45px 30px;
  background-color: var(--bianco);
  text-align: center;
  box-shadow: var(--ombra-soft);
}

.wishlist p {
  max-width: 600px;
  margin: 0 auto 25px;
  font-size: 17px;
  line-height: 1.5;
}

.wishlist-button,
.contact-secondary-link {
  display: inline-block;
  padding: 14px 26px;
  color: var(--marrone-ada);
  background-color: var(--giallo-ada);
  font-weight: 900;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(91, 49, 9, 0.18);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.wishlist-button:hover,
.contact-secondary-link:hover {
  transform: translateY(-3px);
  background-color: #ffc94d;
}

.page-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: var(--marrone-ada);
  background-color: rgba(255,255,255,0.7);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.manifesto-wall {
  max-width: 1180px;
  margin: 58px auto 78px;
  padding: 0 30px;
}

.manifesto-composition {
  display: grid;
  grid-template-columns: 1fr 0.95fr 1fr;
  gap: 40px;
  align-items: start;
}

.manifesto-center-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.manifesto-title {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manifesto-title span {
  position: relative;
  display: inline-block;
  color: var(--marrone-ada);
  font-size: 50px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.manifesto-title span::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -12px;
  height: 5px;
  background-color: var(--giallo-ada);
  border-radius: 999px;
}

.manifesto-title span::before {
  content: "⌁";
  position: absolute;
  right: -34px;
  top: -28px;
  color: var(--marrone-ada);
  font-size: 38px;
  transform: rotate(18deg);
}

.manifesto-sheet {
  position: relative;
  width: 100%;
  padding: 42px 36px 38px;
  overflow: visible;
  background: linear-gradient(135deg, #ffe6a6, var(--giallo-chiaro));
  border-radius: 14px;
  box-shadow: 0 22px 44px rgba(91, 49, 9, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.sheet-left,
.sheet-right {
  min-height: 720px;
  margin-top: 18px;
}

.sheet-center {
  min-height: 780px;
  background: linear-gradient(135deg, var(--giallo-ada), #ffd35f);
}

.tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 86px;
  height: 25px;
  background-color: rgba(255, 226, 153, 0.85);
  box-shadow: 0 4px 8px rgba(91, 49, 9, 0.08);
  transform: translateX(-50%) rotate(-1deg);
}

.manifesto-sheet h1 {
  margin: 0 0 22px;
  color: var(--marrone-ada);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
}

.manifesto-sheet p {
  margin: 0 0 14px;
  color: var(--testo);
  font-size: 15.6px;
  line-height: 1.43;
}

.sheet-left p {
  font-size: 15px;
  line-height: 1.38;
  margin-bottom: 12px;
}

.where-page,
.contact-page,
.history-page {
  max-width: 1100px;
  margin: 36px auto 70px;
  padding: 0 30px;
}

.history-page {
  max-width: 1160px;
}

.where-intro,
.contact-intro,
.history-intro {
  margin-bottom: 32px;
  padding: 48px 52px;
  background-image: linear-gradient(135deg, rgba(245,173,24,0.92), rgba(255,215,122,0.92)), url("pattern-sfondo.png");
  background-size: auto, 420px auto;
  background-position: center;
  border-radius: var(--radius-big);
  box-shadow: var(--ombra-soft);
}

.where-intro h1,
.contact-intro h1,
.history-intro h1 {
  margin: 0 0 14px;
  color: var(--marrone-ada);
  font-size: 58px;
  line-height: 1;
}

.where-intro p,
.contact-intro p,
.history-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--testo);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.45;
}

.where-content,
.contact-content {
  display: grid;
  gap: 28px;
}

.where-content {
  grid-template-columns: 1.4fr 0.8fr;
}

.contact-content {
  grid-template-columns: 0.85fr 1.15fr;
}

.where-map-placeholder,
.where-info-card,
.contact-card,
.contact-message,
.history-note,
.history-event {
  background-color: var(--bianco);
  border-radius: var(--radius-big);
  box-shadow: var(--ombra-soft);
}

.where-map-placeholder {
  min-height: 360px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed rgba(91, 49, 9, 0.22);
}

.where-map-placeholder.where-map-card {
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  border: 0;
}

.where-map-card .where-map {
  width: 100%;
  min-height: 360px;
  height: 100%;
  display: block;
  border: 0;
}

.where-info-card,
.contact-card {
  padding: 36px 34px;
}

.contact-message {
  padding: 42px 44px;
}

.where-map-placeholder h2,
.where-info-card h2,
.contact-card h2,
.contact-message h2 {
  margin: 0 0 18px;
  color: var(--marrone-ada);
  font-size: 32px;
}

.where-map-placeholder p,
.contact-message p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.65;
}

.where-map-placeholder p:last-child,
.contact-message p:last-of-type {
  margin-bottom: 0;
}

.where-info-row,
.contact-row {
  padding: 18px 0;
  border-bottom: 1px solid rgba(91, 49, 9, 0.14);
}

.where-info-row:last-child,
.contact-row:last-child {
  border-bottom: 0;
}

.where-info-row strong,
.contact-row strong {
  display: block;
  margin-bottom: 6px;
  color: var(--marrone-ada);
  font-size: 17px;
  font-weight: 900;
}

.where-info-row span,
.contact-row span,
.contact-row a,
.where-info-row a {
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.history-note {
  margin: 0 0 32px;
  padding: 24px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.history-note-marker {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--marrone-ada);
  background-color: var(--giallo-ada);
  border-radius: 999px;
  font-size: 22px;
  font-weight: 900;
}

.history-note p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.history-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.history-timeline::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 4px;
  background-color: rgba(91, 49, 9, 0.12);
  border-radius: 999px;
  transform: translateX(-50%);
}

.history-event {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: stretch;
  padding: 28px;
}

.history-event::before {
  display: none;
}

.history-event-photos {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 310px;
}

.history-photo {
  min-height: 140px;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background-color: var(--crema);
}

.history-photo.is-main {
  grid-row: 1 / -1;
  min-height: 310px;
}

.history-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.history-event-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 10px;
}

.history-date {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: var(--bianco);
  background-color: var(--marrone-ada);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.history-event-text h2 {
  margin: 0 0 16px;
  color: var(--marrone-ada);
  font-size: 34px;
  line-height: 1.12;
}

.history-event-text p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.65;
}

.history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.history-tags span {
  padding: 8px 12px;
  color: var(--marrone-ada);
  background-color: var(--crema);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.calendar-board-page {
  max-width: 1120px;
  margin: 42px auto 78px;
  padding: 0 30px;
}

.object-noticeboard {
  position: relative;
  padding: 34px 40px 38px;
  background-image: linear-gradient(rgba(91,49,9,0.10), rgba(91,49,9,0.10)), repeating-linear-gradient(90deg, #8d5a2e 0, #8d5a2e 78px, #7f5028 79px, #7f5028 81px);
  border: 14px solid var(--marrone-ada);
  border-radius: var(--radius-big);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.14), 0 24px 52px rgba(91, 49, 9, 0.22);
}

.object-noticeboard::before,
.object-noticeboard::after {
  content: "";
  position: absolute;
  bottom: -27px;
  width: 40px;
  height: 48px;
  background-color: var(--marrone-ada);
  border-radius: 0 0 8px 8px;
}

.object-noticeboard::before {
  left: 12%;
}

.object-noticeboard::after {
  right: 12%;
}

.noticeboard-heading {
  position: relative;
  min-height: 92px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.noticeboard-heading-small {
  margin: 0 0 6px;
  color: var(--crema);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.noticeboard-heading h1 {
  margin: 0;
  color: var(--bianco);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
}

.noticeboard-pin {
  position: absolute;
  top: 15px;
  width: 23px;
  height: 23px;
  background-color: var(--giallo-ada);
  border: 5px solid #ffe9aa;
  border-radius: 999px;
  box-shadow: 0 4px 8px rgba(50, 20, 10, 0.28);
}

.noticeboard-pin-left {
  left: 18px;
}

.noticeboard-pin-right {
  right: 18px;
  background-color: #d65f3a;
  border-color: #ffd0bf;
}

.calendar-paper-board {
  position: relative;
  padding: 26px;
  background-image: linear-gradient(rgba(255,255,255,0.94), rgba(255,247,232,0.98)), url("pattern-sfondo.png");
  background-size: auto, 420px auto;
  background-position: center;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(48, 30, 14, 0.24);
  transform: rotate(-0.25deg);
}

.calendar-paper-board::before,
.calendar-paper-board::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: -15px;
  width: 96px;
  height: 30px;
  background-color: rgba(255, 220, 132, 0.82);
  box-shadow: 0 4px 8px rgba(91, 49, 9, 0.10);
}

.calendar-paper-board::before {
  left: 10%;
  transform: rotate(-5deg);
}

.calendar-paper-board::after {
  right: 10%;
  transform: rotate(4deg);
}

.google-calendar-board {
  display: block;
  width: 100%;
  height: 760px;
  background-color: var(--bianco);
  border: 0;
  border-radius: 9px;
}

.calendar-mobile {
  display: none;
}

.noticeboard-caption {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--crema);
  text-align: center;
}

.noticeboard-caption span {
  font-size: 22px;
}

.noticeboard-caption p {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

footer {
  padding: 28px 20px;
  color: var(--bianco);
  background-color: var(--marrone-ada);
  text-align: center;
}

footer p {
  margin: 6px 0;
}

footer a {
  color: var(--bianco);
  text-decoration-color: rgba(255, 255, 255, 0.6);
  text-underline-offset: 3px;
}

footer a:hover {
  color: var(--giallo-chiaro);
}

@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manifesto-wall {
    margin: 42px auto 60px;
    padding: 0 18px;
  }

  .manifesto-composition {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .manifesto-title {
    min-height: auto;
    padding: 12px 0 26px;
  }

  .manifesto-title span {
    font-size: 42px;
  }

  .sheet-left,
  .sheet-right,
  .sheet-center {
    min-height: auto;
    margin-top: 0;
  }

  .manifesto-sheet {
    padding: 42px 28px 32px;
  }

  .manifesto-sheet h1 {
    font-size: 27px;
  }

  .manifesto-sheet p,
  .sheet-left p {
    font-size: 17px;
    line-height: 1.55;
  }

  .where-content,
  .contact-content,
  .history-event {
    grid-template-columns: 1fr;
  }

  .history-timeline::before {
    display: none;
  }

  .history-event {
    gap: 22px;
  }

  .history-event-photos {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .history-photo.is-main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 260px;
  }

  .history-event-text {
    padding: 0;
  }

  .calendar-board-page {
    margin: 30px auto 60px;
    padding: 0 18px;
  }

  .object-noticeboard {
    padding: 30px 24px 34px;
    border-width: 11px;
  }

  .calendar-paper-board {
    padding: 18px;
  }

  .google-calendar-board {
    height: 700px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .logo {
    justify-content: center;
  }

  .logo img {
    height: 60px;
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .menu-item > a {
    width: 100%;
    padding: 10px 8px;
    background-color: rgba(255,255,255,0.82);
    border-radius: 16px;
    text-align: center;
    font-size: 15px;
  }

  .menu-item > a::after {
    display: none;
  }

  .dropdown {
    position: static;
    min-width: 0;
    margin-top: 7px;
    padding: 6px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 14px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown a {
    padding: 8px 6px;
    text-align: center;
    font-size: 13px;
  }

  .hero,
  .features,
  .catalogo,
  .extra {
    margin-right: 16px;
    margin-left: 16px;
  }

  .hero {
    min-height: 340px;
    margin-top: 24px;
    padding: 32px 18px;
    border-radius: 24px;
  }

  .hero-text {
    padding: 18px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .features {
    padding: 24px;
    gap: 18px;
  }

  .feature-face {
    padding: 18px;
  }

  .feature-front p {
    font-size: 20px;
  }

  .feature-back h2 {
    font-size: 22px;
  }

  .feature-back p {
    font-size: 15px;
  }

  .catalogo {
    padding: 36px 20px;
  }

  .catalog-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
  }

  .catalog-text h2,
  .wishlist h2 {
    font-size: 27px;
  }

  .catalog-illustration {
    flex: none;
    max-width: 210px;
  }

  .extra {
    padding: 34px 24px;
  }

  .where-page,
  .contact-page,
  .history-page {
    margin: 24px 16px 50px;
    padding: 0;
  }

  .where-intro,
  .contact-intro,
  .history-intro {
    padding: 38px 28px;
  }

  .where-intro h1,
  .contact-intro h1,
  .history-intro h1 {
    font-size: 42px;
  }

  .where-intro p,
  .contact-intro p,
  .history-intro p {
    font-size: 18px;
  }

  .where-map-placeholder {
    min-height: 260px;
    padding: 34px 26px;
  }

  .where-info-card,
  .contact-card,
  .contact-message,
  .history-event {
    padding: 30px 26px;
  }

  .history-note {
    padding: 22px;
  }

  .history-event-text h2 {
    font-size: 28px;
  }

  .history-event-text p {
    font-size: 17px;
  }

  .object-noticeboard {
    padding: 26px 14px 30px;
    border-width: 8px;
    border-radius: 22px;
  }

  .noticeboard-heading {
    min-height: 80px;
    margin-bottom: 18px;
  }

  .noticeboard-pin {
    display: none;
  }

  .calendar-paper-board {
    padding: 10px;
    overflow: hidden;
    transform: none;
  }

  .calendar-paper-board::before,
  .calendar-paper-board::after {
    width: 70px;
    height: 24px;
  }

  .calendar-desktop {
    display: none;
  }

  .calendar-mobile {
    display: block;
    height: 600px;
  }

  .noticeboard-caption {
    align-items: flex-start;
    gap: 10px;
  }

  .noticeboard-caption p {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .menu {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 300px;
  }

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

  .feature {
    max-width: 310px;
    width: 100%;
    margin: 0 auto;
  }

  .manifesto-title span {
    font-size: 36px;
  }

  .manifesto-title span::before {
    right: -24px;
    top: -24px;
  }

  .manifesto-sheet {
    padding: 38px 24px 30px;
  }

  .history-event-photos {
    grid-template-columns: 1fr;
  }

  .history-photo,
  .history-photo.is-main {
    min-height: 230px;
  }

  .history-date {
    font-size: 12px;
  }

  .noticeboard-heading-small {
    font-size: 14px;
  }

  .noticeboard-heading h1 {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .feature,
  .feature-inner,
  .feature-face,
  .wishlist-button,
  .contact-secondary-link {
    transition: none;
  }

  .feature:hover,
  .feature:focus,
  .feature:focus-within,
  .feature:hover .feature-inner,
  .feature:focus .feature-inner,
  .feature:focus-within .feature-inner,
  .feature:active .feature-inner {
    transform: none;
  }

  .feature-back {
    display: none;
  }
}


.mobile-menu-button,
.mobile-menu-panel,
.mobile-page-title {
  display: none;
}

@media (max-width: 820px) {
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(47, 36, 24, 0.32);
    backdrop-filter: blur(2px);
  }

  header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom-width: 3px;
  }

  .header-container {
    min-height: 76px;
    padding: 10px 14px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .logo {
    justify-content: flex-start;
  }

  .logo img {
    height: 54px;
  }

  .header-container > nav:not(.mobile-menu-panel) {
    display: none;
  }

  .mobile-menu-button {
    position: relative;
    z-index: 102;
    display: inline-flex;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 2px solid rgba(91, 49, 9, 0.18);
    border-radius: 17px;
    background: linear-gradient(135deg, var(--giallo-ada), var(--giallo-chiaro));
    box-shadow: 0 10px 22px rgba(91, 49, 9, 0.20);
    cursor: pointer;
  }

  .mobile-menu-button span {
    width: 21px;
    height: 3px;
    border-radius: 999px;
    background-color: var(--marrone-ada);
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  body.menu-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.menu-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-menu-panel {
    position: fixed;
    top: 86px;
    left: 14px;
    right: 14px;
    z-index: 101;
    display: grid;
    max-height: calc(100dvh - 104px);
    padding: 16px;
    gap: 10px;
    overflow: auto;
    border: 2px solid rgba(91, 49, 9, 0.18);
    border-radius: 26px;
    background-image: linear-gradient(rgba(255, 247, 232, 0.96), rgba(255, 247, 232, 0.98)), url("pattern-sfondo.png");
    background-size: auto, 360px auto;
    background-position: center;
    box-shadow: 0 26px 58px rgba(47, 36, 24, 0.30);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.20s ease, visibility 0.20s ease, transform 0.20s ease;
  }

  body.menu-open .mobile-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .mobile-menu-panel a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: var(--marrone-ada);
    background-color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(91, 49, 9, 0.10);
    border-radius: 18px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(91, 49, 9, 0.08);
  }

  .mobile-menu-panel a::after {
    content: "→";
    color: var(--giallo-ada);
    font-size: 20px;
    line-height: 1;
  }

  .mobile-menu-panel a[aria-current="page"] {
    background: linear-gradient(135deg, var(--giallo-ada), var(--giallo-chiaro));
  }

  main {
    overflow: hidden;
  }

  .hero,
  .features,
  .catalogo,
  .extra {
    margin-right: 14px;
    margin-left: 14px;
  }

  .hero {
    min-height: auto;
    margin-top: 18px;
    margin-bottom: 24px;
    padding: 78px 18px;
    border-radius: 26px;
    background-position: 52% center;
  }

  .hero-text {
    max-width: 520px;
    padding: 22px 18px;
    border-radius: 22px;
    background: rgba(91, 49, 9, 0.25);
    backdrop-filter: blur(1.5px);
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero p {
    font-size: 18px;
    line-height: 1.35;
  }

  .features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .feature,
  .feature:hover,
  .feature:focus,
  .feature:focus-within {
    width: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: auto;
    transform: none;
    cursor: default;
  }

  .feature-inner,
  .feature:hover .feature-inner,
  .feature:focus .feature-inner,
  .feature:focus-within .feature-inner,
  .feature:active .feature-inner {
    height: auto;
    display: grid;
    transform: none;
    transition: none;
    transform-style: flat;
  }

  .feature-face {
    position: relative;
    inset: auto;
    min-height: 0;
    border-radius: 0;
    overflow: visible;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    box-shadow: none;
  }

  .feature-front {
    min-height: 150px;
    padding: 18px;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    justify-content: start;
    background-color: var(--bianco);
    border-radius: 26px 26px 0 0;
  }

  .feature-front img {
    width: 118px;
    height: 118px;
    object-fit: contain;
  }

  .feature-front p {
    margin: 0;
    color: var(--marrone-ada);
    font-size: 25px;
    line-height: 1.05;
    text-align: left;
  }

  .feature-back {
    display: block;
    padding: 0 18px 18px;
    text-align: left;
    background-color: var(--bianco);
    border-radius: 0 0 26px 26px;
    transform: none;
    box-shadow: 0 12px 28px rgba(91, 49, 9, 0.12);
  }

  .feature-back h2 {
    display: none;
  }

  .feature-back p {
    margin: 0;
    padding: 14px 16px;
    color: var(--testo);
    background: linear-gradient(135deg, rgba(245, 173, 24, 0.20), rgba(255, 215, 122, 0.42));
    border-radius: 18px;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
  }

  .catalogo {
    padding: 22px;
    border-radius: 26px;
  }

  .catalog-card {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .catalog-text span {
    font-size: 12px;
  }

  .catalog-text h2,
  .wishlist h2 {
    font-size: 27px;
    line-height: 1.16;
  }

  .catalog-text p,
  .wishlist p {
    font-size: 16px;
  }

  .catalog-illustration {
    max-width: 160px;
  }

  .extra {
    padding: 30px 22px;
    border-radius: 26px;
  }

  .wishlist-button,
  .contact-secondary-link {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .mobile-page-title {
    display: block;
    margin: 0 0 18px;
    color: var(--marrone-ada);
    font-size: 42px;
    line-height: 1;
    text-align: center;
  }

  .manifesto-wall {
    margin: 28px auto 54px;
    padding: 0 14px;
  }

  .manifesto-composition {
    gap: 18px;
  }

  .manifesto-title {
    display: none;
  }

  .manifesto-sheet {
    padding: 34px 24px 28px;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(91, 49, 9, 0.13);
  }

  .manifesto-sheet h1 {
    font-size: 25px;
    line-height: 1.15;
  }

  .manifesto-sheet p,
  .sheet-left p {
    font-size: 16px;
    line-height: 1.58;
  }

  .where-page,
  .contact-page,
  .history-page {
    margin: 22px 14px 52px;
    padding: 0;
  }

  .where-intro,
  .contact-intro,
  .history-intro {
    padding: 34px 24px;
    border-radius: 26px;
  }

  .where-intro h1,
  .contact-intro h1,
  .history-intro h1 {
    font-size: 40px;
    line-height: 1.04;
  }

  .where-intro p,
  .contact-intro p,
  .history-intro p {
    font-size: 17px;
    line-height: 1.52;
  }

  .where-content,
  .contact-content {
    gap: 16px;
  }

  .where-map-placeholder,
  .where-info-card,
  .contact-card,
  .contact-message,
  .history-note,
  .history-event {
    border-radius: 24px;
  }

  .where-map-placeholder,
  .where-info-card,
  .contact-card,
  .contact-message,
  .history-event {
    padding: 26px 22px;
  }

  .where-map-placeholder {
    min-height: 220px;
  }

  .where-map-placeholder.where-map-card {
    min-height: 280px;
    padding: 0;
  }

  .where-map-card .where-map {
    min-height: 280px;
  }

  .where-map-placeholder h2,
  .where-info-card h2,
  .contact-card h2,
  .contact-message h2 {
    font-size: 27px;
  }

  .where-info-row,
  .contact-row {
    padding: 15px 0;
  }

  .history-note {
    margin-bottom: 18px;
    padding: 20px;
  }

  .history-note-marker {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .history-timeline {
    gap: 18px;
  }

  .history-event {
    gap: 18px;
  }

  .history-event-photos {
    gap: 10px;
  }

  .history-photo.is-main {
    min-height: 240px;
  }

  .history-photo {
    min-height: 135px;
    border-radius: 18px;
  }

  .history-event-text h2 {
    font-size: 27px;
  }

  .history-event-text p {
    font-size: 16px;
    line-height: 1.58;
  }

  .calendar-board-page {
    margin: 22px auto 54px;
    padding: 0 14px;
  }

  .object-noticeboard {
    padding: 20px 12px 24px;
    border-width: 8px;
    border-radius: 24px;
  }

  .object-noticeboard::before,
  .object-noticeboard::after {
    display: none;
  }

  .noticeboard-heading {
    min-height: 0;
    margin-bottom: 16px;
    padding: 4px 0 2px;
  }

  .noticeboard-heading-small {
    font-size: 13px;
    line-height: 1.25;
  }

  .noticeboard-heading h1 {
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.05;
  }

  .calendar-paper-board {
    padding: 10px;
    border-radius: 18px;
  }

  .calendar-paper-board::before,
  .calendar-paper-board::after {
    display: none;
  }

  .calendar-desktop {
    display: none;
  }

  .calendar-mobile {
    display: block;
    height: 560px;
  }

  .noticeboard-caption {
    margin-top: 16px;
    gap: 8px;
  }

  .noticeboard-caption p {
    font-size: 14px;
    line-height: 1.35;
  }

  footer {
    margin-top: 34px;
    padding: 24px 18px;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .hero {
    padding: 62px 16px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .feature-front {
    min-height: 132px;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .feature-front img {
    width: 92px;
    height: 92px;
  }

  .feature-front p {
    font-size: 23px;
  }

  .feature-back {
    padding: 0 16px 16px;
  }

  .manifesto-sheet {
    padding: 32px 20px 26px;
  }

  .history-photo,
  .history-photo.is-main {
    min-height: 220px;
  }

  .calendar-mobile {
    height: 520px;
  }
}

@media (max-width: 820px) {
  .features {
    gap: 12px;
  }

  .feature,
  .feature:hover,
  .feature:focus,
  .feature:focus-within {
    border-radius: 22px;
    transform: none;
  }

  .feature-inner,
  .feature:hover .feature-inner,
  .feature:focus .feature-inner,
  .feature:focus-within .feature-inner,
  .feature:active .feature-inner {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 24px;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 4px;
    align-items: center;
    height: auto;
    min-height: 124px;
    padding: 14px 14px 14px 16px;
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(91, 49, 9, 0.08);
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(91, 49, 9, 0.10);
    transform: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    transform-style: flat;
  }

  .feature-inner::after {
    content: "";
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    width: 24px;
    height: 5px;
    background-color: var(--giallo-ada);
    border-radius: 999px;
  }

  .feature:focus .feature-inner,
  .feature:focus-within .feature-inner {
    border-color: rgba(245, 173, 24, 0.42);
    box-shadow: 0 12px 28px rgba(91, 49, 9, 0.14);
  }

  .feature-face,
  .feature-front,
  .feature-back {
    display: contents;
    position: static;
    min-height: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transform: none;
  }

  .feature-front img {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    width: 92px;
    height: 92px;
    padding: 8px;
    object-fit: contain;
    background-color: rgba(255, 247, 232, 0.84);
    border-radius: 16px;
  }

  .feature-front p {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
    color: var(--marrone-ada);
    font-size: 22px;
    line-height: 1.05;
    font-weight: 900;
    text-align: left;
  }

  .feature-back h2 {
    display: none;
  }

  .feature-back p {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 3px 0 0;
    padding: 0;
    color: var(--testo);
    background: transparent;
    border-radius: 0;
    font-size: 15.5px;
    line-height: 1.34;
    font-weight: 700;
    text-align: left;
  }
}

@media (max-width: 430px) {
  .feature-inner,
  .feature:hover .feature-inner,
  .feature:focus .feature-inner,
  .feature:focus-within .feature-inner,
  .feature:active .feature-inner {
    grid-template-columns: 82px minmax(0, 1fr) 20px;
    column-gap: 13px;
    min-height: 112px;
    padding: 12px 12px 12px 14px;
  }

  .feature-inner::after {
    width: 20px;
    height: 4px;
  }

  .feature-front img {
    width: 82px;
    height: 82px;
    padding: 7px;
    border-radius: 14px;
  }

  .feature-front p {
    font-size: 20px;
  }

  .feature-back p {
    font-size: 14.5px;
    line-height: 1.32;
  }
}
