:root {
  --red: #df111b;
  --red-light: rgba(223, 17, 27, 0.18);
  --red-bg: #de373f;
  --white: #ffffff;

  --max-width: 1280px;
  --gutter: 20px;
}

.border-red-soft {
  border-color: var(--red-light) !important;
}

.is-hidden {
  display: none !important;
}


/* =========================
   BASE
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;

  background: var(--white);
  color: var(--red);

  font-family: "Avenir Next", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

p{font-size: 16px;
}
.canzone p {
  padding-left: 10px;
  font-style: italic;
}

h2 {
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.05;
  font-weight: 400;
}

h4 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
}

a {
  color: var(--red);
  transition: opacity 0.25s ease;
}

a:hover {
  color: var(--red);
  opacity: 0.65;
}

a:active,
.btn:active,
.rsvp-submit:active,
.file-button:active {
  opacity: 0.8;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.menu-toggle:focus-visible,
.privacy-close:focus-visible,
.privacy-inline:focus-visible,
.privacy-footer-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}


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

.container {
  width: 100%;
  max-width: var(--max-width);

  margin: 0 auto;

  padding-left: var(--gutter);
  padding-right: var(--gutter);
}


/* =========================
   SEZIONI
========================= */

section {
  padding-top: 40px;
  padding-bottom: 55px;

  scroll-margin-top: 255px;
}

#programma,
#rsvp,
#foto,
#doni,
#info,
footer {
  border-top: 1px solid var(--red-light);
}

.row {
  --bs-gutter-x: 20px;
  --bs-gutter-y: 28px;
}


/* =========================
   ETICHETTE
========================= */

.section-label,
.card-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}

.section-label {
  margin-bottom: 12px;
  font-size: 11px;
}

.card-label {
  font-size: 10px;
}


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

header {
  background: var(--white);
}

header > .container {
  min-height: 72px;

  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: auto;
  height: 32px;
}


/* =========================
   MENU DESKTOP
========================= */

.desktop-menu a {
  position: relative;

  color: var(--red);

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;

  text-decoration: none;
  opacity: 1;
}

.desktop-menu a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -4px;

  width: 100%;
  height: 1px;

  background: var(--red);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.25s ease;
}

.desktop-menu a:hover,
.desktop-menu a:focus-visible {
  opacity: 1;
}

.desktop-menu a:hover::after,
.desktop-menu a:focus-visible::after {
  transform: scaleX(1);
}


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

.menu-toggle {
  width: 40px;
  height: 40px;
  padding: 0;

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

  color: var(--red);
  background: transparent;

  border: 0;
}

.menu-toggle .bi-list {
  font-size: 28px;
}

#menu-mobile {
  border-top: 1px solid var(--red-light);
  border-bottom: 1px solid var(--red-light);
}

#menu-mobile .container {
  padding-top: 20px;
  padding-bottom: 20px;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu a {
  color: var(--red);

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;

  text-decoration: none;
}


/* =========================
   BOTTONI
========================= */

.btn,
.rsvp-submit,
.file-button {
  min-height: 42px;
  padding: 10px 14px;

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

  color: var(--red);
  background: transparent;

  border: 1px solid var(--red);
  border-radius: 0;

  font-family: inherit;
  font-size: 16px;
  font-weight: 400;

  text-decoration: none;
  cursor: pointer;

  transition:
    color 0.25s ease,
    background-color 0.25s ease;
}

.btn:hover,
.rsvp-submit:hover,
.file-button:hover {
  color: var(--white);
  background: var(--red);
  opacity: 1;
}


/* =========================
   LINK DI TESTO
========================= */

.text-link,
.riquadro a {
  width: fit-content;

  color: var(--red);

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

  text-decoration: underline;
  text-underline-offset: 4px;
}


/* =========================
   HERO - MOBILE
========================= */

#hero {
  padding-top: 20px;
  padding-bottom: 55px;
}

