/* =========
   Base
========= */
:root{
  --bg: #0b0f14;
  --bg--accent: linear-gradient(135deg, rgba(197,155,82,.55), rgba(241,208,138,.25));
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.12);
  --card: rgba(255,255,255,.05);

  --accent: #c59b52;   /* legno/oro */
  --accent2: #f1d08a;

  --radius: 18px;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --max: 1140px;
  --border: 1px solid rgba(255,255,255,.12);
}

*{ box-sizing: border-box; }
html{ scroll-behavior:smooth;
}



body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 0%, rgba(197,155,82,.18), transparent 60%),
              radial-gradient(800px 500px at 85% 20%, rgba(241,208,138,.10), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.demoBar{
  position: fixed;
  top: 64px;
  left: 14px;
  z-index: 999999;
  max-width: 200px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: left;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(229,231,235,.68);
  background: rgba(197,155,82,.10);
  border: 1px solid rgba(197,155,82,.22);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: opacity .6s ease, visibility .6s ease;
}

.demoBar--hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.demoBar a{
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.demoBar a:hover{
  color: var(--accent);
}

.siteHeader{
  position:fixed; top:0; z-index:99999;
  background: rgba(10,12,18,.72);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(255,255,255,.06);
  padding:12px 16px;
  display:flex; align-items:center; justify-content:space-between;
  top:-1px;
  width: 100%;
  height: 50px;
}

*::-webkit-scrollbar{
    display: none;
}

.nav {
  position: relative;
  z-index: 99999;
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  padding: 0 10px;
}

a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
button, input, select, textarea{ font: inherit; color: inherit; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.section{ padding: 72px 0; }
.section--tight{ padding: 28px 0 54px; }
.section__head{
  margin-bottom: 24px;
}
.section__head h2{
  margin:0 0 6px;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: .2px;
}
.section__head p{ margin:0; color: var(--muted); }

.accent{ color: var(--accent2); }

/* =========
   Progress bar
========= */
.progress{
  position: fixed;
  top:49px; left:0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 999999;
  opacity: .9;
}

/* =========
   Header + Nav
========= */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.nav{ position: relative; }

.nav__link{
  font-size: 14px;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 12px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.nav__link:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
  transform: translateY(-1px);
}
.nav__link.is-active{
  color: var(--text);
  background: rgba(197,155,82,.12);
  border: 1px solid rgba(197,155,82,.22);
}

/* ===== Hamburger ===== */
.container-toggle {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
}

.bar1, .bar2, .bar3 {
  position: absolute;
  left: 0;
  width: 32px;
  height: 3px;
  margin: 0;
  background: var(--text);
  border-radius: 999px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.bar1{ top: 2px; }
.bar2{ top: 10px; }
.bar3{ top: 18px; }

.change .bar1 {
  top: 10px;
  transform: rotate(45deg);
}

.change .bar2 {
  opacity: 0;
  transform: scaleX(0);
}

.change .bar3 {
  top: 10px;
  transform: rotate(-45deg);
}
/* ===== Visibilità ===== */
.nav-toggle {
  display: none;
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========
   Buttons & UI
========= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  transition: transform .2s ease, background .2s ease, border .2s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.08); }
.btn:active{ transform: translateY(0); }

.btn--accent{
  background: var(--bg--accent);
  border: 1px solid rgba(197,155,82,.35);
  transition: transform 0.3s ease-in-out, background 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.btn--accent:hover{
  transform: translateY(-1px);
  background:var(--bg--accent);;
  filter: brightness(1.2);
}

.btn--ghost{
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
}
.btn--small{ padding: 10px 12px; border-radius: 12px; font-size: 14px; }

.badge{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(197,155,82,.22);
  background: rgba(197,155,82,.10);
  color: var(--accent2);
  font-size: 13px;
}

/* =========
   Hero
========= */
.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: center;
}
.hero__title{
  margin: 14px 0 10px;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.1;
}
.hero__subtitle{
  margin:0 0 18px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 58ch;
}
.hero__cta{ display:flex; gap: 12px; flex-wrap: wrap; }

.hero__stats{
  display:flex;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.stat{
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.stat strong{ display:block; font-size: 16px; }
.stat span{ display:block; color: var(--muted); font-size: 13px; }

.hero__media{ display:grid; gap: 12px; }
.mock{
  height: 360px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    radial-gradient(520px 240px at 60% 10%, rgba(197,155,82,.26), transparent 60%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.mock__shine{
  position:absolute;
  inset:-40% -40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent);
  transform: rotate(20deg);
  animation: shine 4.8s ease-in-out infinite;
}
@keyframes shine{
  0%{ transform: translateX(-30%) rotate(20deg); opacity: .2; }
  50%{ transform: translateX(30%) rotate(20deg); opacity: .55; }
  100%{ transform: translateX(-30%) rotate(20deg); opacity: .2; }
}

label{
  color:var(--accent2);
}

.mock__label{
  position:absolute;
  left: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15,20,27,.78);
  border: 1px solid rgba(255,255,255,.10);
}
.mock__label strong{ display:block; font-size: 14px; }
.mock__label span{ display:block; font-size: 13px; color: var(--muted); }

.hero__chips{ display:flex; flex-wrap: wrap; gap: 10px; }

.chip{
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);

  display: inline-flex;
  align-items: center;
  transition:
    transform .22s cubic-bezier(.22, 1, .36, 1),
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    color .22s ease,
    filter .22s ease;
}

.chip:hover {
  background: var(--bg--accent);
  border-color: var(--accent2);
  box-shadow: 0 0 8px rgba(241, 208, 138, .45);
  color: var(--text);
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.05);
}

@media (max-width: 920px){
  .hero__grid{ grid-template-columns: 1fr; }
  .mock{ height: 300px; }
}

/* =========
   Cards, grids, lists
========= */
.grid{ display:grid; gap: 16px; }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px){ .grid--3{ grid-template-columns: 1fr; } }

.grid2{
    display: flex;
    gap:20px;
}

@media (max-width: 920px){ .grid2{ flex-direction: column; } }

.card{
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 40px rgba(0,0,0,.22);
  padding: 18px;
}
.card h3{ margin: 0 0 8px; font-size: 18px; }
.card p{ margin: 0 0 12px; color: var(--muted); }

.list{
  margin: 0;
  color: var(--muted);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:5px;

}

.list li{ 
    margin: 6px 0;
    background: var(--panel);
    /* padding: 0 3px; */
    display: flex;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid var(--line);
    font-size:14px;
}

.list li::marker{
    content: "";
}

.ctaBar{
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(197,155,82,.16), rgba(255,255,255,.05));
  border: 1px solid rgba(197,155,82,.22);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.ctaBar p{ margin: 0; color: var(--muted); }

/* =========
   Trust row
========= */
.trust__row{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.trust__item{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.trust__icon{ font-size: 22px; }
.trust__item p{ margin: 4px 0 0; color: var(--muted); }
@media (max-width: 920px){
  .trust__row{ grid-template-columns: 1fr; }
}

/* =========
   Gallery
========= */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 920px){
  .gallery{ grid-template-columns: 1fr; }
}
.gitem{
  border: none;
  padding:0;
  text-align: left;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .22s ease, border .22s ease, background .22s ease;
}

.gitem span{
  padding:0 20px ;
  display: flex;
  align-items: center;
  height: 35px;
  color: var(--muted)
}

.gitem:hover span {
  color: var(--text)
}

.gitem:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(197,155,82,.22);
}
.gitem img{ width: 100%; height: 210px; object-fit: cover; }
.gitem__cap{
  display:block;
  padding: 10px 12px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
}

.filter-wrap{
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: center;
  width: fit-content;
}

.filters{
  display: flex;
  align-items: center;
  gap: 12px;

  max-width: 0;
  opacity: 0;
  white-space: nowrap;

  transition:
    max-width .3s ease,
    opacity .2s ease,
    padding .3s ease;
}

.filters.btn-filter-open{
  max-width: 520px;
  opacity: 1;
  padding-left: 4px;
}

.filters .chip{
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);

  transition:
    opacity .2s ease,
    transform .2s cubic-bezier(.22, 1, .36, 1),
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    color .2s ease,
    filter .2s ease;
}

.filters.btn-filter-open .chip{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.filters.btn-filter-open .chip:nth-child(1){ transition-delay: .05s; }
.filters.btn-filter-open .chip:nth-child(2){ transition-delay: .09s; }
.filters.btn-filter-open .chip:nth-child(3){ transition-delay: .13s; }
.filters.btn-filter-open .chip:nth-child(4){ transition-delay: .17s; }

.filters .chip:hover{
  background: var(--bg--accent);
  border-color: var(--accent2);
  box-shadow: 0 0 8px rgba(241, 208, 138, .45);
  color: var(--text);
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.05);
}

.filters .chip.is-active{
  background: var(--bg--accent);
  border-color: var(--accent2);
  box-shadow: 0 0 7px rgba(241, 208, 138, .5);
  color: var(--text);
}

.filters .chip.is-active:hover{
  transform: translateY(-1px) scale(1.03);
  filter: none;
}

.btn-filter{
  background: var(--bg--accent);
  border: 1px solid var(--accent2);
  box-shadow: 0 0 5px rgba(241, 208, 138, .45);
  border-radius: var(--radius);
  height: 50px;
  width: 50px;
  cursor: pointer;
}

.filter-icon{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.filter-icon img{
  object-fit: cover;
  height: 30px;
  width: 30px;
}

/* =========
   Steps
========= */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 920px){
  .steps{ grid-template-columns: 1fr; }
}
.step__n{
  display:inline-flex;
  width: 42px; height: 42px;
  border-radius: 14px;
  align-items:center;
  justify-content:center;
  margin-bottom: 10px;
  background: rgba(197,155,82,.12);
  border: 1px solid rgba(197,155,82,.22);
  color: var(--accent2);
  font-weight: 700;
}

input, select, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  outline: none;
  transition: border .2s ease, background .2s ease;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(197,155,82,.35);
  background: rgba(255,255,255,.06);
}

