:root {
  --teal: #2b6672;
  --teal-dark: #174d58;
  --teal-soft: #dce9e8;

  --gold: #b7934f;
  --gold-light: #dcc27f;

  --cream: #fbf8f1;
  --cream-2: #f4efe4;

  --white: #ffffff;

  --text: #28363a;
  --muted: #6d797c;

  --border: rgba(43, 102, 114, 0.14);

  --shadow:
    0 18px 45px rgba(29, 64, 69, 0.10);

  --radius: 28px;

  --container: 1220px;
}


/* ==================================================
   RESET
================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;

  width: 100%;
  max-width: 100%;

  overflow-x: hidden;
}

body {
  margin: 0;

  width: 100%;
  max-width: 100%;

  font-family: "DM Sans", sans-serif;

  color: var(--text);
  background: var(--cream);

  line-height: 1.6;

  overflow-x: hidden;
}

main {
  width: 100%;
  max-width: 100%;

  overflow-x: hidden;
}


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

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

button,
input,
textarea,
select {
  font-family: "DM Sans", sans-serif;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}


/* ==================================================
   FONT
================================================== */

h1,
h2,
.section-title,
.hero-title,
.about-title,
.services-title,
.gallery-title,
.newsletter-title {
  font-family: "Baloo 2", cursive;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--teal-dark);
  margin-top: 0;
}

h3,
h4,
h5,
h6 {
  font-family: "DM Sans", sans-serif;
}

.handwritten,
.about-note,
.footer-handwritten,
.decor-note {
  font-family: "Caveat", cursive;
  font-weight: 700;
}


/* ==================================================
   HEADER
================================================== */

.site-header {
  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  z-index: 100;

background:
  rgba(255, 255, 255, 0.5);

backdrop-filter:
  blur(10px);

-webkit-backdrop-filter:
  blur(10px);

  backdrop-filter: none;

  border-bottom: 0;

  overflow: visible;
}

/* onda decorativa dietro il logo 
.site-header::before {
  content: "";

  position: absolute;
  top: -18px;
  bottom: 0;
  left: -28px;

  width: 240px;
  height: auto;

  background:
    url("../images/decor/wave-header-left.svg")
    no-repeat left top;

background-size:
  240px 155px;

  opacity: 0.95;

  pointer-events: none;

  z-index: 0;
}*/


/* piccolo effetto morbido a destra 
.site-header::after {
  content: "";

  position: absolute;
  top: -48px;
  bottom: 0;
  right: -60px;

  width: 260px;
  height: auto;

  background:
    radial-gradient(
      circle at center,
      rgba(217, 189, 121, 0.16),
      transparent 68%
    );

  pointer-events: none;
}*/


.header-inner {
  min-height: 80px;

  display: grid;

  grid-template-columns:
    auto 1fr auto auto;

  align-items: center;

  gap: 28px;

  position: relative;

  z-index: 2;
}


.brand {
  position: relative;
  z-index: 2;
}


.brand img {
  width: 128px;
  max-height: 105px;
  object-fit: contain;
}


/* ==================================================
   NAV
================================================== */

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 27px;

  font-size: 0.92rem;
  font-weight: 600;
}


.main-nav a {
  position: relative;
  color: var(--text);
  transition: color 0.2s ease;
}


.main-nav a:hover,
.main-nav a.active {
  color: var(--teal);
}


.main-nav a::after {
  content: "";

  position: absolute;

  left: 50%;
  right: 50%;

  bottom: -9px;

  height: 2px;

  background: var(--teal);

  border-radius: 999px;

  transition:
    left 0.25s ease,
    right 0.25s ease;
}


.main-nav a:hover::after,
.main-nav a.active::after {
  left: 0;
  right: 0;
}

/* ==================================================
   MOBILE MENU BUTTON
================================================== */

.mobile-menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  align-items: center;
  justify-content: center;

  flex-direction: column;

  gap: 5px;

  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;

  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;

  display: block;

  background: var(--teal);

  border-radius: 999px;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}


/* ==================================================
   MOBILE NAV
================================================== */