.hero-layout {
  display: flex;
  flex-direction: column;
}

.hero-visual {
  position: relative;

  width: 100%;
  height: 620px;
}

#ginko {
  position: absolute;

  top: 20px;
  left: -35px;

  width: 300px;
  max-width: none;
}

.hero-date-mobile {
  position: absolute;

  right: 0;
  bottom: 90px;

  width: 220px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  text-align: right;

  z-index: 2;
}

.hero-date-mobile p,
.hero-date-desktop p {
  font-size: 13px;
  line-height: 1.4;
}

.hero-date-main {
  font-weight: 600;
}

.hero-date-desktop {
  display: none;
}

#testi-hero {
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 55px;
}

.hero-location {
  width: 100%;
  text-align: left;
}

.hero-location p {
  font-size: 12px;
  line-height: 1.4;
}

.hero-location h2 {
  margin-top: 12px;
  margin-bottom: 12px;

  font-size: 30px;
  line-height: 1.05;
  font-weight: 500;
}

.hero-buttons {
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

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


/* =========================
   NOI
========================= */

#noi {
  background: var(--red-bg);
  color: var(--white);
}

#noi h2,
#noi p {
  color: var(--white);
}

#foto-sposi {
  position: relative;

  margin-top: 16px;
  margin-right: 16px;
}

#foto-sposi::before {
  content: "";

  position: absolute;

  top: -16px;
  right: -16px;

  width: 100%;
  height: 100%;

  border: 1px solid rgba(255, 255, 255, 0.8);
}

#foto-sposi img {
  position: relative;

  display: block;
  width: 100%;

  z-index: 1;
}


/* =========================
   RIQUADRI
========================= */

.riquadro {
  width: 100%;
  height: 100%;

  padding: 20px;

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

  transition: transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {

  .riquadro:hover {
    transform: translateY(-4px);
  }

}

.riquadro p:not(.card-label) {
  font-size: 14px;
  line-height: 1.6;
}

.riquadro a {
  margin-top: auto;
}

#programma .row,
#doni .row,
#info .row {
  margin-top: 30px;
}


/* =========================
   RSVP
========================= */

.rsvp-form {
  width: 100%;

  padding-top: 24px;

  display: flex;
  flex-direction: column;
  gap: 20px;

  border: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  color: var(--red);

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 10px 0;

  color: var(--red);
  background: transparent;

  font-family: inherit;
  font-size: 16px;

  border: 0;
  border-bottom: 1px solid var(--red);
  border-radius: 0;

  outline: none;
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
}

.form-field textarea {
  width: 100%;
  min-height: 90px;
  padding: 10px;

  color: var(--red);
  background: transparent;

  font-family: inherit;
  font-size: 16px;

  border: 1px solid var(--red);
  border-radius: 0;

  outline: none;
  resize: vertical;
}

.rsvp-submit {
  width: 100%;
  font-weight: 400;
  /* text-transform: uppercase; */
}
/* =========================
   ESIGENZE ALIMENTARI
========================= */

.form-help {
  margin-top: -2px;

  font-size: 12px;
  line-height: 1.5;
}

.food-options {
  display: grid;
  grid-template-columns: 1fr;

  gap: 12px;
}

.food-option {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding-bottom: 8px;

  border-bottom: 1px solid var(--red-light);
}

.food-option label {
  margin: 0;

  font-size: 14px;
  font-weight: 400;

  letter-spacing: 0;
  text-transform: none;
}

.food-option input {
  width: 70px;

  padding: 6px 0;

  text-align: center;
}

.form-error {
  display: none;

  font-size: 12px;
  line-height: 1.4;
}

.form-error.show {
  display: block;
}

@media (min-width: 768px) {

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

  .food-option {
    flex-direction: column;
    align-items: flex-start;

    gap: 4px;
  }

  .food-option input {
    width: 100%;
    text-align: left;
  }

}


