html {
  visibility: hidden;
  overflow-x: hidden;
  max-width: 100vw;
}

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  --black-color: hsl(0, 0%, 8%);
  --white-color-lighten: hsl(0, 0%, 98%);
  --white-color: #fff;
  --body-color: #ffffff;
  --body-font: "Roboto", sans-serif;
  --normal-font-size: .938rem;
  --font-semi-bold: 600;
  --z-fixed: 100;
}

@media (min-width: 1024px) {
  :root { --normal-font-size: 1rem; }
}

/*=============== RESET ===============*/
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  font-family: var(--body-font); 
  font-size: var(--normal-font-size); 
  background: var(--body-color); 
  overflow-x: hidden;
  max-width: 100vw;
}
ul { list-style: none; }
a { text-decoration: none; }

/*=============== PAGE-SPECIFIC MODIFIERS ===============*/
/* aboutme links inside main area get grey underline without
   affecting header/menu links */
.about-page main a {
  text-decoration: underline;
  text-decoration-color: hsl(0, 0%, 60%);
}
.about-page main a:hover,
.about-page main a:focus {
  text-decoration-color: hsl(0, 0%, 40%);
}

/* ensure any <u> element inside these anchors follows the same color */
.about-page main a u {
  text-decoration: underline;
  text-decoration-color: hsl(0, 0%, 60%);
}
.about-page main a u:hover,
.about-page main a u:focus {
  text-decoration-color: hsl(0, 0%, 40%);
}

/* ==================== BULLET LISTS (hanging indent) ==================== */
.about-page main .about-text ul {
  list-style: disc outside;
  list-style-position: outside;
  padding-inline-start: 1.4rem;
  margin: 0; /* reset browser defaults so wrapping aligns consistently */
}

.about-page main .about-text ul li {
  margin-bottom: 0.4rem;
  /* hanging indent: wrap lines align with start of text, not with the bullet */
  padding-inline-start: 0.15rem; /* qui regoli quanto “entra” il testo */
  text-indent: -0.05rem; /* qui riposizioni il bullet fuori */
}

/*=============== CONTAINER ===============*/
.container { max-width: 1220px; padding: 0 8px; }
@media (min-width: 1118px) { .container { margin-inline: auto; padding: 0 1.5rem; } }

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white-color);
  z-index: var(--z-fixed);
  transition: opacity 0.3s ease;
}

/* Nasconde la navbar quando si scrolla verso il basso */
.header.header-hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.header {
  transition: transform 0.3s ease;
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}

.nav__logo, 
.nav__burger, 
.nav__close {
  color: var(--black-color);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1118px) {
  .nav__data {
    gap: 1rem;
  }
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  font-weight: var(--font-semi-bold);
  letter-spacing: 0.15rem;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  flex: 1;
  min-width: 0;
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__logo-light {
  font-weight: 300;
}

.nav__logo-img {
  width: 30px;
  height: 30px;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Logo e testo nella home: inizialmente nascosti */
.nav__logo-home,
.nav__logo-text-home {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Quando si scrolla, mostra logo e testo */
body.scrolled-home .nav__logo-home,
body.scrolled-home .nav__logo-text-home {
  opacity: 1;
  transform: translateY(0);
}

.nav__toggle {
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
}

.nav__burger, 
.nav__close {
  position: absolute;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
  color: var(--black-color);
  pointer-events: auto;
}

.nav__burger {
  opacity: 1;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    background-color: var(--white-color);
    padding-top: 1rem;
  }
}

/* Hide the toggle icon in desktop view */
@media screen and (min-width: 1118px) {
  .nav__toggle {
      display: none;
  }
}

.nav__link {
  color: var(--black-color);
  background-color: var(--white-color);
  font-weight: var(--font-semi-bold);
  letter-spacing: .1rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.nav__link:hover {
  background-color: var(--white-color);
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
  -webkit-tap-highlight-color: transparent;
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__link, 
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--black-color);
  background-color: var(--white-color-lighten);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  -webkit-touch-callout: none;
  letter-spacing: .1rem;
  transition: background-color .3s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover, 
.dropdown__sublink:hover {
  background-color: var(--white-color);
}

.dropdown__menu, 
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu - SOLO DESKTOP (hover disabilitato su mobile) */
@media screen and (min-width: 1118px) {
  .dropdown__item:hover .dropdown__menu, 
  .dropdown__subitem:hover > .dropdown__submenu {
    max-height: 1000px;
    transition: max-height .4s ease-in;
  }

  /* Rotate dropdown icon */
  .dropdown__item:hover .dropdown__arrow {
    transform: rotate(180deg);
  }
}

/* Allow toggling dropdowns via JS: when an item has .open, show its menu */
.dropdown__item.open .dropdown__menu,
.dropdown__subitem.open > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
}

.dropdown__item.open .dropdown__arrow,
.dropdown__subitem.open .dropdown__arrow {
  transform: rotate(180deg);
}

.dropdown__subitem.open .dropdown__add {
  transform: rotate(90deg);
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
  transition: transform .4s;
}

.dropdown__sublink {
  background-color: var(--white-color-lighten);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item, 
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu, 
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }

  .dropdown__link, 
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
  }

  /* Show dropdown submenu */
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top .3s;
  }
}

  /* FINE MENU */