@media (max-width: 820px) {

  html,
  body,
  main {
    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
  }

  .section {
    max-width: 100%;
    overflow-x: hidden;
  }


  /* NASCONDE HAMBURGER */

  .mobile-menu-toggle {
    display: none;
  }


  /* MENU SEMPRE VISIBILE */

.main-nav {
  position: static;

  display: flex;

  flex-wrap: wrap;

  justify-content: flex-end;
  align-items: center;

  gap: 10px 30px;

  width: 100%;

  padding: 0;

  background: transparent;

  border: 0;

  box-shadow: none;

  opacity: 1;

  visibility: visible;

  transform: none;

  pointer-events: auto;

  font-size: 0.9rem;
}

.main-nav a {
  width: auto;

  padding: 4px 0;

  border: 0;

  white-space: nowrap;

  color: var(--teal-dark);

  text-align: right;
}

  .main-nav a::after {
    display: none;
  }

}


/* ==================================================
   HAMBURGER OPEN STATE
================================================== */

.mobile-menu-toggle.is-open span:nth-child(1) {
  transform:
    translateY(7px)
    rotate(45deg);
}

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

.mobile-menu-toggle.is-open span:nth-child(3) {
  transform:
    translateY(-7px)
    rotate(-45deg);
}


/* ==================================================
   HEADER CONTACTS
================================================== */

.header-contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;

  font-size: 0.78rem;
  font-weight: 600;
}


.header-contacts a {
  display: flex;
  align-items: center;
  gap: 7px;
}


.header-contacts i {
  color: var(--teal);
}


.header-cta {
  display: flex;
}

/* ==================================================
   BUTTONS
================================================== */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  min-height: 48px;

  padding: 0 23px;

  border-radius: 999px;

  border: 1px solid transparent;

  font-size: 0.9rem;

  font-weight: 700;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}


.btn:hover {
  transform: translateY(-2px);
}


.btn-primary {
  background: var(--teal);
  color: #fff;

  box-shadow:
    0 10px 24px rgba(43, 102, 114, 0.18);
}


.btn-primary:hover {
  background: var(--teal-dark);
}


.btn-secondary {
  background: rgba(255, 255, 255, 0.80);
  color: var(--teal);

  border-color: var(--teal);
}


.btn-secondary:hover {
  background: var(--teal);
  color: #fff;
}


.btn-gold {
  background: var(--gold-light);
  color: var(--teal-dark);
}


/* ==================================================
   HERO
================================================== */

.hero {
  position: relative;
  min-height: 660px;

  display: flex;
  align-items: center;

  background-color: #ece6db;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}

/* onda in fondo alla hero */
.hero::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -1px;

  height: 110px;

  background:
    url("../images/decor/wave-hero-bottom.svg")
    no-repeat center bottom / cover;

  pointer-events: none;

  z-index: 4;
}

.hero-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(251, 248, 241, 0.98) 0%,
      rgba(251, 248, 241, 0.94) 32%,
      rgba(251, 248, 241, 0.55) 53%,
      rgba(251, 248, 241, 0.12) 78%,
      rgba(251, 248, 241, 0.03) 100%
    );
}


.hero-content {
  position: relative;
  z-index: 5;
}


.hero-copy {
  width: min(610px, 62%);
  padding: 150px 0 125px;
}


.hero h1 {
  font-family: "Baloo 2", cursive;

  font-size:
    clamp(
      3.2rem,
      5.6vw,
      5.3rem
    );

  font-weight: 800;

  line-height: 0.91;

  letter-spacing: -0.04em;

  color: var(--teal);

  margin-bottom: 22px;
}

.hero-copy p {
  max-width: 510px;

  font-size: 1.05rem;

  line-height: 1.55;

  margin: 0;

  color: #37474b;
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 14px;

  margin-top: 28px;
}


/* ==================================================
   HERO FEATURE ICONS
================================================== */

.hero-features {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 22px;

  max-width: 620px;

  margin-top: 42px;
}


.hero-feature {
  display: flex;
  align-items: center;

  gap: 9px;

  font-size: 0.76rem;

  font-weight: 600;

  line-height: 1.25;

  color: #536065;
}


.hero-feature-icon {
  width: 32px;
  height: 32px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  border: 2px solid var(--gold);

  color: var(--gold);

  flex: 0 0 auto;
}


/* ==================================================
   HERO DECORATIONS
================================================== */

.decor-svg {
  position: absolute;

  pointer-events: none;

  z-index: 6;

  user-select: none;
}


.hero-heart {
  width: 45px;

  top: 122px;

  left: 42%;
}


.hero-sparkle {
  width: 22px;

  top: 103px;

  left: 46%;
}

