@import url("./base.css");
@import url("./nav.css");
@import url("./rsvp.css");

:root {
  --page-bg: #fdfbf6;
  --page-overlay-image: url("../image/overlay/Watercolor-PaperTexture-40x40_inches.jpg");
  --page-overlay-size: 900px auto;
  --page-overlay-opacity: .9;
}

body {
  background-color: var(--page-bg);
}

#contactdetails .person h3,
#rsvp h2 {
  font-family: "Enchanting Script", "Brush Script MT", "Lucida Handwriting", cursive;
}

.faq-heading {
  font-family: "Marion Regular", "Marion", "Times New Roman", serif;
  text-transform: uppercase;
}

@media (max-width: 1200px) {
  body.home-page .details .details-grid {
    grid-template-columns: 1fr;
    gap: clamp(2.25rem, 6vw, 4rem);
  }

  body.home-page .details-left,
  body.home-page .details-right {
    width: 100%;
    transform: none;
    justify-self: center;
  }

  body.home-page .details-right {
    order: -1;
    max-width: 620px;
  }

  body.home-page .details-left {
    order: 0;
  }

  body.home-page .details-left .meta {
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.home-page .details-left .meta li {
    padding: .85rem 0;
  }

  body.home-page #wedding-time,
  body.home-page #venue-name,
  body.home-page #venue-street,
  body.home-page #venue-city {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.home-page .details-right .castle-img {
    width: min(100%, 560px);
    object-fit: contain;
  }

  body.home-page .details > .container {
    padding: 0 clamp(1rem, 4vw, 2rem);
  }
}

@media (max-width: 1400px) {
  body.home-page .hero {
    overflow: visible;
  }

  body.home-page .hero .container,
  body.home-page .hero-floral-frame {
    overflow: visible;
  }

  body.home-page .details-right .castle-img {
    width: 100%;
  }
}

.hero,
#weddingdayhero,
#logisticshero,
#contacthero,
#faqhero,
#tourismhero,
.info-section,
.beauty,
.details,
.home-rsvp-cta,
.travel-section,
/* .transportation, */
.accommodation,
.contact-section,
.faq-section,
.tourism,
.winery,
.restaurant,
.events-left {
  background: var(--page-bg);
}

.hero,
#weddingdayhero,
#logisticshero,
#contacthero,
#faqhero,
#tourismhero,
.info-section,
.beauty,
.details,
.home-rsvp-cta,
.travel-section,
/* .transportation, */
.accommodation,
.contact-section,
.faq-section,
.tourism,
.winery,
.restaurant,
.events-left {
  position: relative;
  isolation: isolate;
}

.hero::before,
#weddingdayhero::before,
#logisticshero::before,
#contacthero::before,
#faqhero::before,
#tourismhero::before,
.info-section::before,
.beauty::before,
.details::before,
.home-rsvp-cta::before,
.travel-section::before,
/* .transportation::before, */
.accommodation::before,
.contact-section::before,
.faq-section::before,
.tourism::before,
.winery::before,
.restaurant::before,
.events-left::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--page-overlay-image) top left / var(--page-overlay-size) repeat;
  mix-blend-mode: multiply;
  opacity: var(--page-overlay-opacity);
  pointer-events: none;
}

.hero > *,
#weddingdayhero > *,
#logisticshero > *,
#contacthero > *,
#faqhero > *,
#tourismhero > *,
.info-section > *,
.beauty > *,
.details > *,
.home-rsvp-cta > *,
.travel-section > *,
/* .transportation > *, */
.accommodation > *,
.contact-section > *,
.faq-section > *,
.tourism > *,
.winery > *,
.restaurant > *,
.events-left > * {
  position: relative;
  z-index: 1;
}

/* ---- Homepage ---- */
.hero{
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem) 0;
  text-align: center;
}
.hero .title{
  margin: 0;
  max-width: clamp(24ch, 90vw, 64ch);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 1.9rem);
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  line-height: 1.15;
}
.hero .subtitle{ display:block; font-weight:400; color:var(--muted); }
.hero .intro{
  display:block; margin-bottom:0; font-size:clamp(1rem, 1.9vw, 1.6rem); font-weight:400; color:var(--muted);
  text-transform:uppercase; letter-spacing:clamp(.015em, .08vw, .05em);
  inline-size: fit-content;
  max-inline-size: 100%;
  text-wrap: balance;
  margin-inline: auto;
}
.hero .names{
  display:block; margin-top: clamp(.8rem, 1.9vw, 1.5rem); font-size:clamp(2.6rem, 8.2vw, 6.7rem);
  white-space: normal;
  text-wrap: balance;
  font-weight:700; line-height:.96; color:var(--ink);
}

/* Italian copy runs longer, so tighten only hero intro text. */
html[lang="it"] .hero .intro {
  font-size: clamp(.82rem, 1.4vw, 1.22rem);
}

html[lang="it"] .hero .names {
  font-size: clamp(2.3rem, 7.4vw, 5.8rem);
}

