/* Aurex Solutions — "Servizio impeccabile". Chiaro, ordinato, navy e oro. */

@font-face { font-family: 'Montserrat'; src: url('/assets/fonts/montserrat.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #F7F6F2; --paper-2: #EFEDE6; --white: #FFFFFF; --navy: #001E54; --navy-2: #0B2B66; --ink: #141B2D; --muted: #5A6275;
  --gold: #E4B831; --gold-d: #C69C2C; --line: rgba(0, 30, 84, .12);
  --head: 'Montserrat', system-ui, sans-serif; --text: 'Inter', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px); --wrap: min(1240px, 100% - 2 * var(--gutter));
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: clamp(4.5rem, 9vw, 8rem);
  --radius: 6px; --ease: cubic-bezier(.16, 1, .3, 1); --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body { min-height: 100dvh; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { text-wrap: balance; } p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
:target { scroll-margin-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
:focus-visible { outline: 2px solid var(--gold-d); outline-offset: 3px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding-block: var(--s6); }
.section--tint { background: var(--paper-2); }
.label { font: 700 .76rem/1.2 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-d); margin-bottom: var(--s2); }
.label--light { color: var(--gold); }
.h2 { font: 800 clamp(2rem, 4.4vw, 3.4rem)/1.08 var(--head); letter-spacing: -.02em; color: var(--navy); max-width: 20ch; margin-bottom: var(--s4); }
.h2--light { color: var(--white); }
.h1-inner { font: 800 clamp(2.2rem, 5vw, 3.6rem)/1.1 var(--head); color: var(--navy); margin-bottom: var(--s4); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--gold); color: var(--navy); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 16px; }
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .8rem 1.4rem; border-radius: var(--radius); font: 700 .9rem/1 var(--head); letter-spacing: .02em; text-decoration: none; border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline-light { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: .8rem; }
.btn--lg { min-height: 54px; padding: 1rem 1.7rem; font-size: .95rem; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } .btn--gold:hover { background: var(--navy); color: var(--white); } .btn--outline:hover { background: var(--navy); color: var(--white); } .btn--outline-light:hover { border-color: var(--gold); color: var(--gold); } }
.link-arrow { font: 700 .85rem/1.2 var(--head); color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* Intestazione */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; gap: var(--s3); padding-inline: var(--gutter); background: rgba(247, 246, 242, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; }
.brand__name { font: 800 1.02rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.brand__name span { color: var(--gold-d); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.8rem); }
.nav a:not(.btn) { font: 600 .86rem/1 var(--head); text-decoration: none; color: var(--navy); }
@media (hover: hover) { .nav a:not(.btn):hover { color: var(--gold-d); } }
.nav__lang { border: 1.5px solid var(--navy); padding: .4rem .55rem; border-radius: var(--radius); }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--navy); transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; } .nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.lang-quick { display: none; }
@media (max-width: 899px) {
  .nav-toggle { display: block; z-index: 2; }
  .lang-quick { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 .7rem; border: 1.5px solid var(--navy); border-radius: var(--radius); color: var(--navy); font: 700 .8rem/1 var(--head); letter-spacing: .1em; text-decoration: none; z-index: 2; }
  .nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: var(--s3); background: var(--paper); visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav a:not(.btn) { font-size: 1.6rem; font-weight: 800; }
  .nav__lang { display: none; }
}

