@import url("/theme.css");

@font-face {
  font-family: "Conso";
  src: url("/Conso-Regular.otf") format("opentype");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

/* Raffinamenti richiesti per la home */
.site-header {

  border-bottom-color: rgba(255, 255, 255, 0.2);


}



.site-header .mobile-menu-button span {
  background: currentColor;
}


.home-page .hero-copy-panel h1 {
  margin-left: 0;
  margin-right: 0;
  text-align: left;

}

.home-page .hero-subtitle {
  justify-self: start;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.home-page .hero-subtitle p {

  font-family: Inter, Arial, sans-serif;
  font-weight: 300;
  text-align: left;
}

.home-page .hero-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid currentColor;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* Icone leggibili per tutti i cinque canali di contatto */
.contact-combined .contact-group a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-combined .contact-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-right: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.contact-combined .contact-icon::before {
  width: 18px;
  height: 18px;
  background: currentColor;
  content: "";
  -webkit-mask-image: url("/contact-icons.svg");
  mask-image: url("/contact-icons.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 115.26px 163.02px;
  mask-size: 115.26px 163.02px;
}

.contact-combined .contact-icon-email::before { -webkit-mask-position: -33.82px -30.76px; mask-position: -33.82px -30.76px; }
.contact-combined .contact-icon-instagram::before { -webkit-mask-position: -33.82px -57.38px; mask-position: -33.82px -57.38px; }
.contact-combined .contact-icon-facebook::before { -webkit-mask-position: -33.5px -80.97px; mask-position: -33.5px -80.97px; }
.contact-combined .contact-icon-whatsapp::before { -webkit-mask-position: -33.21px -107.9px; mask-position: -33.21px -107.9px; }
.contact-combined .contact-icon-phone::before { -webkit-mask-position: -33.53px -132.14px; mask-position: -33.53px -132.14px; }

/* Hero: immagine piena e barra in vetro, ispirati al nuovo riferimento */
body {
  background: #fff;
}

.site-header {
  top: 22px;
  left: 28px;
  width: calc(100% - 56px);
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 16px;

  color: var(--bosco);
  box-shadow: 0 10px 34px rgba(35, 47, 28, 0.1);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
}

.site-header .site-logo-centered img {
  filter: none;
}

.site-header .site-nav a,
.site-header .mobile-menu-button {
  color: var(--bosco);
}

.albarec-hero {
  min-height: 100svh;
  padding: 4px;
}

.hero-canvas {
  min-height: calc(100svh - 8px);
  border-radius: 18px;
  background: var(--bosco);
}

.hero-copy-panel {
  min-height: calc(100svh - 8px);
  justify-content: center;
  padding-top: 130px;
  padding-bottom: 76px;
  background: linear-gradient(90deg, rgba(30, 40, 25, 0.55) 0%, rgba(30, 40, 25, 0.3) 37%, rgba(30, 40, 25, 0.02) 70%);
}

.hero-copy-panel::before,
.hero-copy-panel::after {
  display: none;
}

.home-page .hero-copy-panel h1 {

  max-width: 720px;
  margin-bottom: 26px;
  color: #fff;


}

.home-page .hero-subtitle p {
  max-width: 31rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 1.55vw, 24px);
}

.home-page .hero-more-link {
  border-color: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-image-panel img {
  object-position: center 60%;
  filter: saturate(0.9) contrast(0.98) brightness(0.9);
}

/* Pagina eventi */
.events-formats-link {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 38px;
  padding: 17px 30px;
  border-color: rgba(47, 62, 52, 0.28);
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 12px 28px rgba(47, 62, 52, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
}


.events-feature-copy h2 {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0;

}

/* Home: sezioni scalabili e senza sovrapposizioni */
.editorial-manifesto,
.manifesto-inner {
  background: #fff;
}

.editorial-manifesto {
  position: relative;
}

.manifesto-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  min-height: 0;
}

.manifesto-images {
  grid-template-columns: minmax(150px, 1fr) minmax(110px, 0.56fr);
  width: 100%;
}

.manifesto-copy {
  position: relative;
  inset: auto;
  width: auto;
}

.territory-text .text-link,
.wine-teaser .info-prompt-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: none;
}

.territory-text .text-link {
  margin-top: 28px;
  border-bottom: 1px solid currentColor;
}

.wine-teaser .info-prompt-actions a {
  padding-bottom: 13px;
  border-bottom: 1px solid currentColor;
}

/* Contatti: impaginazione verticale e leggibile */
.contact-combined .contact-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-combined .contact-group a {
  white-space: nowrap;
}

.contact-combined .contact-group a + a {
  margin-top: 12px;
}

.contact-mark {

  white-space: nowrap;
}

@media (max-width: 1200px) {
  .contact-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .manifesto-inner {
    grid-template-columns: 1fr;
  }

  .manifesto-copy {
    max-width: 44rem;
  }
}

@media (max-width: 760px) {
  .home-page .manifesto-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;

  }

  .home-page .manifesto-images {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.56fr);
    gap: 16px;
  }

  .home-page .manifesto-image-small {
    margin-top: 64px;
  }


  .contact-mark {
    display: block;


  }

  .contact-combined .contact-group a {
    font-size: clamp(13px, 4vw, 16px);
  }

  .wine-teaser .info-prompt-actions a {
    min-height: 50px;
    padding: 13px 18px;
  }
}