/* =========================
   UPLOAD
========================= */

.upload-area {
  margin-top: 28px;
}

.upload-locked {
  padding: 20px;

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

.upload-locked p {
  font-size: 14px;
  line-height: 1.6;
}

.upload-locked p:not(:last-child) {
  margin-bottom: 10px;
}

.upload-locked .card-label {
  margin-bottom: 12px;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-input {
  position: absolute;

  width: 1px;
  height: 1px;

  overflow: hidden;
  opacity: 0;
}

.file-button {
  width: 100%;
  gap: 8px;
}

#file-name {
  font-size: 12px;
  word-break: break-word;
}

.upload-form .btn {
  width: 100%;
}


/* =========================
   CITAZIONE
========================= */

#striscia-colorata {
  padding-top: 40px;
  padding-bottom: 40px;

  background: var(--red-bg);
  color: var(--white);
}

.quote-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quote-line {
  color: var(--white);

  font-size: 18px;
  line-height: 1.05;
  font-style: italic;

  letter-spacing: -1px;
}

.quote-line-end {
  align-self: flex-end;
  text-align: right;
}


/* =========================
   COORDINATE BANCARIE
========================= */

.coordinate-box {
  margin-top: 18px;
  padding: 18px;

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

.coordinate-box p {
  margin-bottom: 12px;
}

.coordinate-box p:last-child {
  margin-bottom: 0;
}

.coordinate-label {
  margin-bottom: 4px !important;

  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 1px;
}


/* =========================
   CONTATTI
========================= */

.contact-list {
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-row {
  width: 100%;

  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.contact-row a {
  color: var(--red);
  text-align: right;
  text-decoration: none;
}


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

footer {
  padding-top: 32px;
  padding-bottom: 32px;

  text-align: center;
}

footer img {
  width: 50px;
  margin-bottom: 10px;
}

footer p {
  font-size: 10px;
}


/* =========================
   TABLET E DESKTOP
========================= */

@media (min-width: 768px) {

  :root {
    --gutter: 28px;
  }

  section {
    padding-top: 50px;
    padding-bottom: 72px;

    scroll-margin-top: 10px;
  }

  header > .container {
    min-height: 82px;

    padding-top: 20px;
    padding-bottom: 20px;
  }

  .logo img {
    height: 30px;
  }


  /* HERO DESKTOP */

  #hero {
    padding-top: 35px;
    padding-bottom: 55px;
  }

  .hero-layout {
    width: 100%;

    display: flex;
    flex-direction: row;

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

    gap: 60px;
  }

  .hero-visual {
    position: relative;

    width: 48%;
    height: auto;
  }

  #ginko {
    position: static;

    width: 70%;
    max-width: 500px;

    margin-left: 0;
  }

  .hero-date-mobile {
    display: none;
  }

  #testi-hero {
    width: 52%;

    display: flex;
    flex-direction: column;

    align-items: flex-end;

    gap: 32px;
  }

  .hero-date-desktop {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 5px;

    text-align: right;
  }

  .hero-date-desktop p {
    font-size: 12px;
  }

  .hero-location {
    width: 100%;
    text-align: right;
  }

  .hero-location p {
    font-size: 12px;
    line-height: 1.4;
  }

  .hero-location h2 {
    margin-top: 8px;
    margin-bottom: 8px;

    font-size: 38px;
  }

  .hero-buttons {
    width: 100%;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;

    gap: 12px;
  }


  /* ALTRI ELEMENTI */

  .riquadro {
    padding: 24px;
  }

  .rsvp-form {
    padding: 24px 22px;

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

  .upload-form {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .file-button {
    width: auto;
  }

  #file-name {
    flex: 1;
  }

  .upload-form .btn {
    width: auto;
  }

  #striscia-colorata {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .quote-line {
    font-size: 48px;
  }
}


/* =========================
   DESKTOP
========================= */

