/* Pagine interne (servizi, zone, guide), modulo di richiesta, barra mobile. */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--black); color: var(--white); text-decoration: none; border: 1px solid var(--black);
  font: 400 15px/1 var(--font); padding: 15px 24px; border-radius: 999px; cursor: pointer;
  transition: background .3s, color .3s, opacity .3s;
}
.btn:hover { background: #333; }
.btn--ghost { background: transparent; color: var(--black); border-color: var(--line); }
.btn--ghost:hover { background: rgba(10,10,10,.05); }
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light:hover { background: #ddd; }
.btn[disabled] { opacity: .5; cursor: wait; }

/* ---------- INTRO ---------- */
.pintro { padding: clamp(130px, 16vw, 200px) 0 clamp(60px, 8vw, 100px); }
.pintro--center { min-height: 80vh; display: grid; align-items: center; }
.pintro__title { font-size: clamp(40px, 6.4vw, 96px); line-height: 1; letter-spacing: -.045em; font-weight: 500; max-width: 16ch; }
.pintro__lead { margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 60ch; }
.pintro__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 13px; color: var(--muted); }
.trust li::before { content: "✓"; margin-right: 8px; color: var(--black); }

.crumbs ol { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--black); }

/* ---------- TESTO ---------- */
.prose { padding: 0 0 clamp(70px, 9vw, 120px); }
.prose__wrap { max-width: 860px; }
.prose__sec { padding: 44px 0; border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 20px; }
.prose p { color: #333; font-size: 17px; margin-bottom: 14px; }
.prose ul { margin: 6px 0 0; padding: 0; list-style: none; }
.prose li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); font-size: 16.5px; color: #333; }
.prose li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 1px; background: var(--black); }
.prose strong { font-weight: 500; color: var(--black); }
.prose a { text-underline-offset: 3px; }
.prose .comuni { font-size: 15px; color: var(--muted); line-height: 1.9; }
.svc-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-size: 17.5px; font-weight: 400; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 200; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }

.note { margin-top: 20px; padding: 24px 28px; background: var(--grey-1); border-radius: 6px; }
.note p { font-size: 14.5px; color: var(--muted); margin: 0 0 8px; }
.note p:last-child { margin: 0; }

/* ---------- SCHEDE ---------- */
.cards { padding: 0 0 clamp(80px, 10vw, 140px); }
.cards__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards__list a { display: flex; flex-direction: column; height: 100%; padding: 30px 28px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; transition: background .3s, border-color .3s; }
.cards__list a:hover { background: var(--grey-1); border-color: transparent; }
.cards__list h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; }
.cards__list p { font-size: 14.5px; color: var(--muted); flex: 1; }
.cards__list span { margin-top: 20px; font-size: 14px; font-weight: 400; }

/* ---------- CORRELATI ---------- */
.rel { padding: 0 0 clamp(70px, 9vw, 110px); }
.rel__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.rel__list a { display: flex; justify-content: space-between; gap: 12px; padding: 22px 18px 22px 0; text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--line); }
.rel__list a:hover { opacity: .6; }

/* ---------- MODULO DI RICHIESTA ---------- */
.lead { background: var(--black); color: var(--white); padding: clamp(90px, 11vw, 160px) 0; scroll-margin-top: 0; }
.lead .eyebrow { color: var(--muted-light); }
.lead__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.lead__title { font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -.05em; }
.lead__text { margin-top: 26px; color: #bdbdbd; font-size: 16.5px; max-width: 46ch; }
.lead__alt { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line-light); }
.lead__alt a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line-light); text-decoration: none; font-size: 17px; }
.lead__alt span { display: block; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 4px; }

.lform { display: grid; gap: 18px; }
.lform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lform label { display: grid; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); font-weight: 500; }
.lform input, .lform select, .lform textarea {
  width: 100%; font: 300 16px/1.4 var(--font); color: var(--white); letter-spacing: 0; text-transform: none;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 6px; padding: 14px 14px;
  transition: border-color .3s, background .3s;
}
.lform select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.lform select option { color: var(--black); }
.lform input:focus, .lform select:focus, .lform textarea:focus { outline: none; border-color: var(--white); background: rgba(255,255,255,.1); }
.lform textarea { resize: vertical; min-height: 110px; }
.lform .is-bad { border-color: #ff8a80; }
.lform__check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 12px !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 13.5px !important; font-weight: 300 !important; color: #bdbdbd !important; }
.lform__check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: #fff; }
.lform__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lform button { justify-self: start; padding: 17px 30px; font-size: 16px; }
.lform__msg { font-size: 14.5px; color: #bdbdbd; min-height: 1.4em; }
.lform__msg.is-err { color: #ff8a80; }

/* ---------- FOOTER ESTESO ---------- */
.foot--full { padding: 70px 0 50px; }
.foot__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.foot__cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot__cols a { text-decoration: none; }
.foot__cols a:hover { color: var(--white); }
.foot__cols p { line-height: 1.8; }
.foot__h { color: var(--white); font-weight: 500; margin-bottom: 14px; }
.foot--full .foot__logo { margin-bottom: 20px; }
.foot__legal { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 12.5px; }
.foot__legal a { text-decoration: none; }

/* ---------- BARRA CONTATTI MOBILE ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    display: grid; grid-template-columns: 1fr; position: fixed; z-index: 60; left: 10px; right: 10px; bottom: 10px;
    padding: 8px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid rgba(10,10,10,.08);
    box-shadow: 0 10px 40px rgba(0,0,0,.15); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
    transform: translateY(140%); transition: transform .5s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar a { text-align: center; text-decoration: none; padding: 13px 10px; border-radius: 999px; font-size: 15px; border: 1px solid var(--line); background: var(--white); }
  .mbar a.mbar__main { background: var(--black); color: var(--white); border-color: var(--black); }
  body { padding-bottom: 0; }
  .foot { padding-bottom: 100px; }
}

@media (max-width: 1000px) {
  .cards__list { grid-template-columns: 1fr 1fr; }
  .rel__list { grid-template-columns: 1fr 1fr; }
  .lead__grid { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cards__list, .rel__list, .svc-links, .lform__row, .foot__cols { grid-template-columns: 1fr; }
  .pintro__cta .btn { flex: 1 1 100%; }
  .lform button { justify-self: stretch; }
}

/* Home: collegamenti negli ambiti */
.svc h3 a, .svc p a { text-decoration: none; }
.svc h3 a:hover, .svc p a:hover { text-decoration: underline; text-underline-offset: 4px; }
.svc p a { color: var(--black); }
.svc__more { margin-top: 44px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Con il menu aperto la barra in basso si nasconde */
.menu-open .mbar { transform: translateY(140%) !important; }

#province { padding-top: 0; }
#province .eyebrow { margin-bottom: 24px; }

/* Zone: province principali e loro aree */
.cards--gruppo { padding-bottom: 56px; }
.cards--gruppo .eyebrow { margin-bottom: 24px; }
.cards__main a { background: var(--black); color: var(--white); border-color: var(--black); }
.cards__main a:hover { background: #2a2a2a; }
.cards__main p { color: #bdbdbd; }
.foot__sub { padding-left: 14px; opacity: .8; }
