: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: 0.72em;
  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: 0.86em;
    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);
                                  }*/