.hero .container{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: 0;
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-floral-frame {
  --hero-floral-upper-left-top: clamp(-2.8rem, -1.1vw, -1.4rem);
  --hero-floral-lower-right-bottom: clamp(-2.4rem, -1.4vw, -1.1rem);
  --hero-floral-lower-right-left-nudge: clamp(12px, 1.1vw, 22px);
  --hero-floral-top-inset: clamp(-6.5rem, calc(-0.8rem - 3.8vw), -1.2rem);
  --hero-floral-bottom-inset: clamp(-6.8rem, calc(-1rem - 3.9vw), -1.4rem);
  --hero-floral-top-width: clamp(11rem, 34vw, 31rem);
  --hero-floral-bottom-width: clamp(10.8rem, 33vw, 30.5rem);
  width: 99vw;
  position: relative;
  min-height: clamp(245px, 37vw, 585px);
  display: grid;
  place-items: center;
  padding: clamp(1.9rem, 4.8vw, 3.6rem) clamp(.35rem, 2.6vw, 2rem);
}

.hero-floral-piece {
  position: absolute;
  display: block;
  height: auto;
  pointer-events: none;
}

.hero-floral-piece-lower-right {
  bottom: var(--hero-floral-lower-right-bottom);
  right: calc(var(--hero-floral-top-inset) + var(--hero-floral-lower-right-left-nudge));
  width: var(--hero-floral-top-width);
}

.hero-floral-piece-upper-left {
  left: var(--hero-floral-bottom-inset);
  top: var(--hero-floral-upper-left-top);
  width: var(--hero-floral-bottom-width);
}

.hero .title {
  position: relative;
  z-index: 1;
  padding-block: clamp(.9rem, 2.4vw, 1.8rem);
  padding-inline: clamp(.65rem, 1.6vw, 1rem);
}

@media (min-width: 721px) {
  body.home-page .hero {
    padding-top: clamp(.7rem, 2vw, 1.4rem);
    padding-bottom: clamp(2.4rem, 4.2vw, 4.2rem);
  }

  body.home-page .details {
    padding-top: clamp(.45rem, 1vw, .95rem);
  }

  .hero-floral-frame {
    --hero-floral-lower-right-bottom: clamp(-4.2rem, -2.4vw, -2.4rem);
  }

  .hero .title {
    gap: clamp(1.7rem, 3.4vw, 2.8rem);
  }

  .hero .names {
    font-size: clamp(2.6rem, 8.2vw, 6.7rem);
  }
}

/* @media (max-width: 600px) {
  .hero-floral-frame {
    --hero-floral-upper-left-top: clamp(-1.8rem, -4vw, -0.8rem);
    min-height: clamp(260px, 62vw, 340px);
    padding-inline: clamp(0.9rem, 5vw, 1.4rem);
  }

} */

.details{ padding:clamp(1.25rem, 3vw, 2.5rem) 0 clamp(2.2rem, 4.2vw, 3.6rem); }

.details > .container {
  max-width: min(1540px, 100%);
  padding: clamp(14px, 2.2vw, 30px) clamp(0.75rem, 2vw, 2rem);
}

.details-title{
  margin:0 0 3rem; text-align:center;
  font-size:clamp(1.6rem,3.3vw,2.45rem); font-weight:700;
}
.details .details-grid{
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  justify-items: center;
}

.details-left {
  max-width: 860px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.details-right {
  justify-self: end;
  width: min(980px, 100%);
  margin-inline-start: 0;
  padding-inline-start: clamp(1rem, 2vw, 2.5rem);
}

@media (max-width: 720px){
  .details .details-grid{
    grid-template-columns: 1fr;   /* stack on small screens */
    text-align: center;
  }
  .details-right{
    order: -1;
    width: min(100%, 560px);
    justify-self: center;
    transform: none;
  }     /* show the castle above the text on mobile (optional) */

  .details-left {
    max-width: 100%;
  }
}

/* Details typography & list keep your existing styles;
   just ensure the boxes don't overflow */
.details-left .meta{
  margin-inline: auto;
  width: auto;
  grid-template-columns: max-content max-content;
  justify-content: center;
  gap: clamp(.25rem, .75vw, .75rem);
}

/* Make the castle image responsive and prevent scale overflow */
.details-right .castle-img{
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0;
  transform: none;           /* remove previous scale that could cause overflow */
}

/* General safety: images should never force horizontal scroll */
img, svg{ max-width: 100%; height: auto; }

.home-rsvp-cta{
  padding: clamp(6px, 1.2vw, 14px) 0 0;
}

.home-rsvp-cta > .container{
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 clamp(1.5rem, 4vw, 4rem) 0 0;
}

.container.home-rsvp-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(0.6rem, 2vw, 1.6rem);
  align-items: stretch;
  justify-items: center;
}

.home-rsvp-media{
  width: 100%;
  height: clamp(400px, 52vw, 790px);
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-rsvp-photo{
  width: auto;
  height: auto;
  max-width: min(100%, clamp(420px, 46vw, 700px));
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
}

.home-rsvp-copy{
  max-width: 680px;
  width: 100%;
  padding-block: clamp(10px, 1.6vw, 24px);
  justify-self: center;
  align-self: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 1.6rem);
}

.home-rsvp-copy h2{
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  text-align: center;
  text-transform: none;
}

.home-rsvp-link{
  display: block;
  min-width: 170px;
  width: fit-content;
  margin: 0 auto;
}

@media (min-width: 901px){
  .home-rsvp-media{
    justify-self: end;
  }

  .home-rsvp-photo{
    width: min(100%, clamp(520px, 52vw, 860px));
    max-width: none;
  }

  .home-rsvp-copy{
    justify-self: start;
  }
}

@media (max-width: 900px){
  .container.home-rsvp-layout{
    grid-template-columns: 1fr;
    text-align: center;
    gap: clamp(0.4rem, 1.8vw, 1rem);
  }

  .home-rsvp-cta > .container{
    padding: 0;
  }

  .home-rsvp-media{
    order: 1;
    width: 100%;
    height: auto;
  }

  .home-rsvp-photo{
    max-width: min(100%, 560px);
    max-height: none;
  }

  .home-rsvp-copy{
    order: 2;
    width: 100%;
    max-width: min(100%, 760px);
    min-height: clamp(320px, 54vw, 460px);
    padding: clamp(1.8rem, 5.8vw, 3rem) 1rem clamp(2.8rem, 8vw, 4rem);
  }
}

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  /* remove global flex behaviour from .container */
  display: block;
  text-align: initial;
}

.meta{ display:grid; gap:1rem; list-style:none; padding:0; margin:0 0 1.5rem; }
@media (min-width:720px){ .meta{ grid-template-columns:1fr 1fr; } }
.meta li{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:.45rem;
  padding:1rem 1.25rem; background:transparent; border:none; border-radius:0;
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  line-height: 1.15;
  text-align:center;
}
.meta strong{
  display:block; margin:0; font-size:clamp(.92rem, 1vw, 1.05rem); color:var(--muted);
  text-transform:uppercase; letter-spacing:.04em;
  text-align:center;
}
.meta li > div,
.meta li > address{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
}

.meta li > div > time span,
.meta li > address span {
  display:block;
  line-height: 1.05;
}

.meta li > div > time #wedding-time,
.meta li > address #venue-street,
.meta li > address #venue-city {
  margin-top: 0.55em;
}

address{ font-style:normal; color:var(--ink); text-align:center; line-height:1.05; }

#wedding-date,
#venue-name{ font-weight:700; font-size:clamp(.95rem, 1.3vw, 1.25rem); }

#wedding-date,
#wedding-time,
#venue-name,
#venue-street,
#venue-city {
  line-height: 1.05;
}

#wedding-time,
#venue-name,
#venue-street,
#venue-city {
  white-space: nowrap;
}

#wedding-time,
#venue-street,
#venue-city {
  font-size: clamp(.9rem, 1.2vw, 1.15rem);
}

/* Castle image tweak */
.castle-img{ transform:none; transform-origin:center; }

/* ---- Wedding Day Hero ---- */
#weddingdayhero{
  padding: clamp(3rem,6vw,5rem) 1rem; text-align:center;
  position: relative;
  overflow: hidden;
}
.title-weddingday {
  max-width: min(68ch, 100%);
  width: min(100%, 68ch);
}
.title-weddingday .main {
  white-space: normal;
  line-height: 1.08;
}
.hero-with-ornaments .hero-ornament-layout,
.section-with-ornaments.hero-ornament-layout {
  position: relative;
  max-width:1300px;
  margin:0 auto;
  min-height: clamp(280px, 34vw, 380px);
  padding: 0 clamp(7rem, 16vw, 12rem);
  display: flex;
  align-items: center;
  justify-content: center;

  /* Keep center copy constrained to the same side clearances used by ornaments. */
  --ornament-safe-left: min(
    var(--ornament-left-desktop, clamp(220px, 28vw, 420px)),
    max(
      var(--ornament-side-min, 120px),
      calc((100% - var(--ornament-text-safe-width, 64ch)) / 2 - var(--ornament-side-gap, 1rem))
    )
  );
  --ornament-safe-right: min(
    var(--ornament-right-desktop, clamp(220px, 28vw, 420px)),
    max(
      var(--ornament-side-min, 120px),
      calc((100% - var(--ornament-text-safe-width, 64ch)) / 2 - var(--ornament-side-gap, 1rem))
    )
  );
  --ornament-center-bonus: calc(
    var(--ornament-side-gap, 1rem) * var(--ornament-center-bonus-multiplier, 2)
  );
  --ornament-center-max: max(
    20rem,
    calc(100% - var(--ornament-safe-left) - var(--ornament-safe-right) - (var(--ornament-side-gap, 1rem) * 2) + var(--ornament-center-bonus))
  );
}

.hero-with-ornaments {
  --ornament-left-scale: 1;
  --ornament-right-scale: 1;
  --ornament-left-desktop-offset: 0px;
  --ornament-right-desktop-offset: clamp(0px, 1vw, 12px);
  --ornament-overlap-mobile: clamp(-92px, -10vw, -40px);
}

.section-with-ornaments {
  --ornament-left-scale: 1;
  --ornament-right-scale: 1;
  --ornament-left-desktop-offset: 0px;
  --ornament-right-desktop-offset: clamp(0px, 1vw, 12px);
  --ornament-overlap-mobile: clamp(-64px, -8vw, -28px);
  --ornament-right-stack-shift: var(--ornament-overlap-mobile);
  --ornament-text-safe-width: 64ch;
  --ornament-side-gap: clamp(0.75rem, 1.8vw, 1.5rem);
  --ornament-side-min: 120px;
  --ornament-copy-shift: 0px;
}