/* ==================================================
   SECTIONS
================================================== */

.section {
  position: relative;
  padding: 40px 0;
}


.section-heading {
  max-width: 760px;
  margin-bottom: 45px;
}


.section-heading.centered {
  margin-inline: auto;

  text-align: center;
}


.eyebrow,
.section-eyebrow {
  display: inline-block;

  margin-bottom: 14px;

  font-size: 0.72rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.22em;

  color: var(--gold);
}


.section-title {
  font-size:
    clamp(
      2.6rem,
      4vw,
      4.1rem
    );

  margin-bottom: 16px;
}


.section-subtitle {
  color: var(--muted);

  margin: 0;
}


/* ==================================================
   ABOUT
================================================== */

.about {
  background: var(--cream);
}


.about::before {
  content: "";

  position: absolute;

  top: -38px;
  left: 0;
  right: 0;

  height: 90px;

  background:
    url("../images/decor/wave-section-top.svg")
    no-repeat center top / cover;

  opacity: 0.92;

  pointer-events: none;
}


.two-col {
  display: grid;

  grid-template-columns:
    0.9fr 1.1fr;

  gap: 72px;

  align-items: center;
}


.about-copy {
  position: relative;
  z-index: 2;
}


.about-copy h2 {
  font-size:
    clamp(
      2.8rem,
      4.3vw,
      4.4rem
    );

  line-height: 0.97;

  margin-bottom: 22px;
}


.about-copy p {
  color: var(--muted);

  font-size: 1rem;

  max-width: 500px;
}

.gold-text {
  color: var(--gold);
}

.about-gallery {
  position: relative;

  display: grid;

  grid-template-columns:
    1.08fr 0.92fr;

  grid-template-rows:
    1fr 1fr;

  gap: 16px;
}


.about-img {
  width: 100%;

  height: 250px;

  object-fit: cover;

  border-radius: 8px;

  box-shadow: var(--shadow);
}


.about-img--large {
  grid-row: 1 / span 2;

  height: 516px;
}


.about-note {
  position: absolute;

  color: var(--teal);

  font-size: 1.55rem;

  line-height: 0.95;

  text-align: center;

  z-index: 4;
}


.about-note.note-1 {
  left: 35%;
  bottom: -10px;

  transform: rotate(-6deg);
}


.about-note.note-2 {
  right: -20px;
  bottom: -4px;

  transform: rotate(-4deg);
}

.emotion-heart-wrap {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  white-space: nowrap;
}


.about-heart-inline {
  position: static;

  display: inline-block;

  width: 38px;
  height: auto;

  flex: 0 0 auto;

  margin: 0;

  transform: translateY(2px);
}


/* ==================================================
   SERVICES
================================================== */

.services {
  background: #fff;

  border-radius:
    64px 64px 0 0;

  overflow: hidden;
}


.services::before {
  content: "";

  position: absolute;

  top: 0;
  left: -80px;

  width: 290px;
  height: 220px;

  background:
    radial-gradient(
      circle at center,
      rgba(217, 189, 121, 0.11),
      transparent 67%
    );
}


.services::after {
  content: "";

  position: absolute;

  right: -70px;
  bottom: 25px;

  width: 280px;
  height: 220px;

  background:
    radial-gradient(
      circle at center,
      rgba(43, 102, 114, 0.08),
      transparent 70%
    );
}


.services-grid {
  display: grid;

  grid-template-columns:
    repeat(6, 1fr);

  gap: 15px;

  position: relative;
  z-index: 2;
}


.service-card {
  background: var(--cream);

  border:
    1px solid rgba(43, 102, 114, 0.10);

  border-radius: 23px;

  padding: 9px 9px 20px;

  text-align: center;

  box-shadow:
    0 8px 22px rgba(29, 64, 69, 0.06);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


.service-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 18px 36px rgba(29, 64, 69, 0.12);
}


.service-card img {
  width: 100%;

  aspect-ratio: 1 / 1;

  object-fit: cover;

  border-radius: 17px;

  margin-bottom: 14px;
}


.service-card h3 {
  margin: 0 0 6px;

  font-size: 0.98rem;

  color: var(--teal-dark);
}


.service-card p {
  margin: 0;

  font-size: 0.82rem;

  line-height: 1.45;

  color: var(--muted);
}


/* ==================================================
   GALLERY
================================================== */

.events {
  background: #fff;
}