/* Immagini provvisorie (finché non arrivano le foto) */
.ph { background: radial-gradient(circle at 75% 30%, rgba(228, 184, 49, .35), transparent 45%), linear-gradient(135deg, #DCE3EF, #F2EEE3 60%, #E9E3D3); position: relative; }
.ph::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(0, 30, 84, .05) 0 2px, transparent 2px 14px); }
.ph--logistics { background: radial-gradient(circle at 20% 70%, rgba(228, 184, 49, .3), transparent 45%), linear-gradient(135deg, #E6E9EF, #D5DCE8); }
.ph--cleaning { background: radial-gradient(circle at 60% 20%, rgba(255, 255, 255, .9), transparent 50%), linear-gradient(135deg, #EEF0F3, #E4E0D4); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--s6); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { font: 800 clamp(2.4rem, 5.6vw, 4.6rem)/1.04 var(--head); letter-spacing: -.025em; color: var(--navy); margin-bottom: var(--s3); }
.hero__title span { display: block; color: var(--gold-d); }
.hero__sub { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 52ch; margin-bottom: var(--s4); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s2); }
.hero__media { position: relative; }
.hero__img, .hero__media .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.hero__badge { position: absolute; left: clamp(-24px, -2vw, -12px); bottom: 10%; display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 .6rem; padding: 1rem 1.2rem; background: var(--navy); color: var(--white); border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 30, 84, .25); }
.hero__badge .ico { width: 34px; height: 34px; color: var(--gold); grid-row: span 2; }
.hero__badge strong { font: 800 1.5rem/1 var(--head); }
.hero__badge span { font: 600 .75rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 899px) { .hero__grid { grid-template-columns: 1fr; } .hero__img, .hero__media .ph { aspect-ratio: 16 / 11; } .hero__badge { left: 12px; bottom: 12px; } }

/* Tempi: il cronometro */
.times { background: var(--navy); color: var(--white); padding-block: var(--s6); position: relative; overflow: hidden; }
.times::before { content: ''; position: absolute; right: -12vw; top: -20%; width: 55vw; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(228, 184, 49, .18); box-shadow: 0 0 0 60px rgba(228, 184, 49, .03), 0 0 0 140px rgba(228, 184, 49, .02); pointer-events: none; }
.times__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4) var(--s3); position: relative; }
.time { display: grid; align-content: start; gap: .4rem; }
.dial { width: 92px; height: 92px; margin-bottom: .6rem; transform: rotate(-90deg); }
.dial__track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 6; }
.dial__fill { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: calc(var(--len) * (1 - var(--fill))); }
.js .time .dial__fill { stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.js .time.is-in .dial__fill { stroke-dashoffset: calc(var(--len) * (1 - var(--fill))); }
.dial__ticks line { stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; }
.time__big { font: 800 clamp(2.6rem, 5vw, 4rem)/1 var(--head); letter-spacing: -.02em; color: var(--gold); font-variant-numeric: tabular-nums; }
.time__big small { font-size: .45em; margin-left: .15em; color: var(--white); }
.time__big--word { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.25; }
.time__icon { width: 92px; height: 92px; margin-bottom: .6rem; display: grid; place-items: center; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .14); color: var(--gold); }
.time__icon .ico { width: 36px; height: 36px; }
.hero__img { object-position: 78% 50%; }
.sector__media .sector__img { object-position: 60% 50%; }
.time__text { color: rgba(255, 255, 255, .82); max-width: 24ch; }
.times__note { margin-top: var(--s4); font-size: .85rem; color: rgba(255, 255, 255, .6); position: relative; }
@media (max-width: 899px) { .times__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .times__grid { gap: var(--s4) var(--s2); } .dial, .time__icon { width: 68px; height: 68px; } .time__icon .ico { width: 28px; height: 28px; } .time__big { font-size: 2.3rem; } .time__big--word { font-size: 1.55rem; } .time__text { font-size: .9rem; } }

/* Settori */
.sectors__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.sector { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.sector--big:first-child { grid-column: 1 / -1; flex-direction: row; }
.sector--big:first-child .sector__media { flex: 1.1; }
.sector--big:first-child .sector__body { flex: 1; align-self: center; }
.sector__media .sector__img, .sector__media .ph { width: 100%; height: 100%; min-height: 220px; aspect-ratio: 16 / 9; object-fit: cover; }
.sector__body { padding: clamp(1.4rem, 2.5vw, 2.2rem); display: grid; gap: .8rem; align-content: start; }
.sector__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(228, 184, 49, .18); color: var(--navy); }
.sector__icon .ico { width: 24px; height: 24px; }
.sector__title { font: 800 1.4rem/1.15 var(--head); color: var(--navy); }
.sector p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font: 600 .78rem/1 var(--head); padding: .45rem .65rem; border-radius: 99px; background: var(--paper); color: var(--navy); border: 1px solid var(--line); }
.sector .link-arrow { justify-self: start; margin-top: .3rem; }
@media (max-width: 899px) { .sectors__list { grid-template-columns: 1fr; } .sector--big:first-child { flex-direction: column; } }

/* Come lavoriamo */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 26px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-d)); opacity: .5; }
.step { position: relative; background: var(--paper-2); padding-top: 0; }
.step__num { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--gold); font: 800 1rem/1 var(--head); margin-bottom: var(--s2); position: relative; }
.step h3 { font: 800 1.15rem/1.2 var(--head); color: var(--navy); margin-bottom: .4rem; }
.step p { color: var(--muted); }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; } .steps::before { left: 26px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; } .step { display: grid; grid-template-columns: 54px 1fr; gap: 0 1rem; } .step__num { grid-row: span 2; margin: 0; } }