/* Per-section size controls (left and right can be tuned independently) and overlap controls */
#tourism_id {
  --ornament-left-desktop: clamp(320px, 68vw, 560px);
  --ornament-right-desktop: clamp(320px, 44vw, 560px);
  --ornament-left-mobile: clamp(240px, 28vw, 410px);
  --ornament-right-mobile: clamp(240px, 14vw, 410px);
  --ornament-overlap-mobile: clamp(-54px, -7vw, -28px);
  --ornament-text-safe-width: 76ch;
}

#food_drinks_id {
  --ornament-left-desktop: clamp(280px, 25vw, 420px);
  --ornament-right-desktop: clamp(290px, 25vw, 400px);
  --ornament-left-mobile: clamp(200px, 46vw, 350px);
  --ornament-right-mobile: clamp(200px, 46vw, 350px);
  --ornament-overlap-mobile: clamp(-54px, -7vw, -28px);
  --ornament-text-safe-width: 76ch;
  --ornament-center-bonus-multiplier: 1;
}

/* Override on the actual ornament wrapper so it beats the .section-with-ornaments default (custom props set directly on an element win over inherited ancestor values) */
#food_drinks_id .section-with-ornaments {
  --ornament-left-desktop-offset: clamp(0px, 1vw, 15px);
}

#restaurants_id .section-with-ornaments {
  --ornament-right-stack-shift: var(--ornament-overlap-mobile);
  --restaurant-left-center-mobile: -83%;
  --restaurant-right-center-mobile: -25%;
}

#restaurants_id {
  --ornament-left-desktop: clamp(360px, 44vw, 560px);
  --ornament-right-desktop: clamp(360px, 40vw, 560px);
  /* calc decreases as the viewport widens, so images grow bigger and overlap tighter the smaller the screen gets */
  --ornament-left-mobile: clamp(260px, calc(430px - 8vw), 360px);
  --ornament-right-mobile: clamp(260px, calc(430px - 8vw), 360px);
  --ornament-overlap-mobile: clamp(-110px, calc(-140px + 6vw), -50px);
  --ornament-text-safe-width: 74ch;
  --ornament-left-desktop-offset: clamp(-2.2rem, -2.8vw, -1rem);
  --ornament-right-desktop-offset: clamp(-2.2rem, -2.8vw, -1rem);
}

#restaurants_id .section-with-ornaments .hero-ornament--left,
#restaurants_id .section-with-ornaments .hero-ornament--right {
  width: clamp(260px, 24vw, 410px);
}

#winery_id {
  --ornament-left-desktop: clamp(210px, 24vw, 340px);
  --ornament-right-desktop: clamp(210px, 24vw, 340px);
  --ornament-right-desktop-offset: clamp(-52px, -3.2vw, -22px);
  --ornament-left-mobile: clamp(180px, 10vw, 380px);
  --ornament-right-mobile: clamp(280px, 20vw, 380px);
  --ornament-overlap-mobile: clamp(-68px, -9vw, -36px);
  --ornament-right-stack-shift: clamp(2px, 0.8vw, 14px);
  --ornament-text-safe-width: 92ch;
  --ornament-center-bonus-multiplier: 1;
}

@media (max-width: 480px) {
  #tourism_id {
    --ornament-left-mobile: clamp(150px, 34vw, 190px);
    --ornament-right-mobile: clamp(150px, 34vw, 190px);
    --ornament-overlap-mobile: clamp(-38px, -6vw, -18px);
  }

  #restaurants_id {
    --ornament-left-mobile: clamp(238px, 62vw, 292px);
    --ornament-right-mobile: clamp(238px, 62vw, 292px);
    --ornament-overlap-mobile: clamp(-38px, -6vw, -18px);
  }

  #restaurants_id .section-with-ornaments {
    --restaurant-left-center-mobile: -78%;
    --restaurant-right-center-mobile: -20%;
  }

  #winery_id {
    --ornament-left-mobile: clamp(150px, 32vw, 175px);
    --ornament-right-mobile: clamp(180px, 42vw, 220px);
    --ornament-overlap-mobile: clamp(-42px, -7vw, -22px);
  }
}

@media (min-width: 1280px) {
  #winery_id .section-with-ornaments .hero-ornament--left,
  #winery_id .section-with-ornaments .hero-ornament--right {
    height: clamp(200px, 18vw, 270px);
    width: auto;
    max-height: none;
  }

  #winery_id .section-with-ornaments .hero-ornament--right {
    transform: translateX(clamp(28px, 2.2vw, 46px)) scale(var(--ornament-right-scale));
  }
}

.hero-with-ornaments .hero-ornaments,
.section-with-ornaments .hero-ornaments {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-with-ornaments .hero-ornaments img,
.section-with-ornaments .hero-ornaments img {
  position: absolute;
  bottom: 0;
  height: auto;
  object-fit: contain;
}
.hero-with-ornaments .hero-ornaments .hero-ornament--left,
.section-with-ornaments .hero-ornaments .hero-ornament--left {
  left: var(--ornament-left-desktop-offset);
  width: min(
    var(--ornament-left-desktop, clamp(220px, 28vw, 420px)),
    max(
      var(--ornament-side-min, 120px),
      calc((100% - var(--ornament-text-safe-width, 64ch)) / 2 - var(--ornament-side-gap, 1rem))
    )
  );
  transform: scale(var(--ornament-left-scale));
  transform-origin: bottom left;
}
.hero-with-ornaments .hero-ornaments .hero-ornament--right,
.section-with-ornaments .hero-ornaments .hero-ornament--right {
  right: var(--ornament-right-desktop-offset);
  width: min(
    var(--ornament-right-desktop, clamp(220px, 28vw, 420px)),
    max(
      var(--ornament-side-min, 120px),
      calc((100% - var(--ornament-text-safe-width, 64ch)) / 2 - var(--ornament-side-gap, 1rem))
    )
  );
  transform: scale(var(--ornament-right-scale));
  transform-origin: bottom right;
}

.section-with-ornaments.hero-ornament-layout {
  min-height: clamp(200px, 24vw, 280px);
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

.section-with-ornaments .section-ornament-copy {
  position: relative;
  z-index: 1;
  width: min(100%, var(--ornament-center-max));
  max-width: min(62ch, var(--ornament-center-max));
  margin: 0 auto;
  text-align: center;
  transform: translateX(var(--ornament-copy-shift));
}

.hero-with-ornaments .title {
  width: min(100%, var(--ornament-center-max));
  max-width: min(var(--ornament-text-safe-width, 64ch), var(--ornament-center-max));
  margin-inline: auto;
}

#tourism_id .section-ornament-copy,
#food_drinks_id .section-ornament-copy {
  max-width: min(76ch, var(--ornament-center-max));
}

#restaurants_id .section-ornament-copy,
#winery_id .section-ornament-copy {
  max-width: min(80ch, var(--ornament-center-max));
}

#weddingdayhero .hero-ornament-layout{
  max-width: clamp(960px, 94vw, 1200px);
}

#weddingdayhero {
  --weddingdayhero-width-gain: calc(var(--ornament-side-gap, 1rem) * 10);
}

#weddingdayhero .title-weddingday,
#weddingdayhero #weddingday-hero.title-weddingday {
  width: min(98vw, calc(var(--ornament-center-max) + (2 * var(--weddingdayhero-width-gain))));
  max-width: min(110ch, calc(var(--ornament-center-max) + (2 * var(--weddingdayhero-width-gain))));
  margin-inline: auto;
}

/* Shared page-hero title typography */
.title-weddingday .main,
.title-logistics .main,
.title-contact .main,
.title-faq .main,
.title-tourism .main {
  display:block;
  margin-bottom:.75rem;
  font-weight:800;
  line-height: 1.34;
}

.title-weddingday .sub,
.title-logistics .sub,
.title-contact .sub,
.title-faq .sub,
.title-tourism .sub {
  display:block;
  font-size:clamp(1.1rem,2.2vw,1.35rem);
  font-weight:500;
  line-height: 1.44;
}