@media (min-width: 992px) {

  :root {
    --gutter: 32px;
  }

  section {
    padding-top: 60px;
    padding-bottom: 82px;
  }

  p {
    font-size: 16px;
  }

  .hero-layout {
    gap: 80px;
  }

  #ginko {
    width: 65%;
    max-width: 520px;
  }

  .hero-location h2 {
    font-size: 42px;
  }

  .riquadro p:not(.card-label) {
    font-size: 15px;
  }
}


/* =========================
   DESKTOP GRANDE
========================= */

@media (min-width: 1280px) {

  :root {
    --gutter: 36px;
  }
}




/* =========================
   PRELOADER
========================= */

#preloader {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100vh;

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

  background: var(--white);
  z-index: 9999;

  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 20px;
  text-align: center;
}

.preloader-content img {
  width: 80px;
  animation: preloader-image 1.5s ease-in-out infinite;
}

.preloader-line {
  position: relative;
  overflow: hidden;

  width: 100px;
  height: 1px;

  background: rgba(223, 17, 27, 0.2);
}

.preloader-line::after {
  content: "";

  position: absolute;
  top: 0;
  left: -100%;

  width: 100%;
  height: 100%;

  background: var(--red);
  animation: preloader-line 1.2s ease-in-out infinite;
}

@keyframes preloader-image {
  0% {
    opacity: 0.4;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0.4;
    transform: scale(0.95);
  }
}

@keyframes preloader-line {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}


#dettagli-presenza {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#dettagli-presenza.hidden {
  display: none;
}

/* =========================
   PAGINA CONFERMA RSVP
========================= */

.thank-you-page {
  min-height: 100vh;

  display: flex;
  align-items: center;
}

.thank-you-text {
  margin-top: 20px;
  margin-bottom: 30px;
}

/* =========================
   LISTA NOZZE
========================= */

.site-header {
  background: var(--white);
}

.site-header .navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.brand-red {
  display: flex;
  align-items: center;
  gap: 6px;

  color: var(--red);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.brand-red em {
  font-weight: 400;
}

.custom-toggler {
  width: 40px;
  height: 40px;
  padding: 8px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;

  border: 0;
  box-shadow: none !important;
}

.custom-toggler span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--red);
}

