:root {
    --violet-900: #302230;
    --violet-800: #3b2a3b;
    --violet-700: #4c374c;
    --violet-500: #675167;
    --violet-400: #a68da6;
    --violet-300: #cfc2cf;
    --white-100: #f2ede8;
    --white-200: #ede7e1;
    --pink: #e5007e;
    --orange: #e95a0c;
    --page-gutter: clamp(24px, 8.47vw, 122px);
    --content-width: 1200px;
    --column-width: 589px;
    --shadow: 0 8px 18px var(--violet-800);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--white-200);
    background: var(--violet-700);
    font-family: "Geologica", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.625;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 16px; padding: 10px 16px; color: var(--violet-800); background: var(--white-100); }
.skip-link:focus { top: 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
    position: fixed;
    z-index: 10;
    inset: 0 0 auto;
    display: flex;
    min-height: 178px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 56px 32px;
    background: linear-gradient(180deg, var(--violet-700) 0%, var(--violet-700) 34.578%, rgba(76, 55, 76, 0) 91.645%);
    pointer-events: none;
}
.site-header::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: rgba(76, 55, 76, .01);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .85) 34.578%, transparent 91.645%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .85) 34.578%, transparent 91.645%);
    content: "";
    pointer-events: none;
}
.site-logo, .main-navigation, .menu-toggle { position: relative; z-index: 1; pointer-events: auto; }
.site-logo { width: 316px; height: 102px; margin: -10px 0 0 -18px; }
.site-logo img { width: 100%; }
.menu-list { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.menu-list a, .main-navigation > div > ul > li > a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 40px;
    background: rgba(166, 141, 166, .3);
    box-shadow: var(--shadow);
    color: var(--white-100);
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
}
.current-menu-item > a, .home .menu-list li:first-child > a { color: var(--violet-700) !important; background: var(--white-100) !important; font-weight: 700 !important; }
.menu-toggle { display: none; }

/* Layer della scena: fisso dietro al contenuto, senza intercettare click. */
#scena, .segnaposto, .riserva { position: fixed; z-index: 0; inset: 0; width: 100vw; height: 100lvh; pointer-events: none; }
#scena { display: block; }
.segnaposto { z-index: 1; object-fit: cover; object-position: right center; }
.riserva img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: 0; transition: opacity 400ms; }
.riserva img.attiva { opacity: 1; }
.riserva .logo-svg { position: absolute; top: 14svh; right: 0; left: auto; width: auto; height: 72svh; transform: translateX(calc(-23.5vw + 50%)); }
.pista { position: relative; z-index: 2; }
.tappa { position: relative; display: block; padding: 24.3svh 0 8svh var(--page-gutter); }
.tappa .blocco { width: min(var(--column-width), calc(100vw - (2 * var(--page-gutter)))); opacity: var(--opacita-testo, 1); }
.tappa--hero { padding-top: 24.3svh; }
.tappa--final { pointer-events: none; }