.title-tourism .sub + .sub {
  margin-top: clamp(.5rem, 1vw, 1rem);
}

.title-logistics .main,
.title-contact .main,
.title-faq .main,
.title-tourism .main {
  font-size:clamp(1.8rem,5vw,3rem);
}

.title-logistics {
  width: min(100%, 60ch);
  max-width: 60ch;
  text-wrap: balance;
}

.title-tourism {
  width: min(100%, 60ch);
  max-width: 60ch;
  text-wrap: balance;
}

.title-weddingday{
  width: min(94vw, 74ch);
  max-width: 74ch;
  margin:0 auto; text-align:center; line-height:1.2; position: relative; z-index: 1;
}
.title-weddingday .main{
  font-size:clamp(1.95rem,5.1vw,3.25rem); font-weight:800;
  white-space: normal;
  text-wrap: balance;
}

/* @media (max-width: 1320px) and (min-width: 1280px) { */
@media (min-width: 1280px) {
  #weddingdayhero {
    --ornament-left-scale: 1.32;
    --ornament-right-scale: 1.32;
    --ornament-left-desktop-offset: clamp(-3rem, -3.9vw, -1.4rem);
    --ornament-right-desktop-offset: clamp(-3rem, -3.9vw, -1.4rem);
    --ornament-side-gap: clamp(1.5rem, 2.8vw, 2.6rem);
  }

  html[lang="it"] #weddingdayhero {
    --ornament-left-scale: 1.36;
    --ornament-right-scale: 1.36;
  }

  html[lang="it"] #weddingdayhero .title-weddingday .main {
    white-space: normal;
    text-wrap: balance;
    font-size: clamp(1.8rem, calc(2.05vw + 0.95rem), 2.8rem);
  }

  #food_drinks_id {
    --ornament-left-scale: 0.92;
    --ornament-right-scale: 1.08;
    --ornament-copy-shift: clamp(4px, 0.7vw, 12px);
  }

  #restaurants_id {
    --ornament-left-scale: 1.03;
    --ornament-right-scale: 1.03;
    --ornament-left-desktop-offset: clamp(-2.2rem, -2.7vw, -1rem);
    --ornament-right-desktop-offset: clamp(-2.2rem, -2.7vw, -1rem);
  }

  #restaurants_id .section-with-ornaments.hero-ornament-layout {
    max-width: min(1600px, 99vw);
  }

  #restaurants_id .section-with-ornaments .hero-ornaments {
    width: min(calc(100% + clamp(1.5rem, 3vw, 4rem)), 99vw);
  }

  #winery_id {
    --ornament-left-scale: 0.94;
    --ornament-right-scale: 0.86;
    --ornament-copy-shift: 0px;
  }

  #winery_id .section-with-ornaments.hero-ornament-layout {
    min-height: clamp(260px, 24vw, 360px);
  }

  .hero-with-ornaments .hero-ornament-layout,
  .section-with-ornaments.hero-ornament-layout {
    min-height: clamp(300px, 36vw, 430px);
    padding: 0 clamp(7rem, 14vw, 11.5rem);
  }

  .section-with-ornaments.hero-ornament-layout {
    min-height: clamp(190px, 18vw, 260px);
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  }

  .title-weddingday {
    width: min(94vw, 78ch);
    max-width: 78ch;
  }

  .title-weddingday .main {
    font-size: clamp(2rem, calc(2.6vw + 1rem), 3.2rem);
    white-space: nowrap;
    text-wrap: nowrap;
  }

  .title-weddingday .sub {
    font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  }
}

@media (max-width: 1279px) {
  #tourismhero,
  #tourism_id,
  #food_drinks_id,
  #restaurants_id,
  #winery_id,
  #accommodation_id {
    overflow-x: hidden;
  }

  #winery_id .section-with-ornaments {
    --ornament-right-stack-shift: clamp(-28px, -3.1vw, -18px);
    --ornament-left-scale: 0.86;
    --ornament-right-scale: 1.08;
  }

  .hero-with-ornaments .hero-ornament-layout,
  .section-with-ornaments.hero-ornament-layout {
    min-height: auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(0.5rem, 1.8vw, 0.9rem);
  }

  .hero-with-ornaments .title,
  .section-with-ornaments .section-ornament-copy {
    order: 1;
    transform: none;
  }

  .hero-with-ornaments .hero-ornaments,
  .section-with-ornaments .hero-ornaments {
    order: 2;
    position: relative;
    inset: auto;
    width: min(88vw, 520px);
    height: auto;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 0;
  }

  .hero-with-ornaments .hero-ornaments img,
  .section-with-ornaments .hero-ornaments img {
    position: static;
    max-width: none;
    flex: 0 0 auto;
  }

  .hero-with-ornaments .hero-ornaments .hero-ornament--left {
    width: var(--ornament-left-mobile, clamp(170px, 37vw, 230px));
  }

  .hero-with-ornaments .hero-ornaments .hero-ornament--right {
    width: var(--ornament-right-mobile, clamp(170px, 37vw, 230px));
  }

  .section-with-ornaments .hero-ornaments .hero-ornament--left {
    width: var(--ornament-left-mobile, clamp(130px, 29vw, 190px));
  }

  .section-with-ornaments .hero-ornaments .hero-ornament--right {
    width: var(--ornament-right-mobile, clamp(130px, 29vw, 190px));
  }

  .hero-with-ornaments .hero-ornaments .hero-ornament--left,
  .section-with-ornaments .hero-ornaments .hero-ornament--left {
    left: auto;
    z-index: 1;
    transform-origin: bottom center;
  }

  .hero-with-ornaments .hero-ornaments .hero-ornament--right {
    right: auto;
    margin-left: var(--ornament-overlap-mobile);
    z-index: 2;
  }

  .section-with-ornaments .hero-ornaments .hero-ornament--right {
    right: auto;
    margin-left: var(--ornament-right-stack-shift, var(--ornament-overlap-mobile));
    z-index: 2;
  }

  #restaurants_id .section-with-ornaments .hero-ornaments {
    width: min(96vw, 560px);
    height: clamp(180px, 46vw, 300px);
    max-width: none;
    display: block;
    overflow: visible;
  }

  #restaurants_id .section-with-ornaments .hero-ornaments .hero-ornament--left,
  #restaurants_id .section-with-ornaments .hero-ornaments .hero-ornament--right {
    position: absolute;
    bottom: 0;
    right: auto;
    margin-left: 0;
    max-width: none;
    flex: none;
    width: clamp(220px, 48vw, 330px);
  }

  #restaurants_id .section-with-ornaments .hero-ornaments .hero-ornament--left {
    left: 50%;
    transform: translateX(var(--restaurant-left-center-mobile));
    z-index: 1;
  }

  #restaurants_id .section-with-ornaments .hero-ornaments .hero-ornament--right {
    left: 50%;
    transform: translateX(var(--restaurant-right-center-mobile));
    z-index: 2;
  }

  #tourism_id .section-with-ornaments .hero-ornament--left {
    z-index: 2;
  }

  #tourism_id .section-with-ornaments .hero-ornament--right {
    z-index: 1;
  }

  .title-weddingday .main {
    white-space: normal;
  }

  #weddingdayhero .hero-ornament-layout {
    padding-inline: 0;
    align-items: center;
  }

  #weddingdayhero .title-weddingday,
  #weddingdayhero #weddingday-hero.title-weddingday {
    width: min(100%, 68ch);
    max-width: 68ch;
    margin-inline: auto;
    padding-inline: 0;
  }

}