.site-header .nav-link {
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.px-page {
  width: 100%;
  max-width: var(--max-width);

  margin: 0 auto;

  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.list-hero {
  padding-top: 50px;
  padding-bottom: 50px;
}

.kicker {
  margin-bottom: 12px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title {
  color: var(--red);

  font-size: 38px;
  line-height: 1.05;
  font-weight: 400;
}

.copy-lg {
  font-size: 16px;
  line-height: 1.6;
}

.section {
  padding-top: 55px;
  padding-bottom: 55px;
}

.store-section {
  border-bottom: 1px solid var(--red-light);
}

.store-card {
  padding: 24px;

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

.store-card h2 {
  margin-top: 12px;
  margin-bottom: 20px;

  font-size: 34px;
}

.store-address {
  font-size: 14px;
}

.store-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-contacts p {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  padding-bottom: 8px;
  border-bottom: 1px solid var(--red-light);
}

.store-contacts span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.store-contacts a {
  color: var(--red);
  text-align: right;
  text-decoration: none;
}

.store-actions {
  margin-top: 28px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.store-note {
  margin-top: 16px;

  font-size: 12px;
}

.gift-section,
.gift-extra-section {
  border-top: 1px solid var(--red-light);
}

.gift-title {
  margin-bottom: 30px;
}

.gift-card {
  height: 100%;

  display: flex;
  flex-direction: column;

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

.gift-image,
.gift-placeholder {
  width: 100%;
  height: 250px;
}

.gift-image {
  object-fit: contain;
  padding: 18px;
  background: #fff;
}

.gift-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(223, 17, 27, 0.04);

  font-size: 36px;
}

.gift-body {
  flex: 1;

  padding: 20px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 12px;

  border-top: 1px solid var(--red-light);
}

.gift-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gift-card h3 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
}

.gift-detail {
  font-size: 13px;
}

.gift-detail span {
  margin-right: 8px;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gift-price {
  margin-top: auto;

  font-size: 16px;
  font-weight: 600;
}

.gift-price small {
  display: block;

  margin-top: 2px;

  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.alert-red {
  color: var(--red);
  background: var(--red-light);

  border: 0;
  border-radius: 0;
}

@media (min-width: 768px) {

  .list-hero {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .section-title {
    font-size: 52px;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .store-card {
    padding: 32px;
  }

  .store-actions {
    flex-direction: row;
    align-items: center;
  }

  .store-actions .btn {
    width: auto;
  }

  .gift-image,
  .gift-placeholder {
    height: 290px;
  }

}


/* =========================
   PRIVACY
========================= */

.privacy-note {
  margin-top: 14px;

  font-size: 11px;
  line-height: 1.5;
}

.privacy-inline,
.privacy-footer-link {
  padding: 0;

  color: inherit;
  background: transparent;

  border: 0;

  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;

  cursor: pointer;
}

.privacy-overlay {
  position: fixed;
  inset: 0;

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

  padding: 20px;

  overflow-y: auto;

  background: rgba(20, 0, 0, 0.55);

  z-index: 10000;
}

.privacy-overlay.open {
  display: flex;
}

.privacy-panel {
  width: 100%;
  max-width: 820px;

  margin: auto;

  padding: 24px;

  background: var(--white);
  color: var(--red);

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

.privacy-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  padding-bottom: 20px;

  border-bottom: 1px solid var(--red-light);
}

.privacy-header h2 {
  font-size: 34px;
}

.privacy-close {
  width: 42px;
  height: 42px;
  padding: 0;

  flex-shrink: 0;

  color: var(--red);
  background: transparent;

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

  font-size: 18px;
}

.privacy-content {
  padding-top: 22px;
}

.privacy-content h3 {
  margin-top: 24px;
  margin-bottom: 8px;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.privacy-content p {
  font-size: 13px;
  line-height: 1.65;
}

.privacy-updated {
  margin-top: 28px;

  font-size: 11px !important;
}

body.privacy-open {
  overflow: hidden;
}

@media (min-width: 768px) {

  .privacy-panel {
    padding: 36px;
  }

  .privacy-header h2 {
    font-size: 44px;
  }

  .privacy-content p {
    font-size: 14px;
  }

}


/* =========================
   MESSAGGI UPLOAD
========================= */

.upload-message {
  display: none;

  margin-top: 15px;
  padding: 12px;

  font-size: 13px;
  line-height: 1.5;
}

.upload-message.show {
  display: block;
}

.upload-success,
.upload-error {
  color: var(--red);
  border: 1px solid var(--red);
}


/* =========================
   ACCESSIBILITÀ - MOVIMENTO RIDOTTO
========================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-aos] {
    transform: none !important;
    opacity: 1 !important;
  }

}


/* =========================
   FALLBACK SE AOS NON È DISPONIBILE
========================= */

.no-aos [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}


/* =========================
   ANCORE DALLA LISTA NOZZE
========================= */

.anchor-from-list {
  height: 0;
  scroll-margin-top: 10px;
}


/* =========================
   TORNA SU
========================= */

#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1050;

  width: 46px;
  height: 46px;

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

  padding: 0;
  border: 1px solid var(--red);
  border-radius: 50%;

  background: var(--white);
  color: var(--red);

  font-size: 20px;
  line-height: 1;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease;
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top:hover,
#back-to-top:focus-visible {
  background: var(--red);
  color: var(--white);
}

#back-to-top:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  #back-to-top {
    right: 28px;
    bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #back-to-top {
    transition: none;
  }
}
