:root{
  --bg: #1c1f22;
  --card: #262a2e;
  --alt: #2d3237;
  --text: #f2f4f5;
  --muted: #b6bcc2;
  --primary: #3aa76d;
  --border: rgba(255,255,255,.10);
  --shadow: 0 14px 34px rgba(0,0,0,.45);
  --radius: 18px;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }

.container{
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(28,31,34,.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
}

.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{ display: flex; align-items: center; gap: 12px; }

.brand__logo{
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand__logo img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand__name{ font-weight: 700; line-height: 1.1; }

.nav{ display: flex; gap: 14px; align-items: center; }

.nav a{
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.nav__cta{
  margin-left: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgb(1, 70, 1);
  border-radius: 999px;
  white-space: nowrap;
}

.nav__cta:hover{ filter: brightness(1.05); }

/* Hero */
.hero{
  position: relative;
  padding: 72px 0 56px;

  background-image:
    linear-gradient(
      rgba(28,31,34,.75),
      rgba(28,31,34,.85)
    ),
    url("assets/geometra1.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.hero h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.02em;
}

.lead{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* Sections */
.section{ padding: 44px 0; }


.section h2{ margin: 0 0 10px; font-size: 24px; }
.muted{ color: var(--muted); margin-top: 0; }

/* Cards */
.card, .feature{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Services grid */
.grid3{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}

.feature{
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 140px;
}

.feature h3{
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature__link{
  margin-top: auto;              /* link sempre in basso */
  align-self: flex-start;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.feature__link:hover{ text-decoration: underline; }

.feature__link:focus-visible{
  outline: 3px solid rgba(58,167,109,.35);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Buttons (generici) */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 600;
}

.btn--primary{
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn--primary:hover{ filter: brightness(1.05); }

/* Contacts */
.contact{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.contact-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 6px 2px;
}

.contact-link:hover{ text-decoration: underline; }

.contact-link .icon{
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-link .icon img{
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.tiny{
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}

/* Footer */
.footer{
  padding: 26px 0 36px;
  color: var(--muted);
}

.footer__inner{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* Responsive */
@media (max-width: 860px){
  .grid3{ grid-template-columns: 1fr; }
}

.slider{
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
}


.slider__viewport{ overflow: hidden; }

.slider__track{
  display: flex;
  transition: transform .35s ease;
}

.slider__track img{
  width: 100%;
  height: 340px;
  flex: 0 0 100%;
  object-fit: cover;
  display: block;
}

.slider__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--border);
  background: rgba(0,0,0,.35);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 26px;
}

.slider__btn--prev{ left: 12px; }
.slider__btn--next{ right: 12px; }

.slider__btn:hover{ background: rgba(0,0,0,.5); }

.slider__dots{
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider__dot{
  width: 9px; height: 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  /* background: rgba(255,255,255,.25); */
  cursor: pointer;
}

.slider__dot.is-active{
  /* background: var(--primary); */
  border-color: var(--primary);
}

@media (max-width: 860px){
  .slider__track img{ height: 260px; }
}

/* Form page layout */
.container--narrow{
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
}

.form-hero{
  padding: 56px 0;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(58,167,109,.18), transparent 60%),
    radial-gradient(700px 420px at 85% 30%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, rgba(45,50,55,.55), rgba(28,31,34,0) 55%);
}

.form-title{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.02em;
}

.form-subtitle{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

/* Card */
.form-card{
  background: rgba(38,42,46,.82);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(6px);
}

/* Grid campi */
.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.span-2{ grid-column: span 2; }

/* Field */
.field{
  display: grid;
  gap: 8px;
}

.field span{
  font-size: 14px;
  color: var(--text);
}

.field em{
  color: var(--primary);
  font-style: normal;
  font-weight: 700;
}

.field input,
.field select,
.field textarea{
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(28,31,34,.75);
  color: var(--text);
  font: inherit;
  outline: none;
}

.field textarea{ resize: vertical; }

.field input::placeholder,
.field textarea::placeholder{
  color: rgba(182,188,194,.8);
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(58,167,109,.65);
  box-shadow: 0 0 0 4px rgba(58,167,109,.18);
}

/* Checkbox */
.check{
  display: flex;
  align-items: flex-start;
  /* gap: 10px; */
  color: var(--muted);
  font-size: 14px;
}

.check span{
  display: inline;
  line-height: 1.4;
}

.privacy-link{
  color: #4da3ff;           /* blu */
  text-decoration: underline;
}


.check input{
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

/* Actions */
.actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.btn--xl{
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 999px;
  width: fit-content;
}

.hint{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Mobile */
@media (max-width: 700px){
  .form-grid{ grid-template-columns: 1fr; }
  .span-2{ grid-column: auto; }
  .btn--xl{ width: 100%; }
}

/* ===== MAPPA ===== */
.map-card{
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-card iframe{
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* ===== CONTATTI ===== */
.contact-list{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-card{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-card img{
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.contact-card strong{
  display: block;
  font-size: 15px;
}

.contact-card span{
  font-size: 14px;
  color: var(--muted);
}

.contact-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
}

/* Responsive */
@media (max-width: 700px){
  .contact-list{
    grid-template-columns: 1fr;
  }
}

/* ===== CHI SIAMO ===== */
.profile{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  align-items: center;
}

.profile-img{
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;

  object-position: center 20%;  
}

.profile__image{
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}

.profile__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

.profile__text h2{
  margin-top: 0;
}

.values{
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.values li{
  padding: 14px 16px;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.cta-box{
  text-align: center;
}

.cta-box__actions{
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 700px){
  .profile{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile__image{
    margin: 0 auto;
  }
}

/* ===== TICKER / CARTELLO STADIO ===== */
/* ===== TICKER CONTENUTO ===== */
.ticker--contained{
  max-width: 1500px;      /* 🔥 stessa scala del banner lavori */
  margin: 14px auto 0;   /* centrato sotto il titolo */
}

/* stile base */
.ticker{
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.35);
  overflow: hidden;
}

/* scorrimento */
.ticker__track{
  display: inline-flex;
  gap: 36px;
  white-space: nowrap;
  padding: 8px 0;
  animation: ticker-scroll 20s linear infinite;
}

.ticker__track span{
  font-weight: 700;
  font-size: 25px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}

/* animazione */
@keyframes ticker-scroll{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* accessibilità */
@media (prefers-reduced-motion: reduce){
  .ticker__track{ animation: none; }
}

/* ===== SERVIZI: SELECT + CARD ===== */
.service-picker{
  margin-top: 8px;
}

.service-card{
  margin-top: 18px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.service-card h2{
  margin: 0 0 10px;
  font-size: 22px;
}

.service-card__actions{
  margin-top: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.is-hidden{
  display: none;
}

#serviceDesc{
  white-space: pre-line;
}

.privacy-link{
  color: #4da3ff;          /* blu leggibile su sfondo scuro */
  text-decoration: underline;
  font-weight: 500;
}

.privacy-link:hover{
  color: #7bbcff;
}

.privacy-link:focus-visible{
  outline: 2px solid #7bbcff;
  outline-offset: 2px;
  border-radius: 4px;
}

.check a{
  display: inline;
  vertical-align: baseline;
  line-height: inherit;
}

/* ===== COOKIE BANNER ===== */
/* (Legacy) banner in basso: lasciato per compatibilità, non usato dal popup */
.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;

  padding: 14px 18px;
  background: rgba(38,42,46,.95);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.cookie-banner p{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.cookie-banner .privacy-link{
  color: #4da3ff;
  text-decoration: underline;
}

.cookie-banner .btn--sm{
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
}

/* ===== COOKIE POPUP (MODALE) ===== */
.cookie-modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}

.cookie-modal{
  width: min(560px, 100%);
  background: rgba(38,42,46,.98);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.cookie-modal h2{
  margin: 0 0 8px;
  font-size: 18px;
}

.cookie-modal p{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-modal .privacy-link{
  color: #4da3ff;
  text-decoration: underline;
}

.cookie-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.is-hidden{
  display: none;
}

/* Cookie bottom sheet */
.cookie-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;

  /* animazione */
  transform: translateY(110%);
  opacity: 0;
  transition: transform 280ms ease, opacity 280ms ease;

  /* look */
  padding: 16px;
}

.cookie-sheet__inner {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);

  /* fallback colore (meglio se già hai variabili) */
  background: #111;
  color: #fff;

  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cookie-sheet__text p {
  margin: 0 0 8px 0;
}

.cookie-sheet__text a {
  color: inherit;
  text-decoration: underline;
}

/* Pulsanti cookie: stessa dimensione e allineati */
.cookie-sheet__actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.cookie-sheet__actions button {
  min-width: 120px;       /* stessa larghezza minima */
  flex: 1 1 120px;        /* crescono uguali */
  text-align: center;
}


.cookie-sheet__actions button:hover {
  background: rgba(255,255,255,.14);
}

/* Stato visibile: sale su */
.cookie-sheet.is-open {
  transform: translateY(0);
  opacity: 1;
}

/* Stato nascosto: non cliccabile */
.cookie-sheet.is-hidden {
  pointer-events: none;
}

/* Responsive */
@media (max-width: 720px) {
  .cookie-sheet__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-sheet__actions {
    justify-content: flex-start;
  }
}