@media (max-width: 480px) {
  .hero-with-ornaments .hero-ornament-layout,
  .section-with-ornaments.hero-ornament-layout {
    padding: 0 0.75rem;
    gap: 0.35rem;
  }

  .title-weddingday .main,
  .title-logistics .main,
  .title-faq .main,
  .title-tourism .main {
    margin-bottom: 0.45rem;
    font-size: clamp(1.55rem, 9vw, 2.35rem);
    line-height: 1.34;
  }

  .title-weddingday .sub,
  .title-faq .sub,
  .title-tourism .sub {
    font-size: clamp(0.92rem, 4vw, 1.05rem);
    line-height: 1.22;
  }

  .hero-with-ornaments .hero-ornaments,
  .section-with-ornaments .hero-ornaments {
    width: min(82vw, 360px);
  }

  .hero-with-ornaments .title,
  .section-with-ornaments .section-ornament-copy {
    max-width: min(100%, 24rem);
  }

  #tourismhero .title,
  #logisticshero .title {
    max-width: min(100%, 28rem);
  }
}

/* === Info Section === */
.info-section {
    padding: clamp(3rem, 6vw, 5rem) 1rem;
}

.info-main-title,
.beauty-title,
.travel-title {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  margin: 0 0 clamp(1.35rem, 2.8vw, 2.2rem) 0;
  color: var(--ink);
}

.beauty-intro,
.travel-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.accommodation__title,
.tourism__title,
.winery__title,
.restaurant__title {
  text-align: center;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 clamp(1.35rem, 2.8vw, 2.2rem) 0;
}

.accommodation__intro,
.tourism__intro,
.winery__intro,
.restaurant__intro {
  text-align: center;
  max-width: 76ch;
  margin: 0 auto clamp(1.5rem, 3vw, 2rem) auto;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
}

.info-head {
  max-width: 80ch;
  margin: 0 auto 2rem;
  text-align: center;
}

.info-col {
    text-align: center;       /* centers everything in the column */
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
  /* grid-template-columns: repeat(3, 1fr); 3 equal columns */
  align-items: start;
  gap: clamp(3rem, 8vw, 7rem);
  max-width: 1400px;
  margin: 0 auto;
}

.info-section .wd-info-icon {
  height: clamp(12.24rem, 23.04vw, 16.56rem);
  margin-bottom: 1rem;
}

.info-section .wd-info-icon img {
  width: clamp(10.8rem, 20.16vw, 15.84rem);
  max-width: none;
  max-height: 100%;
}

.info-col h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.info-col p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

#bank-info-dialog {
  border: 0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  width: min(92vw, 420px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

#bank-info-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

#bank-info-dialog h4 {
  margin: 0 0 .6rem 0;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
}

#bank-info-dialog .info-dt {
  margin: 0 0 .9rem 0;
}

/* Stack columns on smaller screens */
@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* === Beauty Contacts === */
.beauty {
    padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
}

.beauty-head {
  max-width: 80ch;
    margin: 0 auto 2rem;
    text-align: center;
}

.beauty-coming-soon {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.beauty-coming-soon img {
  width: min(100%, 780px);
  height: auto;
  border-radius: 14px;
  display: block;
}

.beauty-grid {
  max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.beauty .wd-info-icon {
  height: clamp(12.24rem, 23.04vw, 16.56rem);
  margin-bottom: 1rem;
}

.beauty .wd-info-icon img {
  width: clamp(10.8rem, 20.16vw, 15.84rem);
  max-width: none;
  max-height: 100%;
}

.beauty-col {
    text-align: center;
    padding: 1.25rem 1rem 1.5rem;
    box-shadow: none;
    border: 0;
    border-radius: 0;
}

.beauty-section {
    text-transform: none; /* remove all-caps for better readability */
    letter-spacing: .08em;
    font-size: .95rem;
    color: var(--brand, #b07b57);
    margin: 0 0 1rem 0;
    position: relative;
}

.beauty-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: grid;
    gap: 1rem;
}

.pro-item {
    display: grid;
    gap: .5rem;
    align-items: center;
    justify-items: center;
}

.pro-name {
    font-weight: 600;
    color: var(--ink);
}

.pro-btn {
    padding: .45rem .85rem;             /* smaller than default if you like */
    border-radius: 999px;
    line-height: 1;
}

/* Stack on small screens */
@media (max-width: 900px) {
    .beauty-grid { grid-template-columns: 1fr; }
}

/* ---- Events ---- */
/* Two-panel section */
.events-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(520px, 80vh, 980px);
}

/* LEFT column */
.events-left{
  background: var(--events-bg);
  padding: clamp(16px, 4vw, 56px);
  display:flex;
  flex-direction:column;
  gap: clamp(12px, 2.5vw, 28px);
  overflow:auto;
}
.events-heading{
  text-align:center;
  margin: 0 0 .25rem 0;
  color: var(--events-ink);
}

/* RIGHT cover image */
.events-right-cover{
  background-image: var(--events-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== Alternating vertical timeline (inspired by CodePen) ===== */
.tl{
  --gap: clamp(18px, 2.5vw, 28px);
  --spine-w: 2px;
  --dot: 10px;
  list-style: none;
  margin: 0;
  padding: clamp(6px, 1vw, 10px) 0;
  position: relative;
}

.tl,
.tl * {
  box-sizing: border-box;
}

/* center spine */
.tl::before{
  content:"";
  position:absolute;
  left:50%;
  top:0; bottom:0;
  width: var(--spine-w);
  transform: translateX(-50%);
  background: var(--events-spine);
  border-radius: 2px;
}

/* items split around spine */
.tl-item{
  position: relative;
  inline-size: 50%;                 /* width */
  padding: var(--gap);
}

.tl-item:nth-child(odd){            /* inline-start side (left in LTR, right in RTL) */
  padding-inline-end: calc(var(--gap) * 2.2);
  text-align: end;
}

.tl-item:nth-child(even){           /* inline-end side */
  margin-inline-start: 50%;
  padding-inline-start: calc(var(--gap) * 2.2);
  text-align: start;
}

/* dots on spine */
.tl-item::before{
  content:"";
  position:absolute;
  inset-block-start: calc(50% - var(--dot)/2);
  inline-size: var(--dot);
  block-size: var(--dot);
  background: var(--events-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--events-accent) 24%, transparent);
}

/* odd side: place dot at inline-end edge; even side: inline-start edge */
.tl-item:nth-child(odd)::before{
  inset-inline-end: calc(-1 * var(--dot) / 2 + var(--spine-w) / 2);
}
.tl-item:nth-child(even)::before{
  inset-inline-start: calc(-1 * var(--dot) / 2 - var(--spine-w) / 2);
}

/* cards */
.tl-card{
  display: inline-block; /* shrink to content for nice alternating effect */
  max-width: min(42ch, 96%);
  padding: 0;
}
.tl-title{
  margin: 0 0 .25rem 0;
  color: var(--events-ink);
  font-weight: 700;
  line-height: 1.25;
}
.tl-time{
  display:inline-block;
  font-size: .95rem;
  color: var(--events-accent);
  font-weight: 600;
}
.tl-text{
  margin: .35rem 0 0 0;
  color: var(--events-muted);
}

/* Venue block under the timeline */
.events-venue-cta{
  margin-top: clamp(10px, 2.4vw, 18px);
  text-align:center;
}

.events-venue-cta .btn {
  transition: none;
}

.events-venue-cta .btn:hover,
.events-venue-cta .btn:focus-visible {
  transform: none;
}

.venue-name{ margin:0 0 .5rem; color: var(--events-ink); }
.venue-name strong{
  font-size: 1.17em;
  font-weight: 700;
  line-height: 1.25;
}

/* ===== Responsive ===== */
@media (max-width: 1170px){
  .events-split{ grid-template-columns: 1fr; }
  .events-right-cover{ min-height: 42vh; }
  .events-heading{ text-align:center; }

  /* spine still centered */
  .tl::before{ left:50%; transform: translateX(-50%); }

  /* still alternating (50% each) */
  .tl-item{
    inline-size: 50%;
    margin: 0;
    padding: var(--gap);
  }
  .tl-item:nth-child(odd){
    padding-inline-end: calc(var(--gap) + var(--dot) + var(--spine-w));
    text-align: end;
  }
  .tl-item:nth-child(even){
    margin-inline-start: 50%;
    padding-inline-start: calc(var(--gap) + var(--dot) + var(--spine-w));
    text-align: start;
  }

  /* dot stays centered on spine */
  .tl-item::before{ inset-block-start: calc(50% - var(--dot)/2); }
  .tl-item:nth-child(odd)::before{
    inset-inline-end: calc(-1 * var(--dot)/2 + var(--spine-w)/2);
  }
  .tl-item:nth-child(even)::before{
    inset-inline-start: calc(-1 * var(--dot)/2 - var(--spine-w)/2);
  }

  .tl-card{ max-width: min(34ch, 92%); }
}

/* ---- Logistics ---- */
#logisticshero{
  padding:clamp(3rem,6vw,5rem) 1rem; text-align:center;
  --logisticshero-title-max: clamp(48rem, 86vw, 78rem);
}
#logisticshero .logisticscontainer{ max-width:1300px; margin:0 auto; }
#logisticshero .hero-ornament-layout {
  min-height: clamp(220px, 28vw, 340px);
  padding-inline: clamp(1rem, 4vw, 3rem);
}
#logisticshero .hero-ornaments {
  display: none;
}
#logisticshero .title-logistics,
#logisticshero #logistics-hero.title-logistics {
  width: min(100%, var(--logisticshero-title-max));
  max-width: min(100%, var(--logisticshero-title-max));
  margin:clamp(2rem,6vw,4rem) auto;
  text-align:center;
  line-height:1.2;
  text-wrap: balance;
}

