/* Home Avalon: grafica decisa, card menu e carosello manuale. */
body.home {
  --home-paper: #fdf6ee; --home-ink: #2d1d1d;
  background-color: var(--home-paper);
  background-image: linear-gradient(#fdf6eee6, #fdf6eee6), var(--home-grain);
  background-size: auto, 128px 128px; background-blend-mode: normal;
}
body.home .page-wrapper { max-width: 1320px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 56px); }
@media (max-width: 1023px) {
  body.home .navbar { justify-content: space-between; gap: 4px; padding-inline: 10px; }
  body.home .nav-links { flex: 1; width: auto; min-width: 0; }
  body.home .nav-links a { min-width: 0; }
  body.home .lang-switcher { position: relative; inset: auto; flex: 0 0 auto; z-index: auto; }
  body.home .lang-switcher__toggle { padding: 8px 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--color-brown); }
}
body.home .hero::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0;
  height: clamp(100px, 16vh, 180px); background: linear-gradient(to bottom, transparent, var(--home-paper));
  pointer-events: none; z-index: 1;
}
body.home .orari { padding: 28px 0 0; position: relative; }
body.home .orari__card {
  display: grid; grid-template-columns: 1fr; align-items: center; gap: 24px;
  background: #ead8c8; border-radius: 30px; padding: 30px;
  border: 1px solid #4b3430; box-shadow: 0 6px 0 #d8bda8;
}
body.home .orari__time { display: grid; gap: 10px; }
body.home .orari__label { display: flex; align-items: center; gap: 10px; color: var(--color-red); font-family: var(--font-heading2); font-size: 14px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
body.home .orari__label::before { content: "✦"; font-size: 22px; line-height: 1; letter-spacing: 0; }
body.home .ora { color: var(--home-ink); font-size: clamp(40px, 4vw, 54px); font-weight: 900; letter-spacing: -.035em; }
body.home .orari__divider { display: none; }
body.home .orari__giorni { gap: 10px; align-items: center; }
body.home .orari__riga { width: 100%; justify-content: center; text-align: center; background: none; padding: 0; color: var(--color-lightBrown); font-size: 16px; font-weight: 800; transform: translateX(-10px); }
body.home .orari__riga--aperto { color: #3f6833; }
body.home .orari__riga--chiuso { color: var(--color-lightBrown); }
body.home .orari__riga svg { width: 19px; height: 19px; flex-shrink: 0; }
body.home .orari__azioni { margin: 0; width: auto; }
body.home .orari__btn { min-height: 76px; border: 2px solid var(--home-ink); border-radius: 18px; padding: 18px 22px; background: var(--home-paper); box-shadow: 0 5px 0 var(--home-ink); color: var(--home-ink); font-size: 16px; font-weight: 900; }
body.home .orari__btn--chiama, body.home .orari__btn--whatsapp { background: var(--home-paper); color: var(--home-ink); }
body.home .orari__btn svg { width: 21px; height: 21px; color: var(--color-red); stroke-width: 2.4px; }
body.home .orari__btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--home-ink); }
.home-selection { padding-block: clamp(64px, 7vw, 100px); position: relative; }
.home-section-heading { display: grid; gap: 24px; margin-bottom: 30px; }
.home-kicker { font-family: var(--font-heading2); color: var(--color-red); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.home-kicker::before { content: "✦"; font-size: 24px; line-height: 1; }
.home-section-heading h2, .home-invitation h2 {
  font-family: var(--font-heading); font-weight: 900; font-size: clamp(44px, 5.8vw, 78px);
  line-height: .98; letter-spacing: -.045em; color: var(--home-ink); max-width: 760px;
}
.home-section-intro, .location__story { font-family: var(--font-heading2); font-size: 15px; line-height: 1.7; font-weight: 500; color: var(--color-lightBrown); }
.home-selection-aside { display: flex; align-items: center; justify-content: center; gap: 20px; }
.home-stamp { flex-shrink: 0; display: grid; place-content: center; width: 100px; height: 100px; border: 2px solid var(--color-red); border-radius: 50%; color: var(--color-red); font-family: var(--font-heading); font-size: 16px; font-weight: 900; text-align: center; padding: 14px; line-height: 1.2; transform: rotate(10deg); outline: 1px dashed var(--color-red); outline-offset: -8px; }
.home-stamp[data-reveal] { opacity: 0; transform: translateY(12px) rotate(10deg); transition: opacity var(--motion-reveal-duration) var(--motion-ease-out), transform var(--motion-reveal-duration) var(--motion-ease-out); }
.home-stamp[data-reveal].is-visible { opacity: 1; transform: rotate(10deg); }
.home-pizzas:not([hidden]) {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; scroll-snap-stop: normal; padding: 10px 0 18px;
}
.home-pizzas::-webkit-scrollbar { display: none; }
.home-pizza {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 50%;
  min-width: 0; min-height: 0; background: white; border: 1px solid #2d1d1d14;
  border-radius: 32px; overflow: hidden; padding: 12px;
  box-shadow: 0 6px 0 #e7d7c7; scroll-snap-align: start; scroll-snap-stop: normal;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.home-pizza__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.home-pizza h3 { font-family: var(--font-heading); font-weight: 900; font-size: clamp(25px, 2.4vw, 34px); line-height: 1; color: var(--home-ink); }
.home-pizza__price { margin-top: 0; padding-top: 0; font-family: var(--font-heading); font-size: 25px; font-weight: 900; color: var(--color-red); }
.home-pizza__description { font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: var(--color-lightBrown); }
.home-pizza__photo { align-self: center; position: relative; width: 100%; aspect-ratio: 1; }
.home-pizza__photo img { width: 100%; height: 100%; max-width: none; border-radius: 50%; object-fit: cover; transition: transform 300ms ease; }
.home-carousel-controls:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 28px; }
.home-carousel-controls button { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--home-ink); border-radius: 50%; background: var(--home-paper); color: var(--home-ink); font-size: 24px; cursor: pointer; }
.home-carousel-controls button:disabled { opacity: .3; cursor: default; }
.home-carousel-status { font-family: var(--font-heading2); font-size: 12px; font-weight: 700; text-align: center; line-height: 1.8; }
.home-carousel-status span { display: block; }
.home-menu-action { text-align: center; margin-top: 36px; }
.home-menu-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 24px;
  padding: 22px 30px; border: 2px solid var(--home-ink); border-radius: 100px;
  background: var(--color-red); color: var(--home-paper); box-shadow: 0 6px 0 var(--home-ink);
  font-family: var(--font-heading2); font-size: clamp(15px, 1.6vw, 20px); font-weight: 900;
  text-transform: uppercase; line-height: 1.3; transition: transform 180ms ease, box-shadow 180ms ease;
}
.home-menu-link > span:last-child { font-size: 30px; line-height: 1; }
.home-menu-link:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 9px 0 var(--home-ink); }
.home-social { display: grid; gap: 28px; margin-top: clamp(52px, 7vw, 88px); padding: clamp(26px, 5vw, 54px); border: 1px solid #4b3430; border-radius: 30px; background: #ead8c8; box-shadow: 0 6px 0 #d8bda8; }
.home-social__intro h2 { max-width: 700px; color: var(--home-ink); font-family: var(--font-heading); font-size: clamp(34px, 4.5vw, 58px); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.home-social__intro > p:last-child { max-width: 590px; margin-top: 14px; color: var(--color-lightBrown); font-family: var(--font-heading2); font-size: 16px; font-weight: 600; line-height: 1.6; }
.home-social__links { display: grid; gap: 12px; }
.home-social__links a { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 16px 20px; border: 2px solid var(--home-ink); border-radius: 18px; background: var(--home-paper); box-shadow: 0 4px 0 var(--home-ink); color: var(--home-ink); font-family: var(--font-heading2); font-size: 17px; font-weight: 900; }
.home-social__links a:hover { transform: translateY(-2px); }
.home-social__links svg { width: 22px; height: 22px; color: var(--color-red); }
.home-social__arrow { margin-left: auto; color: var(--color-red); font-size: 25px; }
body.home .location { margin: 0; display: grid; border-radius: 32px; background: var(--home-ink); box-shadow: 0 7px 0 #d8bda8; border: 1px solid var(--home-ink); }
body.home .location__img-wrapper { height: 100%; min-height: 300px; }
body.home .location__img-overlay { display: none; }
body.home .location__content { margin: 0; padding: clamp(28px, 4vw, 54px); gap: 20px; justify-content: center; }
body.home .location__label, body.home .location__icon { color: #e8a090; }
body.home .location__label { font-family: var(--font-heading2); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
body.home .location__title { font-size: clamp(36px, 4vw, 56px); font-weight: 900; line-height: 1; letter-spacing: -.035em; color: var(--home-paper); }
body.home .location__subtitle { color: #bdedaa; font-size: 18px; font-weight: 700; }
body.home .location__story { color: #ead6c8; font-size: 14px; }
body.home .location__btn { width: auto; font-size: 13px; padding: 16px 22px; margin-top: 8px; font-family: var(--font-heading2); font-weight: 800; }
.home-invitation { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding-block: clamp(72px, 8vw, 112px); text-align: center; }
.home-invitation > div { display: flex; flex-direction: column; align-items: center; }
.home-invitation .home-kicker { justify-content: center; }
.home-invitation h2 { color: var(--color-red); font-style: italic; }
.home-invitation p:not(.home-kicker) { color: var(--color-lightBrown); margin-top: 20px; font-size: 19px; font-weight: 700; }
.home-invitation .home-menu-link { margin-top: 28px; }
body.home a:focus-visible, .home-carousel-controls button:focus-visible, .home-pizzas:focus-visible { outline: 3px solid #b12c16; outline-offset: 4px; }
@media (hover: hover) {
  .home-pizza:hover { transform: translateY(-5px); box-shadow: 0 11px 0 #e7d7c7; }
  .home-pizza:hover img { transform: rotate(8deg) translateY(-4px); }
  .home-carousel-controls button:not(:disabled):hover { background: var(--home-ink); color: var(--home-paper); }
}
@media (min-width: 768px) {
  .home-section-heading { grid-template-columns: 1.35fr 1fr; align-items: end; gap: 32px; }
  .home-selection-aside { flex-direction: column; align-items: center; align-self: center; margin-top: 0; }
  body.home .orari__card { grid-template-columns: 1fr 1.3fr; }
  body.home .orari__azioni { grid-column: 1 / -1; justify-self: start; }
  body.home .location { grid-template-columns: 1.1fr 1fr; }
  .home-invitation { flex-direction: column; align-items: center; }
}
@media (max-width: 767px) {
  body.home .orari__riga--aperto,
  body.home .orari__riga--chiuso {
    justify-content: flex-start;
    text-align: left;
    transform: none;
  }
  .home-section-heading {
    grid-template-columns: minmax(0, 1fr) 76px;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
  }
  .home-section-heading h2 { font-size: clamp(32px, 8.5vw, 42px); }
  .home-section-heading .home-kicker { gap: 8px; font-size: 10px; }
  .home-section-heading .home-kicker::before { font-size: 18px; }
  .home-selection-aside { align-self: center; }
  .home-stamp { width: 70px; height: 70px; padding: 4px; font-size: 10px; line-height: 1.1; }
  .home-pizza { grid-template-columns: minmax(0, 1fr) 50%; padding: 12px; }
  .home-pizza__body { gap: 6px; }
  .home-pizza h3 { font-size: clamp(22px, 6vw, 27px); }
  .home-pizza__description { font-size: 12px; line-height: 1.35; }
  .home-pizza__price { font-size: 22px; }
}
@media (min-width: 1024px) {
  .home-pizzas:not([hidden]) { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: 22px; }
  .home-carousel-controls:not([hidden]) { display: none; }
  .home-selection-aside { flex-direction: row; align-items: center; align-self: center; margin-top: 0; }
  .home-social { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .home-social__links { grid-template-columns: 1fr 1fr; }
  body.home .navbar { width: min(60rem, calc(100% - 2 * var(--space-4))); }
  body.home .lang-switcher { position: relative; inset: auto; height: auto; flex: 0 0 auto; display: flex; align-items: center; z-index: auto; }
  body.home .lang-switcher__toggle { height: auto; min-width: 0; padding: 8px 6px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--color-crema); }
  body.home .orari__card { grid-template-columns: 1fr 1.35fr auto; gap: 24px; }
  body.home .orari__azioni { grid-column: auto; }
  body.home .navbar, body.home .lang-switcher__toggle { transition: background-color 200ms ease, box-shadow 200ms ease; }
  body.home.home-scrolled .navbar { background: var(--home-paper); box-shadow: 0 4px 0 #2d1d1d25; }
  body.home.home-scrolled .nav-links a, body.home.home-scrolled .navbar__brand.brand-logo .brand-logo__prefix { color: var(--home-ink); }
  body.home.home-scrolled .nav-links a.active { color: var(--color-red); }
  body.home.home-scrolled .lang-switcher__toggle { color: var(--home-ink); }
}
@media (prefers-reduced-motion: reduce) {
  .home-pizza, .home-pizza__photo img, .home-menu-link, body.home .navbar, body.home .lang-switcher__toggle { transition: none; }
  .home-stamp[data-reveal] { opacity: 1; transform: rotate(10deg); transition: none; }
  .home-pizza:hover, .home-pizza:hover img, .home-menu-link:hover { transform: none; }
}