.territory-origin {
  background: #fff;
}



.territory-page,
.territory-page > section:not(.territory-page-hero) {
  background: #fff;
}

.territory-page-hero {
  background: linear-gradient(rgba(47, 62, 52, 0.34), rgba(47, 62, 52, 0.44)), url("/images/vigneti-novelle-albarec-fafe63-2200.webp") center / cover;
}

.territory-map-story {
  background: var(--terra) !important;
  color: #fff;
}

.territory-map-story :is(h2, p, .section-kicker) {
  color: #fff;
}

.vine-signs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 60px);
  align-items: end;
  max-width: 980px;
  margin: 56px auto 0;
}

.vine-signs img {
  width: min(100%, 148px);
  max-height: 150px;
  margin: 0 auto;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(36%) sepia(10%) saturate(1330%) hue-rotate(345deg) brightness(91%) contrast(87%);
}

@media (max-width: 760px) {
  .vine-signs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 3vw, 14px);
    margin-top: 42px;
  }

  .vine-signs img {
    width: 100%;
    max-height: clamp(42px, 14vw, 64px);
  }
}

/* Territorio: proporzioni più leggibili sui piccoli schermi */



.territory-spread-copy p {
  color: var(--terra) !important;
  font-size: clamp(.92rem, .6vw + .78rem, 1.06rem);
  line-height: 1.45;
}

.territory-map-story .section-kicker {
  font-size: clamp(.68rem, .24vw + .63rem, .8rem);
}

@media (max-width: 760px) {



  .territory-spread-copy p {
    font-size: clamp(.88rem, 3.6vw, .98rem);
    line-height: 1.45;
  }
}

.territory-action,
.territory-action-links {
  text-align: left;
}

.territory-action-links {
  justify-content: flex-start;
}

/* Pagina I vini: hero e dettagli più leggibili a ogni larghezza */
.wines-page,
.wines-page .wines-list,
.wines-page .wine-card,
.wines-page .wines-editorial {
  background: #fff;
}

.wines-hero {
  min-height: 100svh;
}

.wines-hero-image,
.wines-hero-image img {
  min-height: 100svh;
}

.wines-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  background: url("/images/vini-hero-bottiglie-d3dcf3-2200.webp") center 60% / cover no-repeat;
}

.wines-hero-image img {
  display: none;
}

.wines-hero-copy,
.wines-hero-copy h1,
.wines-hero-copy p {
  text-align: left;
}

/* Hero Territorio coerente con l'allineamento editoriale delle altre pagine */
.territory-page-hero-copy,
.territory-page-hero-copy h1,
.territory-page-hero-copy p {
  text-align: left;
}

.territory-page-hero-copy h1,
.territory-page-hero-copy p:not(.section-kicker) {
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 761px) {
  .territory-page-hero-copy {
    margin: 0 auto 0 clamp(28px, 5vw, 84px);
    max-width: min(60vw, 720px);
  }
}

@media (max-width: 760px) {
  .territory-page-hero-copy {
    max-width: min(82vw, 430px);
    margin: 0;
  }

  .territory-page-hero-copy h1 {

    line-height: 1.04;
  }
}

.wines-hero-copy h1 {
  font-size: clamp(2.75rem, 5.55vw, 5.75rem);
}

.wines-hero-copy > p {
  font-size: clamp(1.06rem, 1.22vw + 0.74rem, 1.24rem);
}

.wines-hero-copy {
  align-items: flex-start;
}

.wines-hero-copy h1,
.wines-hero-copy > p {
  margin-left: 0;
  margin-right: 0;
}

.wine-card-meta,
.wine-card-meta li,
.wine-card-meta li span {
  font-size: clamp(0.86rem, 0.25vw + 0.8rem, 1rem);
}