@media (min-width: 1280px) {
  #logisticshero {
    --logisticshero-title-max: clamp(52rem, 84vw, 84rem);
  }

  #logisticshero .hero-ornaments {
    display: block;
    inset: 0;
    transform: none;
  }

  #logisticshero .hero-ornaments img {
    top: 0;
    bottom: auto;
  }

  #logisticshero .hero-ornament--left {
    width: clamp(178px, 14vw, 252px);
    left: 0;
  }

  #logisticshero .hero-ornament--right {
    width: clamp(178px, 14vw, 252px);
    right: 0;
    top: clamp(8px, 0.8vw, 14px);
  }

}

@media (min-width: 1400px) {
  #logisticshero {
    --logisticshero-title-max: clamp(56rem, 82vw, 90rem);
  }
}

@media (max-width: 1279px) {
  #logisticshero .hero-ornament-layout {
    padding-inline: clamp(0.75rem, 3.4vw, 2rem);
    align-items: center;
  }

  #logisticshero .title-logistics,
  #logisticshero #logistics-hero.title-logistics {
    width: min(100%, clamp(42ch, 92vw, 86ch));
    max-width: min(100%, clamp(42ch, 92vw, 86ch));
    margin-inline: auto;
    padding-inline: 0;
  }
}

/* === Travel Section === */
.travel-section {
  padding: clamp(2.5rem, 6vw, 4rem) 1rem;
}

.travel-col {
  text-align: center;       /* centers everything in the column */
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 1250px;
  margin: 0 auto;
}

.travel-section .travel-icon {
  height: clamp(14.688rem, 27.648vw, 19.872rem);
  margin-bottom: 1rem;
}

.travel-section .travel-icon img {
  width: clamp(12.96rem, 24.192vw, 19.008rem);
  max-width: none;
  max-height: 100%;
}

.travel-col h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.travel-col p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.travel-col .travel-copy {
  overflow: hidden;
  transition: max-height 280ms ease;
}

.travel-col--plane .travel-copy {
  max-height: 17.5rem;
}

.travel-col--plane.is-expanded .travel-copy {
  max-height: 80rem;
}

.travel-more-btn {
  display: inline-flex;
  margin: .25rem auto 0;
}

/* Stack columns on smaller screens */
@media (max-width: 900px) {
  .travel-grid {
      grid-template-columns: 1fr;
      text-align: center;
  }

  .travel-col--plane .travel-copy {
    max-height: 16rem;
  }
}

.travel-head {
  max-width: 82ch;
  margin: 0 auto 2rem;
  text-align: center;
}

.travel-icon,
.wd-info-icon,
.accommodation-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
}

.travel-icon img,
.wd-info-icon img,
.accommodation-icon img {
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  background: transparent;
  display: block;
}

.travel-icon img,
.wd-info-icon img {
  width: min(100%, 340px);
  height: auto;
}

.accommodation-icon img {
  width: min(100%, 440px);
  height: auto;
}

@media (max-width: 640px) {
  .hero .names {
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
}

/* --- Transportation section (text left, SVG right) --- */
/* .transportation {
  padding: clamp(2.5rem, 6vw, 4rem) 1rem;
}
.transportation__container { max-width: 1240px; margin: 0 auto; }

.transportation__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.transportation__title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.75rem 0;
  text-align: center;
}

.transportation__text {
  max-width: 72ch;
  margin: 0 auto;
  text-align: center;
}

.transportation__p {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.6;
  margin: 0 0 0.75rem 0;
  text-align: center;
}

.transportation__media {
  display: grid;
  place-items: center;
}

.transportation__svg {
  width: 100%;
  max-width: 560px;      
  height: auto;
  display: block;
  color: var(--brand, #b07b57); 
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

@media (max-width: 768px){
  .transportation__grid{
    display:flex;
    flex-direction:column;
    gap: clamp(1rem, 4vw, 1.25rem);
  }

  .transportation__text{
    display: contents;
  }

  .transportation__title{ order: 0; text-align:center; }
  .transportation__media{ order: 1; }
  .transportation__p     { order: 2; text-align:center; }
} */

/* --- accommodation --- */
.accommodation,
.tourism,
.winery,
.restaurant { padding: clamp(2.5rem, 6vw, 4rem) 1rem; }

/* Give the Logistics accommodation block extra breathing room vs shared destination defaults. */
#accommodation_id {
  padding: clamp(3.75rem, 8.5vw, 6.25rem) 1rem clamp(2rem, 4.5vw, 3.25rem);
}

/* Give Tourism page destination sections extra vertical breathing room under the hero. */
#tourism_id,
#food_drinks_id,
#restaurants_id,
#winery_id {
  padding: clamp(3.75rem, 8.5vw, 6.25rem) 1rem clamp(2rem, 4.5vw, 3.25rem);
}

.accommodation__container, .tourism__container,
.restaurant__container, .winery__container {
  max-width: 1360px;
  margin: 0 auto;
}

.accommodation__heading {
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
  padding: 0 clamp(1rem, 4vw, 2.25rem);
}

.accommodation__heading-copy {
  width: min(100%, 76ch);
  margin: 0 auto;
  text-align: center;
}

.accommodation__coming-soon {
  max-width: 860px;
  margin: clamp(2rem, 4.5vw, 3.25rem) auto 0;
  display: flex;
  justify-content: center;
}

.accommodation__coming-soon img {
  width: min(100%, 780px);
  height: auto;
  border-radius: 14px;
  display: block;
}

/* Shared destination section grid */
.accommodation__grid,
.tourism__grid,
.winery__grid,
.restaurant__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.tourism__grid {
  max-width: 1360px;
  margin: 0 auto;
}

.restaurant__grid,
.winery__grid {
  max-width: 1360px;
  margin: 0 auto;
}

/* Restaurants can have many entries, so use a denser grid than other destination sections. */
.restaurant__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.6vw, 1rem);
}

#accommodation_id .accommodation__grid,
#tourism_id .tourism__grid,
#food_drinks_id .tourism__grid,
#restaurants_id .restaurant__grid,
#winery_id .winery__grid {
  margin: clamp(2rem, 4.5vw, 3.25rem) auto 0;
}