.gallery-filters {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 32px;
}


.filter-btn {
  min-height: 42px;

  padding: 0 20px;

  border-radius: 999px;

  border:
    1px solid var(--border);

  background: #fff;

  color: var(--teal-dark);

  font-weight: 700;

  font-size: 0.86rem;

  transition: all 0.2s ease;
}


.filter-btn:hover {
  border-color: var(--teal);

  transform: translateY(-1px);
}


.filter-btn.is-active {
  background: var(--teal);

  color: #fff;

  border-color: var(--teal);
}


.events-grid {
  display: grid;

  grid-template-columns:
    repeat(12, 1fr);

  grid-auto-rows: 130px;

  gap: 14px;
}


.gallery-item {
  position: relative;

  overflow: hidden;

  border-radius: 18px;

  box-shadow:
    0 12px 30px rgba(29, 64, 69, 0.08);
}


.gallery-item img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.35s ease;
}


.gallery-item:hover img {
  transform: scale(1.04);
}


.gallery-item.is-hidden {
  display: none;
}

.gallery-browse-wrap {
  display: flex;
  justify-content: center;

  width: 100%;

  margin-top: 18px;
}


.gallery-browse-button {
  width: auto;
  min-width: 0;

  min-height: 48px;

  padding: 0 23px;

  border-radius: 999px;

  font-size: 0.9rem;
  font-weight: 700;
}


.gallery-browse-button i {
  font-size: 0.9rem;
}


.gallery-browse-button:hover {
  background: var(--teal-dark);

  transform: translateY(-1px);
}


/* ==================================================
   GALLERY DINAMICA - AGGIUNTE AL CSS ESISTENTE
================================================== */

.gallery-status {
  text-align: center;
  color: var(--muted);
  padding: 22px 0;
}

.gallery-error {
  color: #8b3f3f;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 28px 0;
}

/* Le immagini dinamiche mantengono la griglia a 4 colonne su desktop. */
.events-grid .gallery-item {
  grid-column: span 3;
  grid-row: span 3;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  font: inherit;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(23, 77, 88, 0.10);
  color: #fff;
  font-size: 1.35rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus-visible .gallery-item-overlay {
  opacity: 1;
}

.gallery-item:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.gallery-item-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(23, 77, 88, 0.88);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  pointer-events: none;
}


/* ==================================================
   LIGHTBOX GALLERY
================================================== */

body.lightbox-open {
  overflow: hidden;
  overflow-x: hidden;

  overscroll-behavior: none;
}

html:has(body.lightbox-open) {
  overflow-x: hidden;
}

/* MODALE */

.gallery-lightbox {
  position: fixed;
  inset: 0;

  z-index: 9999;

  padding: 30px 110px;

  box-sizing: border-box;

  background:
    rgba(0, 0, 0, 0.88);

  display: flex;
  align-items: center;
  justify-content: center;
}


.gallery-lightbox[hidden] {
  display: none;
}


/* ==================================================
   GALLERY
================================================== */

.gallery-lightbox-layout {
  width:
    min(82vw, 1200px);

  max-height:
    calc(100vh - 60px);

  display: grid;

  grid-template-columns:
    minmax(0, 1fr) 76px;

  grid-template-rows:
    minmax(0, 1fr) auto;

  column-gap: 20px;
  row-gap: 12px;

  align-items: center;
}


/* ==================================================
   CONTENITORE FOTO
================================================== */

.gallery-lightbox-stage {
  position: relative;

  grid-column: 1;
  grid-row: 1;

  width: 100%;

  height:
    min(78vh, 720px);

  min-height: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;
}


/* ==================================================
   IMMAGINE
================================================== */

.gallery-lightbox-image {
  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain;

  display: block;

  box-shadow:
    0 30px 80px
    rgba(0, 0, 0, 0.45);

  cursor: zoom-in;

  transition:
    transform 0.15s ease;

  transform-origin:
    center center;

  user-select: none;

  -webkit-user-select: none;
  -webkit-user-drag: none;

  touch-action: none;

  will-change: transform;
}


/* ZOOM */

.gallery-lightbox-image.is-touching {
  transition: none;
}


.gallery-lightbox-stage.is-zoomed
.gallery-lightbox-image {
  cursor: grab;
}


.gallery-lightbox-stage.is-dragging
.gallery-lightbox-image {
  cursor: grabbing;

  transition: none;
}