.muted{ color: var(--muted); }
.tiny{ font-size: 12px; }

/* FAQ */
.miniFaq{ margin-top: 14px; }

.faq{
  width:100%;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  cursor:pointer;
  margin: 10px 0;
  font: inherit;
  text-align: left;
}

.faq:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(197,155,82,.24);
}

.faq__panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  padding: 0 10px;
  color: rgba(255,255,255,.78);
}

.faq.is-open + .faq__panel{
  max-height: 160px;
  padding-bottom: 10px;
}

.faq__icon{
  color: var(--accent2);
}

/* =========
   Footer
========= */
.footer{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 26px 0;
  background: rgba(0,0,0,.12);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.footer__link{ padding: 8px 10px; border-radius: 12px; }
.footer__link:hover{ background: rgba(255,255,255,.06); color: var(--text); }

/* =========
   Reveal animations
========= */
.reveal{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay{ transition-delay: .08s; }
.reveal--delay2{ transition-delay: .16s; }

/* =========
   Back to top
========= */
.toTop{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(15,20,27,.75);
  backdrop-filter: blur(10px);
  color: var(--accent2);
  cursor:pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toTop.is-show{
  opacity: 1;
  transform: translateY(0);
  pointer-events:auto;
  /* cursor: none; */
}

.toTop:hover{
  transform:translateY(-2px);
  box-shadow: 0 0 10px var(--accent2);
}

.toTop:hover .toTop-arrow{
  animation: arrowUp 0.6s ease-in-out;
}

.toTop-arrow{
  position: relative;

}

@keyframes arrowUp {
  0%{transform:translateY(0);}
  25% {transform:translateY(-3px);}
  50% {transform:translateY(-1px);}
  75% {transform:translateY(-3px);}
  100% {transform:translateY(0px);}
}

/* =========
   Modal
========= */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 2000;
}
.modal.is-open{ display:block; }
.modal__backdrop{
  position:fixed; 
  inset:0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(10px);
}


.modal__content{
  position: relative;
  width: min(940px, calc(100% - 30px));
  margin: 70px auto 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(15,20,27,.92);
  box-shadow: 0 0 15px var(--accent2);
}

.modal__img{ width:100%; height: min(70vh, 620px); object-fit: cover; }
.modal__close{
  position:absolute;
  right: 12px;
  top: 12px;
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  cursor:pointer;
  transition: transform 0.3s ease;
  font-weight: bold;
}

.modal__close:hover{
  transform: scale(1.1);
}

.modal__hint{
  margin:0;
  padding: 10px 14px 14px;
  color: var(--muted);
  font-size: 13px;
}

/* =========
   Toast
========= */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(15,20,27,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 12px 14px;
  color: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 2500;
}
.toast.is-show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Burger visibile e cliccabile in mobile */

@media (max-width: 860px) {
  .siteHeader{
    height: 56px;
    padding: 10px 14px;
  }

  .nav{
    padding: 0;
  }

  .brand{
    font-size: 15px;
  }

  .navLinks {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 14px;
    cursor: pointer;
  }

  .container-toggle {
    display: block;
  }

  .modal__hint{
    display: none;
  }
}

/* Mobile menu: unica definizione */
.mobile-menu {
  position: fixed;
  inset: 56px 0 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

body.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(4px);
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  padding: 18px 16px 20px;
  border-radius: 0 0 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(15,20,27,.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,.55);

  display: grid;
  gap: 10px;

  transform: translateY(-12px);
  transition: transform .22s ease;
}

body.menu-open .mobile-menu__panel {
  transform: translateY(0);
}

.mobile-link {
  display: block;
  width: 100%;
  padding: 13px 14px;

  color: var(--accent2);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;

  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
}

.contactGrid{
  display:grid;
  grid-template-columns: 1.2fr 1.2fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width: 920px){
  .contactGrid{ grid-template-columns: 1fr; }
}

input, textarea{
  width: 100%;
  background-color: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  font-weight: 500;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

input:focus, textarea:focus{
  border-color: rgba(197,155,82,.42);
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 3px rgba(197,155,82,.10);
}

/* ===== Custom select ===== */
.customSelectValue{
  color: var(--accent2);
}

.customSelectBtn{
  width:100%;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 44px 11px 12px;
  color: var(--text);
  text-align:left;
  cursor:pointer;
  font-family: inherit;
  font-weight: 500;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, transform .18s ease;
}

.customSelectBtn:hover{
  /* box-shadow: 0 0 10px var(--accent2); */
  transform: translateY(-1px);
}

.customSelectArrow{
  position:absolute;
  right:12px;
  top:50%;
  width:14px;
  height:14px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin:center;
  transition: transform .22s ease;
  background: url("./assets/arrow-right.svg") center/14px 14px no-repeat;
  opacity:.9;
}

.select-open .customSelectArrow{
  transform: translateY(-50%) rotate(-90deg); /* fluida, non “netta” */
}

.customSelectList{
  position:absolute;
  left:0;
  right:0;
  bottom: calc(100% + 8px); /* sempre sopra il bottone */
  margin:0;
  padding:20px 10px;
  list-style:none;

  background: var(--bg);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
  backdrop-filter: blur(12px);

  opacity:0;
  transform: translateY(6px);
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 9999;
}

.select-open + .customSelectList{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}

.customSelectList li{
  padding: 12px 12px;
  border-radius: 12px;
  cursor:pointer;
  color:#fff;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.04);
  transition: transform .12s ease, box-shadow .12s ease;
  margin: 10px 0;
}

.customSelectList li:first-child{
    margin:0;
}
.customSelectList li:last-child{
    margin:0;
}

.customSelectList li:hover{
  box-shadow: 0 0 10px var(--accent2);
  transform: translateY(-1px);
}

/* Contenitore relativo */
.select-wrap{ position: relative; }

.altro{
  display:none !important;
}

textarea{
    min-height: 120px;
    resize: vertical;
}

.divider{
    height: 1px;
    background: var(--border);
    margin:16px 0;
}

.muted{
    margin: 10px 0;
    color:var(--muted);
}

.formMessage{
    margin-top: 10px;
    font-weight: 700;
}

.formMessage.success{
    color: #22c55e;
}

.formMessage.error{
    color: #ef4444;
}

.hp{
    display: none;
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

#sendBtn{
    text-decoration: none;
    cursor: pointer;
    color:var(--text);
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg--accent);
    transition: .2s;
    font-family: inherit;
    font-weight: 400;
    font-style: normal;
}

#sendBtn:hover{
    transform: translateY(-1px);
    transition: all 0.2s;
    box-shadow: var(--accent2) 0 0 10px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.28);
  border-top-color: var(--accent2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
  background: transparent;
}

@keyframes spin {
    to { transform: rotate(360deg);}
}

@media (max-width: 920px){
  body{ margin-top:50px; }
}

.demoNotice{
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.demoNotice a{
  color: var(--accent2);
  font-weight: 600;
}

#sendBtn:disabled{
  opacity: .45;
  cursor: not-allowed;
}