@media (max-width: 900px) {
  .accommodation__grid,
  .tourism__grid,
  .winery__grid,
  .restaurant__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .accommodation__grid,
  .tourism__grid,
  .winery__grid,
  .restaurant__grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .restaurant__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

/* Shared destination card shell */
.accommodation__card,
.winery__card,
.restaurant__card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.accommodation__card:hover, .accommodation__card:focus-visible,
.winery__card:hover, .winery__card:focus-visible,
.restaurant__card:hover, .restaurant__card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  outline: none;
}

/* Square image area */
.accommodation__figure,
.winery__figure,
.restaurant__figure { margin: 0; display: grid; }
.accommodation__figure::before,
.winery__figure::before,
.restaurant__figure::before {
  content: "";
  display: block;
  aspect-ratio: 1 / 1;      /* perfect square */
}
.accommodation__figure > img,
.winery__figure > img,
.restaurant__figure > img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* fills square nicely */
  display: block;
}

/* Caption */
.accommodation__caption,
.winery__caption,
.restaurant__caption {
  grid-area: 1 / 1;
  align-self: end;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0));
  color: #fff;
  padding: .75rem .9rem;
}
.accommodation__name,
.winery__name,
.restaurant__name {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}
.accommodation__place,
.winery__place,
.restaurant__place {
  display: block;
  opacity: 0.9;
  font-size: .95rem;
}

/* ---- Contact Us ---- */
#contacthero{
  padding: clamp(3rem,6vw,5rem) 1rem clamp(1.25rem,2.8vw,2.1rem); text-align:center;
}
#contacthero .contactcontainer{ max-width:1300px; margin:0 auto; }
.title-contact{
  max-width:48ch; margin:clamp(2rem,6vw,4rem) auto; text-align:center; line-height:1.2;
}

/* Contact details grid */
/* Center the whole section */
.contact-section {
  max-width: 1100px;       /* a bit wider to fit 2 cards + image */
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
  text-align: center;
}

/* Two columns: left block (with both people) and right image */
.contacts {
  display: grid;
  grid-template-columns: 1.2fr .8fr; /* left wider than right */
  gap: 2rem;
  align-items: start;
}

/* Inside the left column, put Alessia & Steve side-by-side */
.contact-left {
  display: grid;
  grid-template-columns: repeat(1, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

/* Make the title span both columns */
.contact-left .contact-title {
  grid-column: 1 / -1;
  margin-bottom: 1.5rem;
}

/* Person card */
.person h3 { margin-bottom: 0.75rem; }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

/* Row: icon + link */
.contact-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}

/* Icon box */
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 18px;
}

/* Make the actual <img> obey the size */
.icon img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Links */
.contact-list a {
  color: var(--brand, #b07b57);
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }

/* Image column */
.contact-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(5rem, 10vw, 8rem);
}
.contact-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* .filter-blue { filter: invert(85%) sepia(58%) saturate(2549%) hue-rotate(169deg) brightness(91%) contrast(102%); } */
.filter-purple { filter: invert(72%) sepia(61%) saturate(268%) hue-rotate(213deg) brightness(99%) contrast(87%); }

/* Mobile: stack everything */
@media (max-width: 820px) {
  .contacts { grid-template-columns: 1fr; }
  .contact-left { grid-template-columns: 1fr; }
  .contact-image { margin-top: 0; }
}

/* ----- FAQ ------ */
#faqhero{
  padding:clamp(3rem,6vw,5rem) 1rem; text-align:center;
  --faqhero-title-max: clamp(46rem, 82vw, 74rem);
  --faqhero-sub-max: clamp(42rem, 78vw, 70rem);
  overflow-x: clip;
}
#faqhero .faqcontainer{ max-width:1300px; margin:0 auto; }

#faqhero .hero-ornament-layout {
  min-height: clamp(220px, 28vw, 340px);
  padding-inline: clamp(1rem, 4vw, 3rem);
  gap: clamp(1.3rem, 4vw, 1.75rem);
}

#faqhero .hero-ornaments {
  display: none;
}

@media (max-width: 1279px) {
  #faqhero .hero-ornament-layout {
    padding-inline: clamp(0.75rem, 3.4vw, 2rem);
    align-items: center;
  }

  #faqhero .title-faq,
  #faq-hero {
    width: min(100%, clamp(40ch, 92vw, 78ch));
    max-width: min(100%, clamp(40ch, 92vw, 78ch));
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  #faqhero .title-faq,
  #faq-hero {
    width: min(100%, clamp(34ch, 94vw, 60ch));
    max-width: min(100%, clamp(34ch, 94vw, 60ch));
    margin-inline: auto;
  }
}

@media (min-width: 1280px) {
  #faqhero {
    --faqhero-title-max: clamp(50rem, 80vw, 80rem);
    --faqhero-sub-max: clamp(44rem, 76vw, 76rem);
  }

    #faqhero .hero-ornaments {
    display: block;
    inset: 0;
    transform: none;
  }

  #faqhero .hero-ornaments img {
    top: 0;
    bottom: auto;
  }

  #faqhero .hero-ornament--left {
    width: clamp(178px, 14vw, 252px);
    left: 0;
  }

  #faqhero .hero-ornament--right {
    width: clamp(178px, 14vw, 252px);
    right: 0;
    top: clamp(8px, 0.8vw, 14px);
  }

}

@media (min-width: 1400px) {
  #faqhero {
    --faqhero-title-max: clamp(54rem, 78vw, 86rem);
    --faqhero-sub-max: clamp(48rem, 74vw, 82rem);
  }
}

.title-faq {
  position: relative;
  z-index: 1;
}

#faq-hero {
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

#faqhero .title-faq {
  width: min(100%, var(--faqhero-title-max));
  max-width: min(100%, var(--faqhero-title-max));
  margin-inline: auto;
}

#faqhero .title-faq .sub {
  text-wrap: balance;
  font-size: clamp(0.98rem, 0.62vw + 0.82rem, 1.2rem);
  line-height: 1.36;
  max-inline-size: min(100%, var(--faqhero-sub-max));
  margin-inline: auto;
}

html[lang="it"] #faqhero {
  --faqhero-title-max: clamp(47rem, 79vw, 76rem);
  --faqhero-sub-max: clamp(40rem, 74vw, 68rem);
}

/* Keep FAQ hero heading perfectly centered on tablet/phone sizes. */
@media (max-width: 1279px) {
  #faqhero #faq-hero.title-faq {
    width: min(100%, clamp(40ch, 92vw, 78ch));
    max-width: min(100%, clamp(40ch, 92vw, 78ch));
    margin-inline: auto;
    padding-inline: 0;
  }

  #faqhero .hero-ornament-layout {
    padding-inline: clamp(0.75rem, 3.4vw, 2rem);
  }

}

.title-faq .sub + .sub {
  margin-top: clamp(.5rem, 1vw, 1rem);
}

.faq-divider {
  padding: 0 1rem;
}

.faq-divider img {
  width: min(760px, 92vw);
  margin: 0 auto;
  opacity: 0.95;
}

.faq-section { padding: clamp(2.5rem, 6vw, 4rem) 1rem; }
.faq-wrap { max-width: 1080px; margin: 0 auto; }
.faq-heading { text-align: center; margin-bottom: 1.25rem; }

/* Card container */
.faq-item {
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
  overflow: hidden;
  margin: .75rem 0;
  color: #082787;
}

#faq .faq-item > .faq-trigger,
#faq .faq-item > .faq-trigger span,
#faq .faq-item > .faq-trigger * {
  color: #082787 !important;
  -webkit-text-fill-color: #082787 !important;
}