/* ==================================================
   CONTATORE
================================================== */

.gallery-lightbox-counter {
  grid-column: 1;
  grid-row: 2;

  justify-self: center;

  min-width: 72px;

  padding: 7px 13px;

  background: #fff;

  color: #111;

  font-size: 13px;
  font-weight: 600;

  letter-spacing: 0.08em;

  text-align: center;
}


/* ==================================================
   MINIATURE
================================================== */

.gallery-lightbox-thumbs {
  grid-column: 2;

  grid-row:
    1 / span 2;

  align-self: center;

  width: 76px;

  max-height:
    min(78vh, 720px);

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: flex-start;

  gap: 10px;

  padding:
    4px 6px;

  box-sizing: border-box;

  overflow-x: hidden;
  overflow-y: auto;
}


/* MINIATURA */

.gallery-lightbox-thumb {
  width: 64px;
  height: 64px;

  flex:
    0 0 64px;

  padding: 0;

  overflow: hidden;

  border:
    2px solid transparent;

  background: transparent;

  opacity: 0.55;

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}


.gallery-lightbox-thumb img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}


.gallery-lightbox-thumb:hover {
  opacity: 0.85;

  transform:
    translateX(-2px);
}


.gallery-lightbox-thumb.is-active {
  opacity: 1;

  border-color: #fff;

  transform:
    translateX(-2px);
}


/* ==================================================
   CHIUSURA
================================================== */

.gallery-lightbox-close {
  position: absolute;

  top: 28px;
  right: 34px;

  width: 46px;
  height: 46px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;

  background: #fff;

  color: #111;

  font-size: 22px;

  cursor: pointer;

  z-index: 10;
}


/* ==================================================
   FRECCE
================================================== */

.gallery-lightbox-arrow {
  position: absolute;

  top: 50%;

  transform:
    translateY(-50%);

  width: 52px;
  height: 52px;

  border: 0;

  background: #fff;

  color: #111;

  font-size: 20px;

  cursor: pointer;

  display: flex;

  align-items: center;
  justify-content: center;

  z-index: 10;
}


.gallery-lightbox-prev {
  left: 34px;
}


.gallery-lightbox-next {
  right: 34px;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 980px) {

  .gallery-lightbox {
    padding-left: 85px;
    padding-right: 85px;
  }


  .gallery-lightbox-layout {
    width: 100%;

    grid-template-columns:
      minmax(0, 1fr) 68px;

    column-gap: 14px;
  }


  .gallery-lightbox-thumbs {
    width: 68px;
  }


  .gallery-lightbox-thumb {
    width: 56px;
    height: 56px;

    flex-basis: 56px;
  }

}


/* ==================================================
   MOBILE LIGHTBOX
================================================== */

@media (max-width: 768px) {

  /*
   * La modale resta fisicamente bloccata
   * dentro lo schermo del telefono.
   */
  .gallery-lightbox {
    position: fixed;

    inset: 0;

    width: 100dvw;
    max-width: 100dvw;

    height: 100dvh;
    max-height: 100dvh;

    padding: 0;
    margin: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    overscroll-behavior: none;
  }

  .gallery-lightbox-layout {
    width: 92vw;
    max-width: 92vw;

    min-width: 0;

    max-height: none;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    overflow: hidden;
  }


  /*
   * AREA FOTO
   */
  .gallery-lightbox-stage {
    width: 100%;
    max-width: 100%;

    min-width: 0;

    height: 68vh;

    min-height: 0;

    margin: 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;
  }


  /*
   * FOTO
   */
  .gallery-lightbox-image {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    margin: 0 auto;

    object-fit: contain;
    object-position: center center;

    touch-action: none;
  }


  /*
   * CONTATORE
   */
  .gallery-lightbox-counter {
    flex: 0 0 auto;

    min-width: 72px;

    margin: 0 auto;

    padding: 6px 11px;

    font-size: 12px;

    touch-action: none;
  }


  /*
   * MINIATURE
   */
  .gallery-lightbox-thumbs {
    width: 100%;
    max-width: 100%;

    min-width: 0;
    max-height: none;

    margin: 0;

    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: flex-start;

    gap: 8px;

    padding: 4px 2px 6px;

    box-sizing: border-box;

    overflow-x: auto;
    overflow-y: hidden;

    overscroll-behavior-x: contain;

    touch-action: pan-x;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }


  .gallery-lightbox-thumbs::-webkit-scrollbar {
    display: none;
  }


  .gallery-lightbox-thumb {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;
  }


  .gallery-lightbox-thumb:hover,
  .gallery-lightbox-thumb.is-active {
    transform: translateY(-2px);
  }


  /*
   * CHIUSURA
   */
  .gallery-lightbox-close {
    position: fixed;

    top: 10px;

    left: 50%;
    right: auto;

    transform: translateX(-50%);

    width: 42px;
    height: 42px;

    font-size: 20px;

    z-index: 10001;
  }


  /*
   * Frecce
   */
  .gallery-lightbox-arrow {
    display: none;
  }

}