/* Partner */
.partners__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s3); align-items: center; }
.partners__grid img { max-height: 64px; width: auto; margin-inline: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
@media (hover: hover) { .partners__grid img:hover { filter: none; opacity: 1; } }

/* Perché noi */
.why__layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s5); }
.why__list li { padding-block: var(--s3); border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: var(--s3); }
.why__list h3 { font: 800 1.1rem/1.3 var(--head); color: var(--navy); }
.why__list p { color: var(--muted); }
@media (max-width: 899px) { .why__layout { grid-template-columns: 1fr; gap: 0; } .why__list li { grid-template-columns: 1fr; gap: .3rem; } }

/* FAQ */
.faq__layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s5); }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s3); padding-block: 1.15rem; font: 700 1.02rem/1.4 var(--head); color: var(--navy); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: '+'; color: var(--gold-d); font-size: 1.5rem; line-height: 1; transition: transform .3s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { color: var(--muted); padding-bottom: 1.15rem; max-width: 62ch; }
@media (max-width: 899px) { .faq__layout { grid-template-columns: 1fr; gap: 0; } }

/* Contatti */
.contact { background: var(--navy); color: var(--white); }
.contact__layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--s5); align-items: start; }
.contact__sub { color: rgba(255, 255, 255, .82); font-size: 1.08rem; margin-top: -1rem; }
.contact__direct { margin-top: var(--s4); font: 700 .76rem/1.2 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.contact__links { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.form { background: var(--white); color: var(--ink); border-radius: 12px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field--full, .form__actions { grid-column: 1 / -1; }
.field label { font: 600 .85rem/1.3 var(--head); color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem .9rem; border: 1.5px solid #D5D9E2; border-radius: var(--radius); background: var(--paper); transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-d); outline: none; background: var(--white); }
.field [aria-invalid="true"] { border-color: #C0392B; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--navy); flex: none; }
.check a { color: var(--navy); }
.form__status { margin-top: var(--s3); font-weight: 600; }
.form__status:empty { display: none; }
.form__status[data-state="ok"] { color: var(--navy); background: rgba(228, 184, 49, .18); padding: var(--s3); border-radius: var(--radius); }
.form__status[data-state="error"] { color: #C0392B; }
.form .btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 899px) { .contact__layout { grid-template-columns: 1fr; gap: var(--s4); } }
@media (max-width: 599px) { .form__grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #00163F; color: rgba(255, 255, 255, .8); padding-block: var(--s5) var(--s4); }
.site-footer__top { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s4); align-items: center; }
.site-footer__logo { width: 100px; }
.site-footer__claim { max-width: 46ch; font-size: .92rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.site-footer__links a { display: inline-flex; align-items: center; gap: .45rem; font: 600 .86rem/1 var(--head); color: var(--white); text-decoration: none; }
@media (hover: hover) { .site-footer__links a:hover { color: var(--gold); } }
.site-footer__legal { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); font-size: .84rem; }
.site-footer__legal a { color: var(--white); }
@media (max-width: 899px) { .site-footer__top { grid-template-columns: 1fr; } }

/* Pulsante fisso su telefono */
.sticky-cta { display: none; }
@media (max-width: 899px) {
  .sticky-cta { display: flex; position: fixed; z-index: 40; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); box-shadow: 0 10px 30px rgba(0, 30, 84, .3); transition: transform .35s var(--ease), opacity .35s; }
  .sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  body { padding-bottom: 88px; }
}

/* Pagine interne */
.inner { padding-block: var(--s5) var(--s6); min-height: 60vh; }
.legal { max-width: 780px; }
.legal h2 { font: 800 1.3rem/1.2 var(--head); color: var(--navy); margin: var(--s4) 0 var(--s2); }
.legal p, .legal li { color: var(--ink); margin-bottom: var(--s2); }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--navy); }
.legal__meta { color: var(--muted) !important; font-size: .88rem; }
.legal__table { overflow-x: auto; margin-bottom: var(--s3); border: 1px solid var(--line); border-radius: var(--radius); }
.legal__table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.legal__table th { font: 700 .75rem/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-d); }
@media (max-width: 599px) {
  .legal__table { border: 0; overflow: visible; } .legal__table table { min-width: 0; }
  .legal__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal__table tr { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; margin-bottom: .8rem; }
  .legal__table td { display: block; border: 0; padding: .15rem 0; }
  .legal__table td:first-child { color: var(--navy); font-weight: 700; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