/* Collapsible panel (animated height) */
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 1.1rem;      /* horizontal padding always */
}
.faq-panel > * { margin: 1rem 0 1.25rem; color: #082787; }

/* When open, we add a class via JS that sets max-height */
.faq-panel.is-open { padding-bottom: 1rem; }

.faq-photo-section {
  padding: 0 1rem 4rem;
}

.faq-photo {
  max-width: 1180px;
  margin: 0 auto;
}

.faq-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.logistics-divider {
  padding: 0 1rem;
}

.logistics-divider img {
  width: min(780px, 92vw);
  margin: 0 auto;
  opacity: 0.95;
}

/* ------ Tourism ------ */
.tourism-divider {
  padding: 0 1rem;
}

.tourism-divider img {
  width: min(780px, 92vw);
  margin: 0 auto;
  opacity: 0.95;
}

/* Keep hero-to-content spacing consistent and compact across Logistics, Tourism, and FAQ. */
#logisticshero,
#tourismhero,
#faqhero {
  padding-bottom: clamp(1.15rem, 2.3vw, 1.7rem);
}

.logistics-divider,
.tourism-divider,
.faq-divider {
  margin: 0;
}

.logistics-divider img,
.tourism-divider img,
.faq-divider img {
  display: block;
}

#travel_id.travel-section,
#tourism_id.tourism,
.faq-section {
  padding-top: clamp(1.15rem, 2.3vw, 1.7rem);
}

/* Keep Tourism page section rhythm roomy even with global compact hero-to-content spacing rules. */
#tourism_id.tourism {
  padding-top: clamp(3.75rem, 8.5vw, 6.25rem);
  padding-bottom: clamp(2rem, 4.5vw, 3.25rem);
}

#tourismhero{
  padding: clamp(3rem, 6vw, 5rem) 1rem clamp(1.15rem, 2.3vw, 1.7rem);
  text-align:center;
  --tourismhero-title-max: clamp(48rem, 86vw, 78rem);
}
#tourismhero .tourismcontainer{ max-width:1300px; margin:0 auto; }
#tourismhero .hero-ornament-layout {
  min-height: clamp(220px, 28vw, 340px);
  padding-inline: clamp(1rem, 4vw, 3rem);
}

#tourismhero .hero-ornaments {
  display: none;
}
#tourismhero .title-tourism{
  width: min(100%, var(--tourismhero-title-max));
  max-width: min(100%, var(--tourismhero-title-max));
  margin:clamp(2rem,6vw,4rem) auto;
  text-align:center;
  line-height:1.2;
}

#tourismhero .title-tourism .sub {
  text-wrap: balance;
}

@media (min-width: 1280px) {
  #tourismhero {
    --tourismhero-title-max: clamp(52rem, 84vw, 84rem);
  }

  #tourismhero .hero-ornaments {
    display: block;
    inset: 0;
    transform: none;
  }

  #tourismhero .hero-ornaments img {
    top: 0;
    bottom: auto;
  }

  #tourismhero .hero-ornament--left {
    width: clamp(178px, 14vw, 252px);
    left: 0;
  }

  #tourismhero .hero-ornament--right {
    width: clamp(178px, 14vw, 252px);
    right: 0;
    top: clamp(8px, 0.8vw, 14px);
  }
  
}

@media (min-width: 1400px) {
  #tourismhero {
    --tourismhero-title-max: clamp(56rem, 82vw, 90rem);
  }
}

html[lang="it"] #tourismhero {
  --tourismhero-title-max: clamp(48rem, 80vw, 78rem);
}

html[lang="it"] #tourismhero .title-tourism {
  max-width: min(100%, var(--tourismhero-title-max));
}

html[lang="it"] #tourismhero .title-tourism .sub {
  font-size: clamp(0.98rem, 0.7vw + 0.78rem, 1.2rem);
  line-height: 1.36;
}

@media (min-width: 1700px) {
  #tourismhero {
    --tourismhero-title-max: clamp(60rem, 78vw, 96rem);
  }
}

/* === Tourism cards — FADE ONLY (no 3D) === */
.tour-card{
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* clickable area */
.tour-card__inner{
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: inherit;
  overflow: hidden;
  isolation: isolate;
}

/* faces fill the card */
.tour-card__face{
  position: absolute;
  inset: 0;
  transition: opacity .35s ease; /* fade animation */
}

/* FRONT (photo + title) */
.tour-card__front{
  display:flex; align-items:flex-end; justify-content:flex-start;
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}
.tour-card__front img{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.tour-card__front h3{
  position: relative; margin: 0; width: 100%;
  padding: .75rem 1rem; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  font-size: 1.1rem; letter-spacing: .2px;
}

/* BACK (beige + text) */
.tour-card__back{
  z-index: 3;                /* paint above front when shown */
  color: #222;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem 1.1rem;
  opacity: 0;                /* hidden by default */
  pointer-events: none;
}
.tour-card__back p{ margin: 0; line-height: 1.4; color: #222; }

/* Toggle by JS: fade swap */
.tour-card__inner.is-flipped .tour-card__front{
  opacity: 0; pointer-events: none;
}
.tour-card__inner.is-flipped .tour-card__back{
  opacity: 1; pointer-events: auto;
}

/* Optional hover lift */
.tour-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .tour-card__face{ transition: none; }
}

/* ======== Parallax for full width images ======= */
.fullwidth-photo{
  position: relative;
  height: var(--mobile-height, clamp(42svh, 50dvh, 58dvh));
  overflow: hidden;
}

.fullwidth-photo > img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-mobile, var(--focus, 50% 50%));
  transform: translateY(var(--parallax, 0px)) scale(var(--img-scale-mobile, 1));
  will-change: transform;
}

/* Respect user preference */
@media (prefers-reduced-motion: reduce){
  .fullwidth-photo > img{ transform: none !important; }
}

/* Larger screens: allow more height + stronger scale */
@media (min-width: 768px){
  .fullwidth-photo{ height: clamp(70svh, 90dvh, 100dvh); }
  .fullwidth-photo > img{
    object-position: var(--focus, 50% 50%);
    transform: translateY(var(--parallax, 0px)) scale(var(--img-scale-desktop, 1.08));
  }
}

/* ================== More stuff ================== */
/* Allow the nav title to shrink within flex and keep to one line */
.site-nav .nav-title{ flex:1 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Lock body scroll when menu is open */
body.nav-open { overflow: hidden; touch-action: none; }

/* ===== Autocomplete (matches RSVP form styles) ===== */
.autocomplete {
  position: relative;
}

.autocomplete input {
  width: 100%;
  box-sizing: border-box;
}

/* Suggestion box */
.suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + .35rem);
  border: 1px solid #ccc;           /* matches form inputs */
  border-radius: .5rem;             /* matches .rsvp-form inputs */
  background: #f5f5f5;
  box-shadow: 0 4px 10px rgba(0,0,0,.08); /* matches section shadow vibe */
  max-height: 260px;
  overflow: auto;
  display: none;
  z-index: 1000;                    /* enough above inputs */
}

/* Each row */
.suggestion {
  padding: .65rem .75rem;           /* matches input padding */
  background: #f5f5f5;
  cursor: pointer;
  line-height: 1.2;
}

/* Hover + keyboard focus (if you later add it) */
.suggestion:hover,
.suggestion:focus {
  background: #ececec;
  outline: none;
}

/* Divider between items */
.suggestion + .suggestion {
  border-top: 1px solid #eee;
}

/* Secondary line */
.suggestion small {
  display: block;
  opacity: .7;
  margin-top: .15rem;
  font-size: .9em;
}

.field-warning {
  margin: .2rem 0 0;
  color: var(--brand, #e471ab);
  font-size: .85rem;
  line-height: 1.35;
}

.rsvp-coming-soon {
  max-width: 760px;
  margin: 4rem auto;
  text-align: center;
  padding: 0 1rem;
}

.rsvp-coming-soon h2 {
  margin-bottom: 1rem;
}

.rsvp-coming-soon p {
  margin-bottom: 1.5rem;
}

.rsvp-coming-soon img {
  width: min(100%, 520px);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Optional: tighten spacing on very small screens */
@media (max-width: 420px) {
  #tourismhero {
    --ornament-left-mobile: clamp(150px, 39vw, 190px);
    --ornament-right-mobile: clamp(150px, 39vw, 190px);
  }

  .suggestion{ padding: .6rem .7rem; }
}