/* ==================================================
   NEWSLETTER
================================================== */

.newsletter {
  position: relative;

  padding: 82px 0;

  background:
    linear-gradient(
      135deg,
      var(--teal-dark),
      var(--teal)
    );

  color: #fff;

  overflow: hidden;
}


.newsletter::before {
  content: "";

  position: absolute;

  left: -80px;
  top: -85px;

  width: 300px;
  height: 300px;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.035);
}


.newsletter::after {
  content: "";

  position: absolute;

  right: -60px;
  bottom: -110px;

  width: 310px;
  height: 310px;

  border-radius: 50%;

  background:
    rgba(217, 189, 121, 0.08);
}


.newsletter-inner {
  position: relative;

  z-index: 2;

  display: grid;

  grid-template-columns:
    0.9fr 1.1fr;

  gap: 70px;

  align-items: start;
}


.newsletter h2 {
  color: #fff;

  font-size:
    clamp(
      2.7rem,
      4vw,
      4.1rem
    );

  margin-bottom: 14px;
}


.newsletter p {
  color:
    rgba(255, 255, 255, 0.84);
}


.form-row {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 14px;
}


.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  width: 100%;

  min-height: 52px;

  border: none;

  outline: none;

  border-radius: 9px;

  padding: 0 16px;

  background: #fff;

  color: var(--text);
}


.newsletter-form input:focus {
  box-shadow:
    0 0 0 3px rgba(217, 189, 121, 0.32);
}

/* OGGETTO + MESSAGGIO */

.newsletter-form .form-subject,
.newsletter-form .form-message {
  width: 100%;

  border: none;
  outline: none;

  border-radius: 9px;

  padding: 0 16px;

  background: #fff;

  color: var(--text);

  font-family: "DM Sans", sans-serif;

  font-size: 0.95rem;
}


/* OGGETTO */

.newsletter-form .form-subject {
  min-height: 52px;

  margin-top: 14px;
}


/* MESSAGGIO */

.newsletter-form .form-message {
  min-height: 105px;

  margin-top: 14px;

  padding-top: 14px;
  padding-bottom: 14px;

  line-height: 1.45;

  resize: vertical;
}


/* PLACEHOLDER */

.newsletter-form .form-subject::placeholder,
.newsletter-form .form-message::placeholder {
  color: #6d797c;
  opacity: 1;
}


/* FOCUS IDENTICO A NOME / EMAIL */

.newsletter-form .form-subject:focus,
.newsletter-form .form-message:focus {
  box-shadow:
    0 0 0 3px rgba(217, 189, 121, 0.32);
}


.consent {
  display: flex;

  align-items: flex-start;

  gap: 10px;

  margin: 15px 0 20px;

  font-size: 0.82rem;

  color:
    rgba(255, 255, 255, 0.86);
}


.newsletter-balloon {
  width: 66px;

  left: 28px;
  bottom: 25px;

  opacity: 0.9;
}


.newsletter-heart {
  width: 38px;

  right: 38px;
  top: 24px;
}


/* ==================================================
   FOOTER
================================================== */

.site-footer {
  background: #103f49;

  color: #fff;

  padding: 65px 0 20px;
}


.footer-grid {
  display: grid;

  grid-template-columns:
    1.4fr 1fr 1.3fr 0.9fr;

  gap: 42px;
}


.footer-brand img {
  width: 100px;

  margin-bottom: 14px;

  filter:
    brightness(0) invert(1);
}


.footer-brand p {
  max-width: 290px;

  color:
    rgba(255, 255, 255, 0.72);

  font-size: 0.88rem;
}


.site-footer h3 {
  margin-top: 0;
  margin-bottom: 16px;

  font-size: 0.92rem;

  color: #efcf83;
}


