:root {
    --brand: #83082b;
    --brand-rgb: 131, 8, 43;
    --btn-submit-bg: #2f9e44;
    --btn-submit-bg-hover: #268a39;

    --gold:        #b8935a;
    --gold-light:  #e6c891;
    --sepia:       #7a5c3e;
    --ink:         #2b2622;
    --paper:       #F5EFE3;
    --paper-dark:  #e8dcc6;
}

/* La slide è già il containing block perché position:relative lo imposta */
.gallery-slide {
  position: relative;
}

  .gallery-slide-alt {
  position: absolute;
  bottom: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;

  background-color: #fff;
  border-radius: 0;
  color: var(--brand, #83082b);

  padding: 0.5em 1.1em;
  font-family: 'Poiret One', sans-serif;
  font-size: 1.26em;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;

  white-space: nowrap;
  max-width: 70vw;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}



/* =========================================================
   TEMPORANEO
   ========================================================= */
.thin-progress-bar,
.thin-progress-bar.with-shadow.complete,
#block-rerouting-mail-status-block-1,
.contextual-region {
  display: none !important;
}

/* =========================================================
   RESET
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: #000;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
}


/* ============================================================
   BRAND
   ============================================================ */



.brand .name a {
  color: var(--brand);
  font-family: 'Poiret One', sans-serif;
  font-size: 1.1em;                /* era 1.45em → ora più discreto */
  text-shadow:
    1px 1px 0 var(--gold-light),
    2px 2px 0 rgba(0, 0, 0, 0.08);
  letter-spacing: 0.5px;
  font-weight: bold;
}

.brand .name a .amp {
  font-family: sans-serif;
  font-size: 0.54em;
  font-weight: 100;
}

.brand {
  margin-bottom: 0;                /* non serve più */
}



/* =========================================================
   TITOLO NODO — fisso, top-center, fondo bianco (senza angoli)
   ========================================================= */



.gallery-container > h2 {
  position: fixed;
  top: 118px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;

  background-color: #fff;
  color: var(--brand, #83082b);

  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.65em 1.8em;              /* più padding orizzontale per il taglio */
  width: fit-content;

  font-family: 'Poiret One', sans-serif;
  font-size: 0.86em;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;

  white-space: nowrap;
  max-width: 55vw;
  overflow: hidden;
  pointer-events: none;

  /* === Ottagono allungato === */
  --cut-x: 14px;                      /* taglio orizzontale (più ampio = più "allungato") */
  --cut-y: 6px;                       /* taglio verticale  (più piccolo = più "sottile") */
  clip-path: polygon(
    var(--cut-x) 0,
    calc(100% - var(--cut-x)) 0,
    100% var(--cut-y),
    100% calc(100% - var(--cut-y)),
    calc(100% - var(--cut-x)) 100%,
    var(--cut-x) 100%,
    0 calc(100% - var(--cut-y)),
    0 var(--cut-y)
  );

  /* L'ombra segue la forma ritagliata */
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

/* Responsive — su schermi piccoli il titolo va in basso */
@media screen and (max-width: 768px) {
  .gallery-container > h2 {
    top: auto;
    bottom: 132px;
    font-size: 0.78em;
    letter-spacing: 0.1em;
    padding: 0.55em 1em;
    max-width: 80vw;
  }
}

@media screen and (max-width: 480px) {
  .gallery-container > h2 {
    font-size: 0.7em;
    letter-spacing: 0.08em;
    padding: 0.5em 0.9em;
    bottom: 118px;
    max-width: 88vw;
  }
}




/* =========================================================
   RESPONSIVE — dimensioni ottimizzate per schermi piccoli
   ========================================================= */
@media screen and (max-width: 1024px) {
  .gallery-container > h2 {
    font-size: 1em;
    letter-spacing: 0.14em;
    padding: 5px 14px;
    max-width: 65vw;
  }
}

@media screen and (max-width: 768px) {
  .gallery-container > h2 {
    /* Su mobile scende sopra alt + indicators */
    top: auto;
    bottom: 132px;
    font-size: 0.8em;
    letter-spacing: 0.12em;
    padding: 5px 12px;
    max-width: 80vw;
  }
}

@media screen and (max-width: 480px) {
  .gallery-container > h2 {
    font-size: 0.72em;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    bottom: 118px;
    max-width: 88vw;
  }
}


/* =========================================================
   WRAPPER
   ========================================================= */
.gallery-wrapper {
  position: relative;
  width: 100vw;
  height: 100dvh;
}

.gallery-wrapper > div,
.gallery-wrapper > div > #block-radius-content,
.gallery-wrapper > div > #block-radius-content > .node__content {
  width: 100%;
  height: 100%;
}

/* Containing block per gli overlay in position:absolute */
.node__content {
  position: relative;
  width: 100%;
  height: 100%;
}




/* ==============================================================
   SERIAL — square with 4 decorative corner brackets
   ============================================================== */









.serial-default {
  position: fixed;
  top: 52px;                       /* appena sotto il logo (~10px + ~32px brand) */
  left: 50%;
  right: auto;                     /* annulla il right: 6px precedente */
  transform: translateX(-50%);
}

.serial-default .serial {
  background-color: #fff;
  border-radius: 0;
  box-sizing: border-box;
  color: var(--brand, #83082b);
  display: grid;
  margin: 0;
  place-items: center;
  padding: 0.85em;                 /* era 1.42em */
  width: fit-content;

  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size:
    10px 1px, 1px 10px,
    10px 1px, 1px 10px,
    10px 1px, 1px 10px,
    10px 1px, 1px 10px;            /* era 14px */
  background-position:
    5px 5px, 5px 5px,
    calc(100% - 5px) 5px, calc(100% - 5px) 5px,
    5px calc(100% - 5px), 5px calc(100% - 5px),
    calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) calc(100% - 5px);
}

.serial-default .serial .label {
  box-shadow: none;
  color: #8a6f3a;
  font-weight: bold;
  letter-spacing: 0.18em;
  line-height: 1;
  font-family: 'Poiret One', sans-serif;
  font-size: 0.68em;               /* era 0.86em */
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

.serial-default .serial .value {
  box-shadow: none;
  color: var(--brand, #83082b);
  font-family: 'Poiret One', sans-serif;
  font-weight: 700;
  font-size: 1.9em;                /* era 3em */
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  padding: 0;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .serial-default .serial .value { font-size: 1.6em; }
  .serial-default .serial .label { font-size: 0.55em; }
  .serial-default .serial { padding: 0.7em; }
}




/* =========================================================
   GALLERY (scroll orizzontale)
   ========================================================= */
.gallery-container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.gallery-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.gallery-slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

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

/* =========================================================
   OVERLAY GENERICI
   ========================================================= */
.gallery-overlay {
  position: absolute;
  z-index: 20;
  display: flex;
  pointer-events: none;
}

.gallery-overlay > * {
  pointer-events: auto;
}

/* =========================================================
   OVERLAY TOP — LOGO
   ========================================================= */
  .gallery-overlay--top {
    top: 0px;
    left: 0px;
    padding: 0px 0px;
  }



  .gallery-overlay--top .gallery-logo {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);     /* era left: 4px */
}


.gallery-overlay--top .gallery-logo img,
.gallery-overlay--top .logo {
  max-height: 48px;
  width: auto;
  display: block;
}

/* =========================================================
   OVERLAY LEFT / RIGHT — CENTRO VERTICALE
   ========================================================= */
.gallery-overlay--left {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  padding: 0 16px;
  align-items: center;
  justify-content: flex-start;
}

.gallery-overlay--right {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  padding: 0 16px;
  align-items: center;
  justify-content: flex-end;
}

.gallery-service-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* =========================================================
   LINK DI SERVIZIO — forma a ROMBO
   Il contenitore è ruotato di 45°, l'icona interna di -45°
   per restare dritta.
   ========================================================= */
.gallery-service-link {
  position: relative;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 0;
  background: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  user-select: none;
  text-decoration: none;
  transform: rotate(45deg);
}

.gallery-service-link:hover {
  background: rgba(0, 0, 0, 0.55);
}

.gallery-service-link:active {
  transform: rotate(45deg) scale(0.92);
}

.gallery-service-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* L'icona interna contro-ruotata per restare dritta */
.gallery-service-link svg {
  display: block;
  width: 20px;
  height: 20px;
  transform: rotate(-45deg);
}

/* =========================================================
   INDICATORS (puntini) — originale, posizionati in basso
   ========================================================= */
.indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;

  background-color: #fff;
  border-radius: 0;

  padding: 0.55em 1em;
  z-index: 10;
}

.dot {
  background-color: rgba(255, 255, 255, 0.55);   /* visibile su fondo scuro */
}

.dot.active {
  background-color: var(--gold-light);           /* risalta in gold */
}



/* =========================================================
   DOT → ROMBI
   Il quadratino è ruotato di 45° per diventare un rombo.
   Lo stato attivo mantiene la rotazione e aggiunge lo scale.
   ========================================================= */

.dot {
  width: 7px;
  height: 7px;
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  transform: rotate(45deg);
}

.dot.active {
  background-color: var(--brand);
  transform: rotate(45deg) scale(1.25);
}

.indicators .dot--next {
  width: 10px;
  height: 10px;
  margin-left: 10px;
  border: 1px solid currentColor;
  background: transparent;
  border-radius: 0;
  transform: rotate(45deg);
  cursor: pointer;
}


            /*.dot {
              width: 8px;
              height: 8px;
              border-radius: 0;
              background-color: rgba(0, 0, 0, 0.35);
              border: none;
              padding: 0;
              cursor: pointer;
              transition: transform 0.2s ease, background-color 0.2s ease;
              transform: rotate(45deg);
            }

            .dot.active {
              background-color: var(--brand);
              transform: rotate(45deg) scale(1.25);
            }*/


                                  /*.dot {
                                    width: 8px;
                                    height: 8px;
                                    border-radius: 50%;
                                    background-color: rgba(255, 255, 255, 0.45);
                                    border: none;
                                    padding: 0;
                                    cursor: pointer;
                                    transition: transform 0.2s ease, background-color 0.2s ease;
                                  }

                                  .dot.active {
                                    background-color: var(--brand);
                                    transform: scale(1.25);
                                  }*/






        /* =========================================================
          POPUP DIREZIONI — <dialog> nativo
          ========================================================= */
        .directions-modal {
          background: transparent;
          border: none;
          color: var(--brand);
          max-width: 90vw;
          margin:auto;
          padding: 0;
          width: 420px;
        }

        /* Backdrop */
        .directions-modal::backdrop {
          background: rgba(0, 0, 0, 0.55);
          backdrop-filter: blur(4px);
          -webkit-backdrop-filter: blur(4px);
        }

        /* Contenitore — stesso linguaggio del serial/titolo: fondo bianco, angoli quadri */
        .directions-modal__inner {
          position: relative;
          background-color: #fff;
          color: var(--brand);
          padding: 1.6em 1.8em 1.4em;
          font-family: 'Poiret One', sans-serif;
          text-align: center;

          /* L decorative in currentColor, come il serial */
          background-image:
            linear-gradient(currentColor, currentColor),
            linear-gradient(currentColor, currentColor),
            linear-gradient(currentColor, currentColor),
            linear-gradient(currentColor, currentColor),
            linear-gradient(currentColor, currentColor),
            linear-gradient(currentColor, currentColor),
            linear-gradient(currentColor, currentColor),
            linear-gradient(currentColor, currentColor);
          background-repeat: no-repeat;
          background-size:
            10px 1px, 1px 10px,
            10px 1px, 1px 10px,
            10px 1px, 1px 10px,
            10px 1px, 1px 10px;
          background-position:
            5px 5px, 5px 5px,
            calc(100% - 5px) 5px, calc(100% - 5px) 5px,
            5px calc(100% - 5px), 5px calc(100% - 5px),
            calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) calc(100% - 5px);
        }

        /* Pulsante chiudi */
        .directions-modal__close {
          position: absolute;
          top: 6px;
          right: 8px;
          border: none;
          background: transparent;
          color: var(--brand);
          font-size: 1.4em;
          line-height: 1;
          padding: 4px 8px;
          cursor: pointer;
          font-family: sans-serif;
        }

        .directions-modal__close:hover,
        .directions-modal__close:focus-visible {
          color: var(--gold);
        }



        /* CTA verso /map */
        .directions-modal__cta {
          display: inline-block;
          padding: 0.6em 1.4em;
          background: var(--brand);
          color: #fff;
          text-decoration: none;
          font-size: 0.82em;
          font-weight: 700;
          letter-spacing: 0.14em;
          text-transform: uppercase;
          transition: background 0.2s ease;
        }

        .directions-modal__cta:hover,
        .directions-modal__cta:focus-visible {
          background: var(--gold);
        }




        /* =========================================================
          TITOLO — più piccolo, icona pin ridimensionata
          ========================================================= */
        .directions-modal__title {
          margin: 0 0 1em;
          font-size: 0.78em;                /* era 1em → più piccolo */
          font-weight: 700;
          letter-spacing: 0.14em;
          text-transform: uppercase;

          display: inline-flex;
          align-items: center;
          justify-content: center;
          gap: 6px;                         /* era 8px, più compatto */
        }

        .directions-modal__icon {
          width: 16px;                      /* era 22px → più piccola */
          height: 16px;
          flex: 0 0 auto;
          color: var(--brand);
          stroke-width: 2;                  /* invariato, il pin resta leggibile */
        }

        /* =========================================================
          CORPO — testo più grande
          ========================================================= */
        .directions-modal__body {
          font-size: 1.05em;                /* era 0.9em → più grande */
          line-height: 1.55;
          letter-spacing: 0.02em;
          margin-bottom: 1.3em;
        }

        .directions-modal__body p {
          margin: 0 0 0.6em;
        }

        /* I media query del titolo (768/480) vanno aggiornati coerentemente */
        @media screen and (max-width: 480px) {
          .directions-modal__title { font-size: 0.72em; }
          .directions-modal__icon  { width: 14px; height: 14px; }
          .directions-modal__body  { font-size: 1em; }
        }


        /* =========================================================
   POPUP CONDIVISIONE — condivide la base del directions-modal
   ========================================================= */
.directions-modal,
.share-modal {
  background: transparent;
  border: none;
  color: var(--brand);
  margin:auto;
  max-width: 90vw;
  padding: 0;
  width: 420px;
}

.directions-modal::backdrop,
.share-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.directions-modal__inner,
.share-modal__inner {
  position: relative;
  background-color: #fff;
  color: var(--brand);
  padding: 1.6em 1.8em 1.4em;
  font-family: 'Poiret One', sans-serif;
  text-align: center;

  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size:
    10px 1px, 1px 10px,
    10px 1px, 1px 10px,
    10px 1px, 1px 10px,
    10px 1px, 1px 10px;
  background-position:
    5px 5px, 5px 5px,
    calc(100% - 5px) 5px, calc(100% - 5px) 5px,
    5px calc(100% - 5px), 5px calc(100% - 5px),
    calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) calc(100% - 5px);
}