/*=============== HERO HOME ===============*/
.hero { text-align: center; margin-top: 70px; padding: 80px 0; opacity: 1; animation: none forwards; }
.hero-logo { max-width: 220px; height: auto; }
.hero-title { font-family: Roboto, sans-serif; font-weight: 700; font-size: 2.4rem; letter-spacing: .4rem; margin-top: 20px; }
.hero-subtitle { font-family: Roboto, sans-serif; font-weight: 300; font-size: 1.2rem; opacity: 0.9; letter-spacing: .6rem; margin-top: 10px; }

@media (max-width: 768px) {
  .hero { padding: 30px 0; margin-top: 30px; }
  .hero-logo { max-width: 80px; }
  .hero-title { font-size: 1rem; }
  .hero-subtitle { font-size: 0.8rem; line-height: 1.2; }
}

#intro {
  position: fixed;
  inset: 0;
  /* use the same dark gray color as the hero text for a softer background */
  background: var(--black-color);
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  overflow: hidden;
}

.intro-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  transition: color 200ms ease, transform 600ms cubic-bezier(.2,.9,.2,1);
  will-change: transform;
  transform-origin: center center;
}

/* Desktop sizing for intro block (adjust values below for your needs) */
.intro-logo { 
  max-width: 220px;  /* ← MODIFICA QUI: larghezza logo desktop */
  display: block; 
  margin: 0 auto; 
}
.intro-title { 
  font-family: Roboto, sans-serif; 
  font-weight: 700; 
  letter-spacing: .4rem; 
  margin-top: 20px;  /* ← MODIFICA QUI: spazio top titolo desktop */
  font-size: 2.4rem;  /* ← MODIFICA QUI: dimensione testo titolo desktop */
}
.intro-subtitle { 
  font-family: Roboto, sans-serif; 
  font-weight: 300; 
  font-size: 1.2rem;  /* ← MODIFICA QUI: dimensione sottotitolo desktop */
  opacity: 0.9; 
  letter-spacing: .6rem; 
  margin-top: 10px;  /* ← MODIFICA QUI: spazio top sottotitolo desktop */
}

/* Mobile sizing for intro block — separate from .hero-mobile (adjust values below) */
@media (max-width: 768px) {
  .intro-logo { 
    max-width: 80px;  /* ← MODIFICA QUI: larghezza logo mobile */
  }
  .intro-title { 
    font-size: 1rem;  /* ← MODIFICA QUI: dimensione testo titolo mobile */
    margin-top: 25px;  /* ← MODIFICA QUI: spazio top titolo mobile */
  }
  .intro-subtitle { 
    font-size: 0.8rem;  /* ← MODIFICA QUI: dimensione sottotitolo mobile */
    margin-top: 8px;  /* ← MODIFICA QUI: spazio top sottotitolo mobile */
  }
}

