/* Brianza Hub – stile del sito */

:root {
  --ink: #19171C;
  --ink-2: #4A484D;
  --ink-3: #5E5C61;
  --line: #E6E6E3;
  --soft: #F6F6F4;
  --ph: #EDEDEA;
  --red: #E3001B;
  --green: #98BF0E;
  --orange: #F29400;
  --blue: #009DE0;
  --magenta: #B6007B;
  --grey: #9D9D9C;
  --radius: 24px;
  --head: 'Cabin', system-ui, sans-serif;
  --body: 'Work Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--magenta); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(32px, 3.8vw, 46px); }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.muted { color: var(--ink-2); }
.big { font-size: 18px; }
.small { font-size: 15px; color: var(--ink-3); }
.mb { margin-bottom: 40px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 520px; }

/* Striscia dei colori */
.stripe { display: grid; grid-template-columns: repeat(5, 1fr); height: 6px; }
.stripe span:nth-child(1) { background: var(--red); }
.stripe span:nth-child(2) { background: var(--green); }
.stripe span:nth-child(3) { background: var(--orange); }
.stripe span:nth-child(4) { background: var(--blue); }
.stripe span:nth-child(5) { background: var(--magenta); }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #C20017; color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 44px; padding: 8px 20px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Etichetta sezione: pallino + trattino come nel logo */
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: 13px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow .dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.eyebrow .bar { width: 22px; height: 4px; border-radius: 2px; background: var(--grey); flex-shrink: 0; }
.eyebrow--dark { color: #BDBDBB; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }

/* Testata */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.topbar__logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px 26px; font-weight: 500; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; padding: 10px 0; }
.nav .btn { color: #fff; }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; border-radius: 12px; }
.menu-btn__lines, .menu-btn__lines::before, .menu-btn__lines::after {
  display: block; width: 24px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: transform .2s;
}
.menu-btn__lines::before, .menu-btn__lines::after { content: ""; position: absolute; left: 0; }
.menu-btn__lines::before { top: -7px; }
.menu-btn__lines::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__lines::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .topbar__logo img { height: 44px; }
  .menu-btn { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 16px; }
}

/* Apertura */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__text .eyebrow { font-size: 14px; letter-spacing: .32em; margin-bottom: 0; }
.hero h1 { font-size: clamp(42px, 5.6vw, 70px); line-height: 1.02; letter-spacing: -.02em; }
.hl { color: var(--green); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.molecule { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; justify-self: center; }
.molecule svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.molecule__core { position: absolute; left: 20%; top: 18%; width: 60%; height: 60%; border-radius: 50%; background: var(--green); padding: 3%; }
.molecule__core img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 60%; }

/* Banda colorata */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.stat { padding: 36px 32px; }
.stat__t { font-family: var(--head); font-weight: 700; font-size: 30px; line-height: 1.1; }
.stat__s { font-size: 16px; margin-top: 6px; }

/* Lo spazio */
.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; padding-top: 96px; padding-bottom: 40px; align-items: end; }
.moments { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; justify-items: center; padding-top: 24px; padding-bottom: 40px; }
.moment { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.moment__ring { position: relative; width: 280px; height: 280px; max-width: 78vw; max-height: 78vw; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.moment__ring img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border-radius: 50%; object-fit: cover; border: 4px solid #fff; }
.moment figcaption { font-family: var(--head); font-weight: 600; font-size: 19px; }

/* Uffici e sale */
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-top: 8px solid var(--c); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card__img { position: relative; aspect-ratio: 16 / 11; background: var(--ph); }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__seats {
  position: absolute; left: 20px; bottom: -32px; width: 64px; height: 64px; border-radius: 50%;
  background: var(--c); border: 4px solid #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 700; font-size: 20px;
}
.card__body { padding: 44px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.card__title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card h3 { font-size: 23px; }
.badge { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: #EEF5D9; color: #3D5205; white-space: nowrap; }
.card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 16px; display: flex; flex-direction: column; gap: 4px; }
.card__link { margin-top: auto; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }

/* Servizi */
.dark { background: var(--ink); color: #fff; }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .services { grid-template-columns: minmax(0, 1fr); } }
.service { display: flex; align-items: center; gap: 18px; }
.service__icon { flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.service__label { font-family: var(--head); font-weight: 600; font-size: 19px; line-height: 1.25; }

/* Galleria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 16px; }
.gallery__item { position: relative; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--ph); cursor: zoom-in; }
.gallery__item[hidden] { display: none; }
.gallery__item.is-tall { grid-row: span 2; }
.gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__dot { position: absolute; right: 14px; top: 14px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; }
.center-left { margin-top: 28px; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(25, 23, 28, .94); color: #fff; }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 80vh; width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.lightbox__caption { font-size: 15px; color: #DDD; padding: 0 64px; text-align: center; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Aziende ospitate */
.soft { background: var(--soft); }
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.client { height: 100px; background: #fff; border-radius: 16px; border-bottom: 4px solid; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-weight: 600; color: var(--ink-2); }
.client a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; text-decoration: none; color: inherit; }
.client img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }

/* Dove siamo */
.location { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center; }
.location__text { display: flex; flex-direction: column; gap: 20px; }
.location__text .eyebrow { margin-bottom: 0; }
.address { font-size: 20px; font-weight: 500; }
.contacts { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.contacts a { font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; }
.location__media { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.location__img { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--ph); }
.location__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.pin { position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--green); border: 4px solid #fff; }

/* Contatti */
.contact { position: relative; overflow: hidden; background: var(--blue); color: var(--ink); }
.contact__in { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; }
.contact .lead { color: var(--ink); max-width: 440px; margin-top: 16px; font-size: 18px; }
.h2-big { font-size: clamp(34px, 4vw, 50px); line-height: 1.05; }
.blob { position: absolute; border-radius: 50%; }
.blob--1 { right: -80px; top: -80px; width: 260px; height: 260px; background: var(--green); }
.blob--2 { right: 150px; top: 120px; width: 48px; height: 48px; background: var(--orange); }
.blob--3 { left: -40px; bottom: -40px; width: 140px; height: 140px; background: var(--magenta); }

.form { position: relative; background: #fff; border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-self: start; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.form .full { grid-column: 1 / -1; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #CFCFCC;
  background: #fff; color: var(--ink); min-height: 46px; width: 100%;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0,157,224,.25); }
.form .is-invalid { border-color: var(--red) !important; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--ink-2); font-weight: 400; }
.form .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--magenta); flex-shrink: 0; }
.form__msg { grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form__msg[hidden] { display: none; }
.form__msg--ok { background: #EEF5D9; color: #2F4004; }
.form__msg--err { background: #FDE6E8; color: #8A0010; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { background: var(--ink); color: #BDBDBB; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 40px; padding-bottom: 48px; font-size: 14px; }
.footer__left { display: flex; align-items: center; gap: 14px; }
.dots { display: flex; gap: 6px; flex-shrink: 0; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.footer__links { display: flex; gap: 22px; }
.footer a { color: #fff; }
.footer a:hover { color: var(--green); }

/* Pagina privacy */
.page { max-width: 820px; padding-top: 64px; padding-bottom: 96px; }
.page h1 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 32px; }
.page .prose { white-space: pre-line; color: var(--ink-2); }
.back { display: inline-flex; margin-bottom: 32px; font-weight: 600; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero { padding-top: 40px; }
  .form { padding: 22px; }
  .footer__left { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