.wine-card-place {
  font-size: clamp(0.82rem, 0.28vw + 0.76rem, 0.94rem);
}

.wine-card {
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.wine-card:hover {
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(99, 86, 76, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.wine-card:hover .wine-card-meta,
.wine-card:hover .wine-card-copy {
  border-color: var(--terra);
}

.wines-editorial-copy h2 {
  font-size: clamp(1.75rem, 3.15vw, 3.35rem);
  text-transform: uppercase;
  letter-spacing: 0.035em;
  line-height: 1.06;
}

.wines-editorial-copy .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 28px;
  padding: 13px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--terra);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.wines-editorial-copy .text-link:hover {
  background: var(--terra);
  border-color: var(--terra);
  color: #fff;
}

.wines-editorial-gallery figure {
  overflow: hidden;
}

.wines-editorial-gallery img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
  filter: saturate(0.78) contrast(0.94) brightness(0.98);
}

.wines-editorial-gallery figure:hover img {
  transform: scale(1.055);
  filter: saturate(0.98) contrast(1.02) brightness(1.04);
}

.wines-editorial {
  position: relative;
  overflow: visible;
}

.wines-editorial-word {
  position: absolute;
  right: var(--page-margin);
  left: auto;
  width: max-content;
  text-align: right;
  bottom: -0.08em;
  display: block;
  font-size: clamp(94px, 14vw, 210px);
  line-height: 0.72;
  color: rgba(99, 86, 76, 0.13);
  transform: none;
}

@media (min-width: 761px) {
  .wines-hero-copy {
    justify-self: start;
    margin: 0 auto 0 clamp(42px, 9vw, 150px);
  }
}

.site-footer {
  background: #fff;
  color: var(--terra);
}

.site-footer a {
  color: var(--terra);
}

.wine-description-toggle {
  display: none;
}

@media (max-width: 760px) {
  .wines-hero,
  .wines-hero-image,
  .wines-hero-image img {
    min-height: 100svh;
  }

  .wines-hero-copy {
    padding-right: var(--page-margin);
    padding-left: var(--page-margin);
  }

  .wines-editorial {
    padding-bottom: clamp(112px, 29vw, 150px);
  }

  .wines-editorial-word {
    right: var(--page-margin);
    left: auto;
    bottom: -0.06em;
    display: block;
    font-size: clamp(80px, 25vw, 122px);
  }

  .wine-card-copy .wine-card-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    font-size: 1.06rem;
    line-height: 1.5;
  }

  .wine-card.is-description-open .wine-card-description {
    display: block;
  }

  .wine-description-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--terra);
    font: inherit;
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 0.24em;
    cursor: pointer;
  }
}

/* Colore del testo: marrone Terra in tutto il sito, salvo i testi bianchi */
:root {
  --bosco: var(--terra);
}

.home-page .hero-copy-panel h1 em {
  color: #fff;
}

.territory-header .section-kicker,
.material-feature .section-kicker,
.material-statement em,
.wines-closing .section-kicker,
.labeling-material-icon-gl {
  color: var(--terra);
}

.info-prompt-copy h2 {
  color: var(--terra);
}

.info-prompt-copy p,
.info-prompt-actions a,
.info-prompt-close {
  color: rgba(99, 86, 76, 0.72);
}

/* Rifiniture finali della home */
.home-page .hero-copy-panel h1 {
  font-family: var(--font-heading);
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 300;
  letter-spacing: 0.055em;
  line-height: 1.08;
  text-transform: uppercase;
}

.home-page .wine-teaser .info-prompt {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.82);
}