.eyebrow { margin: 0 0 6px 12px; color: var(--violet-300); font-size: 20px; line-height: 28px; text-transform: uppercase; }
.section-heading { position: relative; width: 100%; margin-bottom: 40px; }
.section-heading h2, .section-heading .section-claim { position: relative; z-index: 1; }
.section-number {
    position: absolute;
    z-index: 0;
    top: 19px;
    left: -50px;
    height: 119px;
    margin: 0;
    color: transparent;
    font-size: 167px;
    font-weight: 600;
    line-height: 119px;
    letter-spacing: -3.34px;
    text-transform: uppercase;
    -webkit-text-stroke: 2px rgba(166, 141, 166, .3);
    paint-order: stroke fill;
    pointer-events: none;
}
.section-heading h1, .section-heading h2 { margin: 0; text-transform: uppercase; }
.title-lines, .claim-lines { display: flex; flex-direction: column; }
.title-lines { color: var(--pink); font-weight: 700; font-size: 70px; line-height: .8; letter-spacing: -1.4px; }
.section-heading--hero .title-lines { font-size: 125px; line-height: .8; letter-spacing: -2.5px; font-weight: 800; white-space: nowrap; }
.title-lines .tone-1 { color: var(--pink); }
.title-lines .tone-2 { color: var(--orange); }
.title-lines .tone-3 { color: var(--violet-400); }
.section-claim { display: flex; justify-content: flex-end; margin: 12px 0 0; text-align: right; text-transform: uppercase; }
.claim-lines { color: var(--violet-400); font-size: 24px; line-height: 1; letter-spacing: -.48px; }
.claim-lines .tone-1 { color: var(--pink); }
.claim-lines .tone-2 { color: var(--orange); }
.section-heading--hero { margin-bottom: 52px; }
.section-heading--hero h1 { margin-bottom: -53px; }
.section-heading--hero .section-claim { margin: 0; }
.section-heading--hero .claim-lines { font-size: 28px; line-height: 26px; letter-spacing: -.56px; }
.section-lead { width: 435px; max-width: 100%; margin: 0 0 19px; color: var(--white-100); font-size: 20px; font-weight: 700; line-height: 28px; letter-spacing: -.2px; }
.section-body { color: var(--white-200); font-size: 16px; line-height: 26px; }
.section-body p { margin: 0 0 12px; }
.section-body p:last-child { margin-bottom: 0; }
.section-body--hero { font-size: 18px; line-height: 28px; }
.section-body--hero p { margin-bottom: 12px; }

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
    padding: 8px 8px 8px 24px;
    border: 0;
    border-radius: 40px;
    color: var(--white-100);
    background: linear-gradient(270deg, var(--orange), var(--pink));
    box-shadow: var(--shadow);
    font: inherit;
    font-weight: 700;
    line-height: 24px;
    text-decoration: none;
    cursor: pointer;
}
.button__icon { width: 32px; height: 32px; border-radius: 50%; background: var(--white-100) url('../img/interfaccia/freccia.svg') center / 24px no-repeat; }
.button--muted { background: rgba(166, 141, 166, .3); }

.knowhow-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 32px 0 52px; }
.knowhow-cards article { min-height: 144px; padding: 18px 14px; border: 1px solid rgba(242, 237, 232, .18); border-radius: 12px; background: rgba(166, 141, 166, .12); }
.knowhow-cards h3 { margin: 0 0 12px; color: var(--white-100); font-size: 16px; line-height: 22px; }
.knowhow-cards p { margin: 0; font-size: 13px; line-height: 20px; }
.advantages-title, .section-closing { margin: 0 0 16px; color: var(--white-100); font-size: 18px; font-weight: 700; }
.advantages-list { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.advantages-list li { position: relative; padding-left: 22px; }
.advantages-list li::before { position: absolute; top: 8px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); content: ""; }
.sector-box { margin-top: 40px; overflow: hidden; border: 1px solid rgba(242, 237, 232, .16); border-radius: 16px; background: rgba(166, 141, 166, .12); }
.sector-box__tabs { display: grid; grid-template-columns: 1fr 1fr; background: rgba(166, 141, 166, .24); font-weight: 700; }
.sector-box__tabs span { padding: 14px 18px; }
.sector-box__tabs span:first-child { background: var(--white-100); color: var(--violet-700); }
.sector-box ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 12px 0; list-style: none; }
.sector-box li { padding: 6px 18px; font-size: 14px; line-height: 20px; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 52px; padding: 52px 40px; border-radius: 28px; background: rgba(110, 86, 110, .72); box-shadow: var(--shadow); backdrop-filter: blur(28px); }
.contact-form h2, .contact-form__message, .contact-form__privacy, .contact-form .form-message, .contact-form .button { grid-column: 1 / -1; }
.contact-form h2 { margin: 0 0 12px; color: var(--white-100); font-size: 20px; line-height: 28px; text-align: center; }
.contact-form label { display: grid; }
.contact-form label > span:first-child:not(.screen-reader-text) { font-size: 14px; }
.contact-form input, .contact-form textarea { width: 100%; border: 2px solid var(--white-100); border-radius: 5px; padding: 13px 14px; color: var(--white-100); background: transparent; font: inherit; }
.contact-form input { height: 52px; }
.contact-form textarea { min-height: 153px; resize: vertical; }
.contact-form__privacy { display: flex !important; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 22px; }
.contact-form__privacy input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; }
.contact-form__honeypot { position: absolute; left: -10000px; }
.contact-form .button { justify-self: center; margin-top: 0; padding-right: 24px; }
.form-message { margin: 0; padding: 12px; border-radius: 8px; }
.form-message--success { background: rgba(0, 130, 80, .3); }
.form-message--error { background: rgba(220, 30, 70, .3); }