.intro-wipe {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100%;
  background: #fff;
  transform: translateY(100%);
  /* IMPORTANTE: questo valore deve corrispondere a 'wipeDuration' in assets/js/main.js */
  /* Valori consigliati: 500ms-1200ms (più alto = animazione più lenta) */
  transition: transform 900ms cubic-bezier(.2,.9,.2,1);
  z-index: 2;
}

#intro.intro-start .intro-wipe { transform: translateY(0); }

/* invert text/logo color when wipe reaches them — use the design variable for exact match */
#intro.intro-invert .intro-inner { color: var(--black-color); }

/* while intro running, hide content underneath to avoid flashes */
body.intro-running .hero,
body.intro-running .gallery,
body.intro-running footer,
body.intro-running .nav {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .intro-wipe { transition: none; }
  .intro-inner { transition: none; }
}

/*=============== PAGINE ===============*/
.pagine-title { padding: 120px 200px 120px; margin: 4rem 0 0; opacity: 0; animation: fadeIn .5s forwards; }
/* Support both h1 and h2 inside pagine-title (some pages use h1, others h2) */
.pagine-title h1, .pagine-title h2 { font-size: 3rem; margin-bottom: 0; letter-spacing: .3rem; color: #2f2f2f;}
.pagine-title h1 { font-family: 'Spectral', serif; font-weight: 300; }
.pagine-title p { color: #2f2f2f; font-family: 'Roboto'; font-weight: 100; }

.pagine-description {
  max-width: 900px;
  padding: 0 20px;
  margin: 100px auto 0; 
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  font-family: 'Roboto';
}

.pagine-description.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Variante destra per la seconda sezione */
.pagine-description.pagine-right {
  text-align: right;
  transform: translateX(50px);
}

.pagine-description.pagine-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

.pagine-description h1, .pagine-description h2 { 
  font-size: 0.8rem; 
  margin-bottom: 15px; 
  letter-spacing: .2rem; 
  color: #2f2f2f;
}
.pagine-description p { 
  color: #2f2f2f; 
  margin-bottom: 30px;
  font-size: 0.8rem;
  line-height: 1.8;
}

/* On small screens ensure the title isn't hidden behind the fixed header */
@media (max-width: 768px) {
  .pagine-title { 
    padding: 8px 0px 0px;
    margin: 6rem 8px 4rem;
  }

  .pagine-description { 
    padding: 0 1rem; 
    margin-top: 3rem;
  }

  .pagine-description h1, .pagine-description h2 {
    font-size: 1rem;
  }

  .pagine-description p {
    font-size: 1rem;
  }
}

@media (min-width: 769px) {
  .pagine-title h1 {
    font-size: 8rem;
  }

  .pagine-description h1, .pagine-description h2 {
    font-size: 1.4rem;
  }

  .pagine-description p {
    font-size: 1.05rem;
  }
}

/*=============== CONTATTI ===============*/
.contact-hero { width: min(900px, 90%); margin: 120px auto 60px; }
.contact-title { margin-bottom: 40px; font-family: 'Spectral', serif; font-weight: 300; letter-spacing: .3rem; font-size: 3rem; color: #2f2f2f;}
.contact-subtitle { font-family: Poppins, sans-serif; font-weight: 300; letter-spacing: .1rem; color: #2f2f2f; margin-top: 10px;}

.contact-map-alt { width: min(900px, 90%); margin: 0 auto 80px; }
.contact-map-box { background: #fff; border-radius: 32px; corner-shape: squircle; padding: 25px 30px; border: 1px solid #eaeaea; box-shadow: 0 0 20px rgba(0,0,0,.06); transition: transform .25s, border-color .25s, opacity .25s; margin-bottom: 40px; }
.contact-map-box:hover { transform: translateY(-4px); border-color: #cfcfcf; opacity: .85; }

.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.contact-social-item {
  background: #fff;
  border: none;
  border-radius: 24px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact-social-item .map-address {
  margin-bottom: 0;
}

.contact-map-title { font-family: Roboto, sans-serif; font-weight: 600; font-size: 1.6rem; color: #2f2f2f; display: flex; align-items: center; gap: 8px; margin-bottom: 15px;}
.map-icon { font-size: 2.2rem; margin-bottom: 12px; }
.map-address { font-family: 'Roboto', sans-serif; font-weight: 300; font-size: 1.05rem; margin-bottom: 18px; }
.map-address strong { letter-spacing: 0.1rem; font-weight: 700; }
.map-btn { display: inline-flex; align-items: center; gap: 6px; background: #1d1d1d; color: #fff; padding: 10px 18px; border-radius: 18px; corner-shape: squircle; font-family: Roboto, sans-serif; transition: opacity .25s; }
.map-btn:hover { opacity: .7; }

.contact-info { 
  width: min(900px, 90%); 
  margin: 60px auto 0px;
}
.contact-info-title { 
  font-family: Roboto, sans-serif; 
  font-weight: 700; 
  letter-spacing: .12rem; 
  font-size: 1.2rem; 
  color: #2f2f2f;; 
}
.contact-info-text { 
  font-family: Poppins, sans-serif; 
  font-weight: 300; 
  letter-spacing: .1rem;
  line-height: 1.6;
  color: #2f2f2f; 
  margin-top: 20px;
}

.contact-info-text strong {
  font-weight: 700;
}

@media (max-width: 480px) { .contact-map-box { padding: 20px; } }
.contact-page footer { margin-top: 150px; }
@media (max-width: 768px) { .contact-page footer { margin-top: 50px; } }

/*=============== ABOUT PAGE ===============*/
.about-page footer { 
  margin-top: 10px; 
} /* non tocca il footer */

.about-container { 
  max-width: 900px; 
  margin: 120px auto 0; 
  padding: 0 20px;
}

.about-profile { 
  text-align: left; 
  margin-bottom: 40px; 
}

.about-photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 40px;
  corner-shape: squircle;
  display: block;
  margin: 0 auto;
}

.about-intestazione { 
  font-family: Roboto;
  font-weight: 300;
  font-size: 1.2rem;
  opacity: 1;
  letter-spacing: .1rem;
  margin-top: -110px; /* mobile adjustment */
  padding: 0 20px; /* mobile adjustment */
  color: #fff;
}

.about-name { 
  font-family: Spectral, sans-serif; 
  font-weight: 300; 
  font-size: 4rem;
  margin-bottom: 100px;
  letter-spacing: .6rem;
  padding: 0 20px; /* mobile adjustment */
  color: #fff;
}

.about-role { 
  font-family: Roboto, sans-serif; 
  font-weight: 300; 
  opacity: .7; 
  margin-top: 6px;
  margin-bottom: 60px;
  letter-spacing: .6rem 
}

.about-title { 
  font-family: Roboto, sans-serif; 
  font-weight: 700; 
  opacity: .8; 
  margin-top: 100px;
  margin-bottom: 30px;
  letter-spacing: .1rem;
  font-size: 1.4rem; 
}

.about-text { 
  font-family: Poppins, sans-serif; 
  font-weight: 300; 
  font-size: 1.05rem; 
  line-height: 1.7;
  max-width: 650px; 
  margin: auto; 
  color: #2f2f2f;
}

.about-text strong {
  font-weight: 700;
}

.about-text a {
  color: #2f2f2f;
  font-weight: 700;
}

.about-text .map-btn {
  color: #fff;
  font-weight: 400;
  text-decoration: none;
}

.about-text .map-btn:visited {
  color: #fff;
}

.about-left { 
  text-align: left;
  margin-top: 20px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.about-right { 
  text-align: right;
  margin-top: 20px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

.about-mail {
  margin-top: 60px;
  margin-bottom: 40px;
  max-width: 900px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
}

/* Desktop: larghezza piena, rapporto 16:9 */
@media (min-width: 768px) {
  .about-photo {
    width: 100%;        /* tutta la larghezza del container */
    max-width: none;    /* rimuove eventuali limiti */
    aspect-ratio: 16 / 9; 
    border-radius: 40px; 
    margin: 0;          /* allinea al bordo */
  }
}

/*=============== SERVICES PAGE PHOTO ===============*/

.services-photo-container {
  max-width: 900px;
  margin: 15px auto;
}

.services-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 40px;
  corner-shape: squircle;
  display: block;
  margin: 0 auto;
}

.services-profile { 
  text-align: left;
  margin-top: -65px;
}

.services-title { 
  font-family: Spectral, sans-serif; 
  font-weight: 300; 
  font-size: 2rem;
  letter-spacing: .4rem;
  padding: 0 20px; /* mobile adjustment */
  color: #fff;
}


/*=============== EVENTS PAGE PHOTO ===============*/
.events-photo-container {
  max-width: 900px;
  margin: 15px auto;
  padding: 0 20px;
}

.events-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 40px;
  corner-shape: squircle;
  display: block;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .events-photo {
    max-width: none;
    margin: 0;
  }
}

/*=============== WEDDING AWARDS SECTION ===============*/
.wedding-awards-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.wedding-awards-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  align-items: center;
}

.wedding-awards-left {
  grid-row: 1 / 3;
}

.wedding-awards-right {
  grid-column: 2;
  grid-row: 1;
}

.wedding-awards-btn {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
}

.wedding-awards-text {
  margin: 0;
  font-family: Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.wedding-awards-text .light-text {
  font-weight: 300;
}

.wedding-awards-text .normal-text {
  font-weight: 400;
}

@media (max-width: 768px) {
  .wedding-awards-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: left;
  }
  
  .wedding-awards-left {
    grid-row: 1;
    justify-self: center;
  }
  
  .wedding-awards-right {
    grid-column: 1;
    grid-row: 2;
  }
  
  .wedding-awards-btn {
    grid-column: 1;
    grid-row: 3;
    justify-self: left;
  }
}


@keyframes fadeIn { 
  from { opacity: 0; } 
  to { opacity: 1; }
}
/*=============== FOOTER ===============*/
footer{
  position: relative;
  z-index: 10;
  margin-top: 0px;
  padding: 40px 20px;
  border-top: 5px solid #ffffff;
  line-height: 1.6em;
  font-size: 0.8em;
  background-color: #1d1d1d;
  color: #fff;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
  animation-delay: 0.5s;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Colonna sinistra */
.footer-left {
  text-align: left;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 1px;
}

.footer-rights {
  font-weight: 300;
  color: #999999;
  margin: 0;
}

/* Colonna centrale */
.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-center .social-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.footer-center .social-list li {
  display: block;
  height: 28px;
  width: 28px;
}

.footer-center .social-list li img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.footer-center .social-list li img:hover {
  opacity: 0.6;
}

/* Colonna destra */
.footer-right {
  text-align: left;
  margin-left: 200px;
}

.footer-right p {
  margin: 0 0 8px 0;
}

.footer-right strong {
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-light {
  font-weight: 300;
}

.footer-gray {
  color: #999999;
}

footer a {
color: #ffffff;
  text-decoration: none;
}

/* Responsive: su mobile layout speciale */
@media (max-width: 768px) {
  footer {
    padding: 40px 20px 40px 20px;
  }
  
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    max-width: 100%;
  }
  
  /* Prima sezione: logo e diritti */
  .footer-left {
    text-align: left;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  
  /* Seconda sezione: social al centro */
  .footer-center {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 15px 0 15px -50px;
  }
  
  /* Terza sezione: informazioni di contatto */
  .footer-right {
    text-align: left;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
  }
  
  .footer-address {
    flex: 1;
    text-align: left;
  }
  
  .footer-email {
    flex: 1;
    text-align: left;
  }
}