.home-page .wine-teaser-content .button-outline {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.home-page .wine-teaser-content .button-outline:hover {
  background: var(--terra);
  border-color: var(--terra);
  color: #fff;
}

.home-page .wine-teaser .info-prompt-actions a {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.home-page .wine-teaser .info-prompt-actions a:hover {
  background: var(--terra);
  border-color: var(--terra);
  color: #fff;
}

.territory-text .text-link {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.territory-text .text-link:hover {
  background: var(--terra);
  border-color: var(--terra);
  color: #fff;
}

/* Le parole decorative hanno una fascia propria: non coprono mai contenuti */
.manifesto-inner {
  padding-bottom: clamp(118px, 12vw, 166px);
}

.giant-word {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: -0.2em;
  z-index: 1;
  color: rgba(122, 139, 90, 0.48);
  font-size: clamp(126px, 16vw, 232px);
  line-height: 0.7;
}

.contact-panel {
  padding-bottom: clamp(138px, 13vw, 190px);
}

.contact-mark {
  right: var(--page-margin);
  bottom: -0.08em;
  font-size: clamp(98px, 14vw, 190px);
  color: rgba(99, 86, 76, 0.13);
}

@media (max-width: 760px) {
  .home-page .hero-copy-panel h1 {
    font-size: clamp(31px, 8.4vw, 42px);
    letter-spacing: 0.04em;
  }

  .home-page .manifesto-inner {
    padding-bottom: 102px;
  }

  .giant-word {
    right: var(--page-margin);
    bottom: -0.2em;
    font-size: clamp(96px, 27vw, 150px);
  }

  .contact-panel {
    padding-bottom: 112px;
  }

  .contact-mark {
    right: var(--page-margin);
    bottom: -0.08em;
    font-size: clamp(78px, 22vw, 132px);
  }
}

/* Menu mobile coerente con l'header in vetro */
@media (max-width: 1100px) {
  .site-header.is-menu-open {

    color: var(--terra);


  }


  .site-header.is-menu-open .mobile-menu-button,
  .site-header.is-menu-open .site-nav,
  .site-header.is-menu-open .site-nav a {
    color: var(--terra);
  }

  .site-header.is-menu-open .mobile-menu-button span {
    background: var(--terra);
  }

}

/* Menu hamburger: pagina piena, opaca e leggibile */
@media (max-width: 1100px) {
  .site-header.is-menu-open .site-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    min-height: 100svh;
    padding: 128px var(--page-margin) 48px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header.is-menu-open {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header.is-menu-open .site-logo-centered,
  .site-header.is-menu-open .mobile-menu-button {
    position: relative;
    z-index: 3;
    display: flex;
    visibility: visible;
    opacity: 1;
  }

  .site-header.is-menu-open .site-nav {
    z-index: 1;
  }

  .site-header.is-menu-open .site-logo-centered img {
    filter: none;
  }

  .site-header.is-menu-open .mobile-menu-button {
    color: var(--terra);
  }

  .site-header.is-menu-open .mobile-menu-button span {
    background-color: var(--terra);
  }
}

/* Ritmo tipografico della sezione Territorio */
.territory-text .text-link {
  text-transform: uppercase;
}

.territory-header h2 {
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 0.94;
}

.manifesto-copy h2 {
  overflow-wrap: normal;
}

.quote-cards article h3 {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.quote-logo {
  position: absolute;
  top: auto;
  left: 50%;
  bottom: clamp(14px, 2.5vw, 30px);
  transform: translateX(-50%);
}

.home-page .wine-teaser-content .button-outline {
  min-height: 50px;
  padding: 13px 22px;
  font-size: 0.8rem;
}

.home-page .info-prompt-kicker {
  color: var(--terra);
}

/* Contatti: dimensioni e flusso della pagina */
.contact-section,
.contact-panel,
.contact-intro {
  height: auto;
  overflow: visible;
}

.contact-form {
  display: grid;
  visibility: visible;
  opacity: 1;
  position: relative;
  min-width: 0;
}

@media (max-width: 1050px) {
  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(42px, 7vw, 72px);
  }

  .contact-intro,
  .contact-details,
  .contact-form {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 860px) {
  .contact-form {
    display: none;
  }

  .contact-details {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: 100%;
    margin-top: 0;
    visibility: visible;
    opacity: 1;
    color: var(--terra);
  }

  .contact-details .contact-block,
  .contact-details .contact-combined,
  .contact-details .contact-group {
    display: flex !important;
    visibility: visible;
    opacity: 1;
  }

  .contact-details .contact-block,
  .contact-details .contact-combined {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-details .contact-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-details a {
    color: var(--terra);
  }

  .contact-details a[href^="mailto:"] {
    white-space: nowrap;
    font-size: clamp(0.78rem, 3.8vw, 1rem);
  }
}

/* Scala tipografica condivisa: titoli e testi crescono insieme, senza salti */
main p {
  font-size: clamp(1rem, 1.05vw + 0.72rem, 1.14rem);
  line-height: 1.58;
}

main h1 {
  font-size: clamp(2.55rem, 5.2vw, 5.4rem);
  line-height: 0.98;
  text-wrap: balance;
}

main h2 {
  font-size: clamp(2rem, 4.8vw, 4.25rem);
  line-height: 0.98;
  text-wrap: balance;
}

main h3 {
  font-size: clamp(1.05rem, 1.25vw, 1.38rem);
  line-height: 1.15;
}

.section-kicker,
.wine-card-meta,
.wine-card-place,
.info-prompt-kicker {
  font-size: clamp(0.72rem, 0.3vw + 0.64rem, 0.84rem);
}

.button-outline,
.hero-more-link,
.territory-text .text-link,
.wine-teaser .info-prompt-actions a {
  font-size: clamp(0.76rem, 0.22vw + 0.7rem, 0.88rem);
}

@media (max-width: 760px) {
  main p {
    line-height: 1.55;
  }

  main h1,
  main h2 {
    text-wrap: pretty;
  }

  .home-page .hero-copy-panel h1 {
    /* La hero mobile mantiene il rapporto già approvato */
    line-height: 1.08;
  }

  .territory-header h2 {
    font-size: clamp(1.625rem, 8.2vw, 2.15rem);
    line-height: 0.98;
    letter-spacing: 0;
  }

  .quote-logo {
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
  }
}

/* Logo della sezione Materia */
.quote-logo {
  filter: brightness(0) saturate(100%) invert(36%) sepia(10%) saturate(1330%) hue-rotate(345deg) brightness(91%) contrast(87%);
}

/* Box WhatsApp sempre centrato, con aria tutt'intorno */
.home-page .wine-teaser .info-prompt {
  left: 50%;
  right: auto;
  bottom: clamp(24px, 3vw, 44px);
  width: min(calc(100% - 2 * clamp(24px, 4vw, 56px)), 1080px);
  margin: 0;
  transform: translate(-50%, 24px) scale(0.985);
}

.home-page .wine-teaser.is-prompt-visible .info-prompt {
  transform: translate(-50%, 0) scale(1);
}

@media (max-width: 760px) {
  .home-page .wine-teaser .info-prompt {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: calc(100% - 2 * var(--page-margin));
    margin: 28px auto;
    transform: translateY(22px) scale(0.985);
  }

  .home-page .wine-teaser.is-prompt-visible .info-prompt {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 12px;
    left: 14px;
    width: calc(100% - 28px);
    padding: 0 18px;
    border-radius: 13px;
  }

  .hero-copy-panel {
    padding-top: 112px;
    padding-bottom: 52px;
    background: linear-gradient(90deg, rgba(30, 40, 25, 0.62), rgba(30, 40, 25, 0.1));
  }
}

/* Territorio: blocco introduttivo più leggero */
.territory-origin-copy h2 {
  font-size: clamp(1.3rem, 2.25vw, 2.25rem);
  line-height: 1.08;
}

.territory-origin-copy p:not(.section-kicker) {
  font-size: clamp(.84rem, .32vw + .76rem, .94rem);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .territory-origin-copy h2 { font-size: clamp(1.32rem, 5.7vw, 1.58rem); }

  .territory-origin-copy p:not(.section-kicker) {
    font-size: clamp(.84rem, 3.35vw, .91rem);
    line-height: 1.5;
  }
}

/* Revisione: titoli e introduzione delle pagine */
@media (min-width: 1600px) { .home-page .hero-copy-panel h1 { font-size: 60px; } }
.events-intro-copy h2 { font-size: clamp(1.5rem, 3vw, 2.75rem); text-transform: uppercase; line-height: 1.06; }
.events-feature-copy h2 { line-height: 1.04; }
.page-intro { display:none; position:fixed; inset:0; z-index:99999; background:#e9e4d8; color:#63564c; align-items:center; justify-content:center; flex-direction:column; gap:24px; pointer-events:none; }
.intro-pending .page-intro, .page-intro.is-active { display:flex; }
.page-intro .intro-sign { width:clamp(140px, 12vw, 180px); height:clamp(140px, 12vw, 180px); object-fit:contain; filter:brightness(0) saturate(100%) invert(34%) sepia(13%) saturate(649%) hue-rotate(343deg) brightness(94%) contrast(86%); animation:intro-sign-in .8s ease both; }
.page-intro span { font-family:Conso,sans-serif; font-size:30px; letter-spacing:.19em; }
.page-intro.is-leaving { opacity:0; transition:opacity .32s ease; }
@keyframes intro-sign-in { from {opacity:0; transform:translateY(12px) scale(.88)} to {opacity:1; transform:translateY(0) scale(1)} }
@media (prefers-reduced-motion:reduce) { .page-intro .intro-sign {animation:none;} .page-intro.is-leaving {transition:none;} }


/* Eventi: contrasto e composizione senza sovrapposizioni */
.events-intro { background: #fff; }
.events-hero-copy h1 { text-transform: uppercase; }
.events-hero-image img { object-position: center bottom; }
.events-formats-link:hover {
  background: var(--foglia);
  border-color: var(--foglia);
  color: #fff;
}
@media (min-width: 1025px) {
  .events-feature {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    row-gap: 40px;
  }
  .events-feature-main { grid-column: 1; grid-row: 1 / span 2; }
  .events-feature-copy { grid-column: 2; grid-row: 1; min-width: 0; }
  .events-feature-small {
    position: relative;
    right: auto;
    bottom: auto;
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    width: min(100%, 320px);
    margin: 0;
  }
}

/* Territorio: titolo più piccolo, sempre su due righe */
.territory-page-hero-copy h1 {
  font-size: clamp(2rem, 4.3vw, 4.5rem);
  line-height: 1.04;
}
.territory-page-hero-copy h1 > span {
  display: block;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .territory-page-hero-copy h1 {
    font-size: clamp(1.2rem, 6.8vw, 2.2rem);
  }
}

/* Home: titolo, descrizione e CTA scendono come un unico blocco */


/* Hero: testi sempre raccolti sul fondo dell'immagine */
.home-page .hero-copy-panel {
  justify-content: flex-end;
  min-height: 100svh;
  height: auto;
  padding-top: 150px;
  padding-bottom: 96px;
}
.wines-hero,
.territory-page-hero,
.events-hero {
  min-height: 100svh;
  align-items: end;
  padding-top: 150px;
  padding-bottom: 96px;
}
.wines-hero-copy,
.territory-page-hero-copy,
.events-hero-copy { align-self: end; }
@media (max-width: 760px) {
  .home-page .hero-copy-panel {
    justify-content: flex-end;
    min-height: max(100svh, 620px);
    padding-top: 112px;
    padding-bottom: 62px;
  }
  .wines-hero,
  .territory-page-hero,
  .events-hero {
    min-height: 100svh;
    align-items: end;
    padding-top: 112px;
    padding-bottom: 62px;
  }
}

/* Schede vini: informazioni tecniche più compatte su desktop */
@media (min-width: 761px) {
  .wine-card-meta {
    grid-template-columns: clamp(64px, 6vw, 92px) minmax(0, 1fr);
    gap: clamp(18px, 2.5vw, 38px);
    padding-bottom: 16px;
  }
  .wine-card-meta li {
    min-height: 68px;
    padding: clamp(12px, 1.1vw, 16px) clamp(12px, 1.3vw, 20px);
    font-size: clamp(.75rem, .2vw + .6rem, .875rem);
  }
  .wine-card-meta li span {
    font-size: clamp(.625rem, .15vw + .5rem, .75rem);
    margin-bottom: 7px;
  }
  .wine-card-meta > span { font-size: clamp(.625rem, .2vw + .5rem, .75rem); }
}

/* Hero: medesimo margine sinistro della pagina Eventi */
.home-page .hero-copy-panel {
  padding-left: var(--page-margin);
  padding-right: var(--page-margin);
  align-items: flex-start;
  text-align: left;
}
.wines-hero-copy,
.territory-page-hero-copy,
.events-hero-copy {
  justify-self: start;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: left;
}
.wines-hero-copy > :is(h1, p),
.territory-page-hero-copy > :is(h1, p),
.events-hero-copy > :is(h1, p) {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

/* Hero Vini: overlay scuro sopra la foto e sotto i testi */
.wines-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, .35);
  pointer-events: none;
}

/* Hero Vini e Home: dimensione e ritmo condivisi */
.home-page .hero-copy-panel h1,
.wines-hero-copy h1 {
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.08;
  letter-spacing: .055em;
}

.wines-hero-copy > .section-kicker,
.events-hero-copy > .section-kicker {
  font-size: clamp(.72rem, .3vw + .64rem, .84rem);
}
@media (min-width: 1600px) {
  .home-page .hero-copy-panel h1,
  .wines-hero-copy h1 { font-size: 60px; }
}
@media (max-width: 760px) {
  .home-page .hero-copy-panel h1,
  .wines-hero-copy h1 {
    font-size: clamp(31px, 8.4vw, 42px);
    letter-spacing: .04em;
  }
}

.events-gallery { background: #fff; }

/* Home: titolo Territorio più contenuto a ogni larghezza */
.home-page .territory-header h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.04;
}
@media (max-width: 760px) {
  .home-page .territory-header h2 {
    font-size: clamp(23px, 6.8vw, 30px);
  }
}

/* Hero Vini: descrizione più leggibile */

/* Sezione delle quattro bottiglie su fondo avorio */
.wines-page .wines-list,
.wines-page .wine-card { background: var(--minerale); }

/* Hover delle bottiglie nel medesimo vetro bianco dell'header */
:root { --header-glass: rgba(255, 255, 255, .62); }
.site-header { background: var(--header-glass); }
.wines-page .wine-card:hover { background: var(--header-glass); }

.wine-card-meta {
  position: relative;
  border-bottom: 0;
  padding-bottom: 26px;
}
.wine-card-meta ul { border-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .wine-card-meta::after { animation: none; }
}

/* Prevale sulla regola del tema che rende relativi tutti i figli editoriali */
.wines-page .wines-editorial > .wines-editorial-word {
  position: absolute;
  left: auto;
  right: var(--page-margin);
  width: max-content;
  margin: 0;
  transform: none;
  text-align: right;
}

/* Territorio: titoli nel formato naturale del testo */
.territory-page .territory-map-card h2,
.territory-page .territory-origin-copy h2 { text-transform: none; }

.wines-hero-copy h1 { white-space: normal; overflow-wrap: normal; word-break: normal; text-wrap: nowrap; }

.wine-card-meta { overflow: hidden; }

/* Hero Vini: il titolo rientra anche nei viewport più stretti */
.wines-hero-copy {
  min-width: 0;
  width: 100%;
  max-width: 720px;
}
.wines-hero-copy h1 {
  width: 100%;
  max-width: 100%;
}
@media (max-width: 760px) {
  .wines-hero-copy h1 {
    font-size: clamp(22px, 6.6vw, 42px);
    letter-spacing: .025em;
    line-height: 1.08;
  }
}

/* Descrizione hero fluida anche nelle larghezze intermedie */
.wines-hero { grid-template-columns: minmax(0, 1fr); }
.wines-page .wines-hero-copy > p:not(.section-kicker) {
  width: 100%;
  max-width: 620px;
  margin-left: 0;
  margin-right: 0;
  justify-self: start;
  text-align: left;
  font-size: clamp(1rem, .75rem + .55vw, 1.375rem);
  line-height: 1.55;
}

/* Bollicine dietro la bottiglia, visibili al passaggio del mouse */
.wine-card-bottle { position: relative; isolation: isolate; overflow: visible; }
.wine-card-bottle > img { position: relative; z-index: 2; }
.wine-bubbles { position: absolute; inset: 0 -20%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s; }
.wine-bubbles i {
  position: absolute;
  left: var(--x);
  bottom: 4%;
  width: var(--size);
  height: var(--size);
  border: 1px solid rgba(99, 86, 76, .38);
  border-radius: 50%;

  animation: bottle-bubble-rise 4s linear infinite;
  animation-delay: var(--delay);
  animation-play-state: paused;
}
@media (hover: hover) {
  .wine-card:hover .wine-bubbles { opacity: 1; }
  .wine-card:hover .wine-bubbles i { animation-play-state: running; }
}
@keyframes bottle-bubble-rise {
  0% { transform: translateY(0) scale(.7); opacity: 0; }
  15% { opacity: .8; }
  85% { opacity: .55; }
  100% { transform: translateY(-280px) scale(1.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wine-bubbles i { animation: none; bottom: calc(12% + var(--x) * .5); }
}




.wine-card-meta::after { content: none; animation: none; }







/* Chiarastella: effervescenza più ricca, bollicine fini con ritmi diversi */
.wine-bubbles i {
  animation-duration: var(--duration, 3s);
  border-color: rgba(99, 86, 76, .45);
  background: rgba(255, 255, 255, .38);
  box-shadow: inset -1px -1px 2px rgba(255,255,255,.55);
}

/* Calice dei vini fermi: struttura e visibilità al passaggio del mouse */
.wine-pouring-glass {
  position: absolute;



  z-index: 1;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .7s ease;
  pointer-events: none;
}



@media (hover: hover) {
  .wine-card-still:hover .wine-pouring-glass { opacity: .8; transform: translateY(0); }

}



/* Calice arrotondato, già pieno, con oscillazione lenta */
.wine-pouring-glass { transform-origin: 50% 90%; }
@media (hover: hover) {
  .wine-card-still:hover .wine-pouring-glass {
    animation: wine-glass-sway 7s ease-in-out infinite;
  }
  .wine-card-still:hover .glass-wine-surface {
    transform-origin: 110px 133px;
    animation: wine-surface-sway 7s ease-in-out infinite;
  }
}
@keyframes wine-glass-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@keyframes wine-surface-sway {
  0%, 100% { transform: rotate(2deg); }
  50% { transform: rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .wine-card-still:hover .wine-pouring-glass,
  .wine-card-still:hover .glass-wine-surface { animation: none; }
}

/* Il calice segue le dimensioni effettive della bottiglia */
.wine-pouring-glass {
  width: auto;

  max-width: none;
  aspect-ratio: 220 / 390;
  right: -18%;
  bottom: 2%;
  overflow: visible;
}
@media (max-width: 760px) {
  .wine-pouring-glass {

    right: -12%;
  }
}

/* Ombra discreta che segue la sagoma trasparente delle bottiglie */
.wines-page .wine-card-bottle > img {
  filter: drop-shadow(4px 9px 8px rgba(0, 0, 0, .13));
}

/* Calice più piccolo, contorno nero e vino colorato */
.wine-pouring-glass {
  height: 58%;
  color: #111;
}
.wine-card-white { --pour-color: #c3a452; }
.wine-card-red { --pour-color: #4f2d3d; }
.wine-pouring-glass .glass-wine-surface { color: var(--pour-color); }
@media (max-width: 760px) {
  .wine-pouring-glass { height: 53%; }
}

/* Sfondi hero più leggeri sui piccoli schermi */
@media (max-width: 760px) {
  .territory-page-hero { background-image: linear-gradient(rgba(47,62,52,.34),rgba(47,62,52,.44)), url("/images/vigneti-novelle-albarec-fafe63-960.webp"); }
  .wines-hero-image { background-image: url("/images/vini-hero-bottiglie-d3dcf3-960.webp"); }
}

@media (max-width:760px) { .quote-section { background-image: linear-gradient(rgba(47,62,52,.08),rgba(47,62,52,.08)),url("/images/territorio-571a23-960.webp"); } }

/* Informative e controllo della mappa */
.legal-page{background:#e9e4d8;color:#292722;}.legal-content{max-width:900px;margin:0 auto;padding:180px 32px 100px;}.legal-content h1{font-size:clamp(36px,5vw,64px);line-height:1.1;text-transform:none;letter-spacing:0;}.legal-content h2{font-size:clamp(22px,2.2vw,30px);line-height:1.25;text-transform:none;letter-spacing:0;margin:42px 0 16px;}.legal-content p{font-size:17px;line-height:1.7;margin:16px 0;}.legal-content a,.contact-privacy-note a{text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;}.legal-date{color:#63564c;}.map-consent p,.contact-privacy-note{font-size:14px;line-height:1.5;}.map-consent button{margin:12px 0;}.map-consent [hidden]{display:none!important;}.map-consent iframe:not([src]){display:none;}.contact-privacy-note{grid-column:1/-1;}@media(max-width:760px){.legal-content{padding:140px 20px 64px;}.legal-content p{font-size:16px;}}

/* Invio del modulo e stati accessibili, anche su mobile */
.contact-form .contact-honeypot{display:none!important;}.contact-form-status,.contact-email-fallback{grid-column:1/-1;font-size:14px;line-height:1.5;overflow-wrap:anywhere;}.contact-form-status:empty{display:none;}.contact-form-status[data-state="error"]{color:#4f2d3d;}.contact-form-status[data-state="success"]{color:#344429;}.contact-form button:disabled{opacity:.6;cursor:wait;}.contact-form .contact-email-fallback a{text-decoration:underline;}@media(max-width:860px){.contact-form{display:none!important;}.contact-form input,.contact-form textarea{min-width:0;max-width:100%;}}

.wines-environment-link{padding:36px var(--page-margin) 48px;background:#e9e4d8;}.wines-environment-link p{font-size:16px;line-height:1.5;margin:0 0 20px;}.wines-environment-link a{max-width:100%;white-space:normal;text-align:center;}

/* Contatti mobile: azioni dirette e mappa solo dopo consenso */
.contact-mobile-actions{display:none}
.contact-section .map-consent .contact-map[src]:not([hidden]){display:block;width:100%;height:260px;min-height:220px}
@media(max-width:860px){
  .contact-section .contact-mobile-actions{display:block;margin-top:24px}
  .contact-section .contact-mobile-actions p{width:100%;max-width:none;margin:0 0 22px;font-size:16px;line-height:1.6;overflow-wrap:anywhere}
  .contact-section .contact-mobile-actions p a{text-decoration:underline;text-underline-offset:3px}
  .contact-section .contact-mobile-actions .button-outline{display:inline-flex;max-width:100%;white-space:normal;text-align:center}
  .contact-section .contact-intro::after{content:none}
}