/* Footer e pagine interne. */
.site-footer { position: relative; z-index: 2; display: flex; height: 800px; flex-direction: column; justify-content: flex-end; gap: 100px; padding: 100px 120px 120px; background: linear-gradient(180deg, rgba(76, 55, 76, 0) 9.35%, rgba(76, 55, 76, .6) 100%); }
.site-footer::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: rgba(76, 55, 76, .01);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    -webkit-mask-image: linear-gradient(180deg, transparent 4.85%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 4.85%, #000 100%);
    content: "";
    pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }
.footer-logo { display: flex; width: min(100%, 396px); flex: 0 0 auto; flex-direction: column; align-items: center; gap: 35px; }
.footer-logo__main { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 24px; }
.footer-logo .footer-logo__symbol { width: 52px; }
.footer-logo .footer-logo__wordmark { width: 396px; }
.footer-logo .footer-logo__payoff { width: 181px; }
.site-footer__content { display: grid; width: 100%; height: 228px; flex: 0 0 228px; grid-template-columns: 415px 239px 239px; gap: 100px; align-items: stretch; }
.site-footer__brand { display: flex; flex-direction: column; justify-content: space-between; }
.site-footer__brand-copy { display: flex; flex-direction: column; gap: 12px; }
.site-footer__brand h2, .site-footer__brand p { margin: 0; }
.site-footer__brand h2 { margin-bottom: 8px; color: var(--white-200); font-size: 20px; line-height: 28px; letter-spacing: -.2px; }
.site-footer__brand p { max-width: 415px; font-size: 14px; line-height: 22px; }
.site-footer__company { font-size: 14px !important; line-height: 22px !important; }
.site-footer__column { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.site-footer__column h2 { margin: 0 0 20px; color: var(--white-100); font-size: 20px; line-height: 28px; letter-spacing: -.2px; }
.site-footer__column p { margin: 0; font-size: 14px; line-height: 22px; }
.site-footer__column a { text-decoration: none; }
.footer-contact-list { display: flex; flex-direction: column; gap: 6px; }
.footer-contact { display: flex; min-height: 32px; align-items: center; gap: 8px; margin: 0; font-size: 14px; line-height: 22px; }
.footer-contact--email { margin-left: 21px; }
.footer-contact__icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; box-shadow: var(--shadow); }
.footer-contact__icon--orange { background: var(--orange); }
.footer-contact__icon--pink { background: var(--pink); }
.footer-contact__icon img { width: 20px; height: 20px; }
.footer-socials { display: flex; align-items: center; gap: 12px; }
.footer-social { position: relative; display: block; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; }
.footer-social--linkedin img { position: absolute; top: -10px; left: -18px; width: 76px; max-width: none; height: 76px; }
.footer-social--facebook { display: grid; place-items: center; background: rgba(166, 141, 166, .3); box-shadow: var(--shadow); }
.footer-social--facebook img { width: 20px; height: 20px; }
.site-footer__brochure > div { display: flex; flex-direction: column; gap: 0; }
.site-footer__brochure .button { height: 48px; margin-top: 0; white-space: nowrap; }
.site-footer__legal { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding-top: 28px; border-top: 1px solid rgba(242, 237, 232, .12); font-size: 14px; line-height: 22px; }
.companies-page, .contact-page, .legal-page, .error-page { position: relative; z-index: 2; width: min(calc(100% - (2 * var(--page-gutter))), var(--content-width)); min-height: 100svh; margin-inline: auto; padding-top: 190px; padding-bottom: 120px; }
.hero--companies h1, .contact-page h1, .legal-page h1, .error-page h1 { font-size: clamp(56px, 7vw, 100px); line-height: .85; text-transform: uppercase; }
.companies-intro { min-height: 45vh; display: grid; place-items: center; text-align: center; }
.expertise { padding-block: 100px; }
.expertise-table-wrap { margin-top: 80px; overflow-x: auto; }
.expertise-table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 13px; }
.expertise-table td { padding: 12px 16px; border-bottom: 1px solid rgba(242, 237, 232, .11); }
.contact-page { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.contact-list { display: grid; gap: 12px; margin-top: 36px; font-style: normal; }
.contact-list > * { width: fit-content; padding: 10px 18px; border-radius: 999px; background: rgba(166, 141, 166, .35); text-decoration: none; }
.legal-page article { max-width: 800px; }

@media (max-width: 1023px) {
    :root { --page-gutter: 32px; }
    .site-header { min-height: 150px; padding: 22px 24px; }
    .site-logo { width: 230px; height: auto; }
    .menu-toggle { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 18px; border: 1px solid rgba(242,237,232,.35); border-radius: 999px; color: inherit; background: rgba(76,55,76,.8); font: inherit; }
    .main-navigation { position: absolute; top: 76px; right: 24px; display: none; padding: 12px; border-radius: 18px; background: var(--violet-800); box-shadow: var(--shadow); }
    .main-navigation.is-open { display: block; }
    .menu-list { flex-direction: column; }
    .tappa { padding-left: var(--page-gutter); padding-right: var(--page-gutter); padding-bottom: 8svh; }
    .tappa .blocco { width: min(589px, 100%); }
    .riserva .logo-svg { top: -13.5svh; right: auto; left: 50%; transform: translateX(-50%); }
    .site-footer { height: auto; gap: 64px; padding: 130px var(--page-gutter) 80px; }
    .site-footer__content { width: 100%; flex: none; grid-template-columns: 1fr; gap: 48px; }
    .site-footer__brand, .site-footer__column { min-height: auto; gap: 36px; }
    .site-footer__legal { width: 100%; }
    .contact-page { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    :root { --page-gutter: 20px; }
    .site-logo { width: 190px; margin-top: -12px; }
    .tappa { padding-top: 52svh; }
    .tappa .blocco { opacity: var(--opacita-testo, 1); }
    .eyebrow { margin-left: 0; font-size: 14px; line-height: 22px; }
    .title-lines { font-size: clamp(38px, 11.5vw, 52px); line-height: .82; letter-spacing: -1.2px; white-space: normal; }
    .section-heading--hero .title-lines { font-size: clamp(48px, 16vw, 70px); }
    .section-heading--hero h1 { margin-bottom: -22px; }
    .claim-lines, .section-heading--hero .claim-lines { font-size: 18px; line-height: 18px; }
    .section-heading { margin-bottom: 30px; }
    .section-number { top: 8px; left: -12px; height: 76px; font-size: 104px; line-height: 76px; -webkit-text-stroke-width: 1.5px; }
    .section-heading--hero { margin-bottom: 42px; }
    .section-lead { font-size: 18px; line-height: 26px; }
    .section-body, .section-body--hero { font-size: 15px; line-height: 24px; }
    .knowhow-cards { grid-template-columns: 1fr; }
    .sector-box ul { grid-template-columns: 1fr; }
    .contact-form { grid-template-columns: 1fr; padding: 32px 20px; }
    .contact-form > * { grid-column: 1 !important; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .riserva img { transition: none; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