.site-footer a,
.site-footer span {
  color:
    rgba(255, 255, 255, 0.85);
}


.site-footer a:hover {
  color: #fff;
}


.footer-handwritten {
  margin-top: 18px;

  font-size: 1.7rem;

  line-height: 1.05;

  color: #fff;
}


.footer-bottom {
  margin-top: 45px;

  padding-top: 19px;

  border-top:
    1px solid rgba(255, 255, 255, 0.13);

  display: flex;

  justify-content: space-between;

  gap: 20px;

  font-size: 0.78rem;

  color:
    rgba(255, 255, 255, 0.60);
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1100px) {

  .header-inner {
    grid-template-columns:
      auto 1fr auto;
  }

  .header-contacts {
    display: none;
  }

  .services-grid {
    grid-template-columns:
      repeat(3, 1fr);
  }

  .hero-copy {
    width: 68%;
  }

}


/* ==================================================
   MOBILE / TABLET
================================================== */

@media (max-width: 820px) {

  .header-cta {
    display: none;
  }

  .header-inner {
    grid-template-columns:
      auto 1fr;
  }

  .site-header::before {
    width: 185px;
  }

  .hero {
    min-height: 610px;
  }


  .hero-copy {
    width: 100%;

    padding:
      150px 0 130px;
  }


  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(251, 248, 241, 0.96),
        rgba(251, 248, 241, 0.83)
      );
  }


  .hero-features {
    grid-template-columns:
      repeat(2, 1fr);

    max-width: 400px;
  }


  .hero-heart {
    left: auto;
    right: 26%;
  }


  .two-col,
  .newsletter-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }


  .about-gallery {
    margin-top: 20px;
  }


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


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

    grid-auto-rows: 220px;
  }


  .gallery-item,
  .gallery-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }


  .footer-bottom {
    flex-direction: column;
  }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 560px) {

  .container {
    width:
      min(
        calc(100% - 24px),
        var(--container)
      );
  }


  .section {
    padding: 40px 0;
  }


  .brand img {
    width: 105px;
  }


.main-nav {
  column-gap: 20px;
  row-gap: 5px;
  font-size: 0.9rem;
}


  .site-header::before {
    width: 155px;
    top: -6px;
  }


  .hero h1 {
    font-size: 3.15rem;
  }


  .hero-copy {
    padding-top: 135px;
  }


  .hero-actions {
    display: grid;

    grid-template-columns: 1fr;

    width: 100%;
  }


  .hero-actions .btn {
    width: 100%;
  }


  .hero-features {
    grid-template-columns:
      repeat(2, 1fr);

    gap: 14px;
  }


  .hero-feature {
    font-size: 0.70rem;
  }


  .hero-heart {
    width: 34px;

    top: 105px;

    right: 13%;
  }


  .hero-sparkle {
    width: 18px;

    top: 93px;

    left: auto;

    right: 8%;
  }


  .section-title,
  .about-copy h2,
  .newsletter h2 {
    font-size: 2.75rem;
  }


  .services-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }


.about-heart-inline {
  width: 30px;
}

.emotion-heart-wrap {
  gap: 7px;
}


.about-gallery {
  grid-template-columns:
    1.08fr 0.92fr;

  grid-template-rows:
    180px 180px;

  gap: 10px;
}


.about-img {
  width: 100%;
  height: 180px;

  object-fit: cover;
}


.about-img--large {
  grid-column: 1;
  grid-row: 1 / span 2;

  height: 370px;
}


  .about-note {
    font-size: 1.25rem;
  }


  .about-note.note-1 {
    left: 26%;
  }


  .gallery-filters {
    justify-content: flex-start;

    flex-wrap: nowrap;

    overflow-x: auto;

    padding-bottom: 8px;

    scrollbar-width: none;
  }


  .gallery-filters::-webkit-scrollbar {
    display: none;
  }


  .filter-btn {
    flex: 0 0 auto;
  }


  .events-grid {
    grid-auto-rows: 320px;
  }


  .gallery-browse-wrap {
    margin-top: 18px;
  }

  .gallery-browse-button {
    width: auto;
    min-width: 0;

    padding: 0 23px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }


  .newsletter-balloon {
    width: 52px;

    left: 8px;
  }


  .newsletter-heart {
    width: 30px;

    right: 14px;
  }

}