.directions-modal__close,
.share-modal__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 1.4em;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  font-family: sans-serif;
}

.directions-modal__close:hover,
.directions-modal__close:focus-visible,
.share-modal__close:hover,
.share-modal__close:focus-visible {
  color: var(--gold);
}

.directions-modal__title,
.share-modal__title {
  margin: 0 0 1em;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.directions-modal__icon,
.share-modal__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--brand);
}

/* =========================================================
   Corpo specifico dello SHARE popup
   ========================================================= */
.share-modal__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0.6em;
}

.share-modal__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85em 1.2em;
  background: var(--paper);
  color: var(--brand);
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  font-family: 'Poiret One', sans-serif;
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, transform 0.1s ease, color 0.2s ease;
}

.share-modal__option:hover,
.share-modal__option:focus-visible {
  background: var(--paper-dark);
}

.share-modal__option:active {
  transform: scale(0.98);
}

.share-modal__option-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* WhatsApp — verde ufficiale */
.share-modal__option--wa {
  background: #25D366;
  color: #fff;
  border-color: transparent;
}

.share-modal__option--wa:hover,
.share-modal__option--wa:focus-visible {
  background: #1eb857;
  color: #fff;
}

/* Stato "Link copiato" */
.share-modal__option--copy.is-copied {
  background: var(--btn-submit-bg);
  color: #fff;
  border-color: transparent;
}

/* Responsive */
@media screen and (max-width: 480px) {
  .directions-modal__title,
  .share-modal__title { font-size: 0.72em; }
  .directions-modal__icon,
  .share-modal__icon  { width: 14px; height: 14px; }
  .share-modal__option { font-size: 0.82em; padding: 0.75em 1em; }
}






