/* ==========================================================================
   iTec — stile del sito statico (conversione da WordPress / tema Sydney)
   Palette originale: blu #003283, navy #00102E, ambra #F0AB00
   ========================================================================== */

:root {
  --blue: #003283;
  --blue-700: #002566;
  --navy: #00102e;
  --amber: #f0ab00;
  --amber-700: #d49600;
  --text: #3d4451;
  --muted: #5b6473;
  --light: #f4f5f7;
  --grey: #e2e2e2;
  --line: #d9dde6;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(0, 16, 46, 0.10);
  --shadow-sm: 0 4px 14px rgba(0, 16, 46, 0.08);
  --header-h: 76px;
  --container: 1140px;
  --gutter: 20px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Font (Roboto, font variabile ospitato sul sito: nessuna richiesta a terzi) ---------- */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Reset leggero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
main p a:not(.btn), main li a:not(.btn), main address a, main small a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--amber-700); }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; color: var(--blue); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--amber); color: var(--navy); padding: .5rem 1rem; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 50, 131, 0.08);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 16, 46, 0.08); }
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 54px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.nav-list a {
  position: relative; display: inline-block; padding: .4rem 0;
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--blue);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.lang-switch {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
}
.lang-switch a, .lang-switch span { padding: .3rem .7rem; border-radius: 999px; color: var(--muted); }
.lang-switch [aria-current="true"] { background: var(--blue); color: var(--white); }
.nav-toggle {
  display: none; appearance: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--blue);
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blue); padding: .5rem 0 1.25rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    box-shadow: 0 20px 40px rgba(0, 16, 46, .35);
  }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: .9rem var(--gutter); color: var(--white); font-size: .95rem; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { background: rgba(255, 255, 255, .08); box-shadow: inset 4px 0 0 var(--amber); }
  .lang-switch { margin: 1rem var(--gutter) 0; align-self: flex-start; border-color: rgba(255, 255, 255, .3); }
  .lang-switch a, .lang-switch span { color: rgba(255, 255, 255, .8); }
  .lang-switch [aria-current="true"] { background: var(--amber); color: var(--navy); }
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 2.1rem; border-radius: 999px; border: 2px solid var(--blue);
  background: var(--blue); color: var(--white);
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; line-height: 1.2;
  cursor: pointer; transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--amber); border-color: var(--amber); color: var(--white); transform: translateY(-1px); }
.btn--amber { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.btn--amber:hover { background: var(--white); border-color: var(--white); color: var(--blue); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--blue); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white); text-align: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid; place-items: center;
  background: var(--navy);
}
.hero-slide {
  position: absolute; inset: 0; background-position: center; background-size: cover;
  opacity: 0; transition: opacity 1.4s ease-in-out; transform: scale(1.04);
}
.hero-slide.is-active { opacity: 1; animation: heroZoom 9s linear forwards; }
.hero-slide--1 { background-image: url("../img/hero-1-960.webp"); }
.hero.is-ready .hero-slide--2 { background-image: url("../img/hero-2-960.webp"); }
@media (min-width: 961px) {
  .hero-slide--1 { background-image: url("../img/hero-1-1920.webp"); }
  .hero.is-ready .hero-slide--2 { background-image: url("../img/hero-2-1920.webp"); }
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 16, 46, .62) 0%, rgba(0, 16, 46, .52) 45%, rgba(0, 16, 46, .80) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 6rem var(--gutter) 7rem; max-width: 860px; margin-inline: auto; }
.hero-caption { display: none; }
.hero-caption.is-active { display: block; animation: fadeUp .9s var(--ease) both; }
.hero-kicker {
  display: inline-block; margin-bottom: 1.2rem; padding: .35rem .9rem; border-radius: 999px;
  background: rgba(240, 171, 0, .18); border: 1px solid rgba(240, 171, 0, .6); color: var(--amber);
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.hero h1, .hero .hero-title { color: var(--white); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; font-size: clamp(2.2rem, 6vw, 4.25rem); margin: 0 0 .5em; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.hero .h1-sub { display: block; margin-top: .6rem; font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.hero p { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255, 255, 255, .9); max-width: 640px; margin: 0 auto 2rem; }
.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 2rem; display: flex; justify-content: center; gap: .6rem; }
.hero-dots button { position: relative; width: 28px; height: 28px; border: 0; background: transparent; padding: 0; cursor: pointer; }
.hero-dots button::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); transition: background .25s, transform .25s;
}
.hero-dots button[aria-current="true"]::before { background: var(--amber); border-color: var(--amber); transform: scale(1.15); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Banner pagine interne ---------- */
.page-hero {
  position: relative; color: var(--white); text-align: center; overflow: hidden;
  background-color: var(--navy); background-image: url("../img/header-bg-960.webp");
  background-position: center 30%; background-size: cover; background-repeat: no-repeat;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}
@media (min-width: 961px) { .page-hero { background-image: url("../img/header-bg-1920.webp"); } }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0, 16, 46, .88) 0%, rgba(0, 50, 131, .70) 60%, rgba(0, 50, 131, .45) 100%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .35em; }
.page-hero p { max-width: 720px; margin: 0 auto; font-size: 1.1rem; color: rgba(255, 255, 255, .88); }
.breadcrumb { display: inline-flex; gap: .5rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 1rem; }
.breadcrumb a { color: var(--amber); }

/* ---------- Sezioni ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--light { background: var(--light); }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .88); }
.section--photo {
  position: relative; color: var(--white);
  background: linear-gradient(rgba(0, 16, 46, .84), rgba(0, 50, 131, .80)), url("../img/piacenza-bg-960.webp") center / cover no-repeat;
}
@media (min-width: 961px) {
  .section--photo { background-image: linear-gradient(rgba(0, 16, 46, .84), rgba(0, 50, 131, .80)), url("../img/piacenza-bg-1400.webp"); }
}
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  .section--photo { background-attachment: scroll, fixed; }
}
.section--photo h2, .section--photo h3, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--photo .divider, .section--navy .divider { background: var(--amber); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 1rem 0 0; }
.section--photo .section-head p, .section--navy .section-head p { color: rgba(255, 255, 255, .85); }
.divider { width: 84px; height: 3px; margin: .75rem auto 0; background: var(--amber); border-radius: 2px; }
.divider--left { margin-left: 0; }
.lead { font-size: 1.15rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- Icon box / feature ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature { text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature--plain { background: transparent; box-shadow: none; padding: 1rem; }
.feature--plain:hover { transform: none; }
.feature-icon {
  width: 72px; height: 72px; margin: 0 auto 1.25rem; display: grid; place-items: center;
  border-radius: 20px; background: rgba(240, 171, 0, .12); color: var(--amber);
}
.feature-icon svg { width: 36px; height: 36px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.feature h4, .feature .feature-label { color: var(--blue); margin: 0 0 .4rem; font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.2; }
.feature p { color: var(--muted); margin: 0; }
.feature a:not(.btn) { font-weight: 600; }

/* ---------- Griglie a due colonne ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split figure { margin: 0; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split .plain-img { box-shadow: none; border-radius: 0; }
.split h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); text-transform: uppercase; letter-spacing: .04em; }
.split h3 + .divider { margin-bottom: 1.5rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* ---------- Card / pannelli ---------- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.75rem); }
.card > :last-child > p:last-child, .card > p:last-child { margin-bottom: 0; }
.glass {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); font-size: 1.1rem;
}
.glass p:last-child { margin-bottom: 0; }
.narrow { max-width: 900px; margin-inline: auto; }

/* ---------- Prodotti ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.product { display: flex; flex-direction: column; }
.product-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.product-head .feature-icon { margin: 0; width: 56px; height: 56px; border-radius: 14px; flex: none; }
.product-head .feature-icon svg { width: 28px; height: 28px; }
.product-head h3 { margin: 0; text-transform: uppercase; letter-spacing: .06em; font-size: 1.2rem; }
.product-logo { height: 52px; width: auto; align-self: flex-start; margin-bottom: 1.5rem; }
.product ul { color: var(--text); }
.product ul li { margin-bottom: .35rem; }
.product .btn { align-self: flex-start; margin-top: auto; }
.product h4 { margin-top: 1rem; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.contact-grid address { font-style: normal; color: var(--muted); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--grey); }
.map-wrap { position: relative; }
.map-wrap a { display: block; }
.map-wrap img { width: 100%; height: auto; display: block; transition: transform .4s var(--ease); }
.map-wrap a:hover img { transform: scale(1.02); }
.map-pin { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; transform: translate(-50%, -92%); filter: drop-shadow(0 6px 10px rgba(0, 16, 46, .35)); pointer-events: none; }
.map-credit { text-align: center; font-size: .78rem; color: var(--muted); margin: .6rem 0 0; }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem; }

/* ---------- Jobs ---------- */
.poster { margin: 0; text-align: center; }
.poster a { display: inline-block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.poster a:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 24px 48px rgba(0, 16, 46, .2); }
.poster figcaption { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin: 2.5rem 0; }

/* ---------- Pagine legali ---------- */
.legal { max-width: 820px; margin-inline: auto; }
.legal-meta { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal ul li { margin-bottom: .4rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0 1.5rem; }
.legal th, .legal td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--blue); font-weight: 700; }
.cv-box { text-align: center; }
.cv-box .btn { margin: .5rem 0 1rem; }
.cv-box small { display: block; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq-item { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 0 1.25rem; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative; font-weight: 700; color: var(--blue); font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(240, 171, 0, .15); color: var(--amber-700); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 1.1rem; color: var(--text); }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta p { font-size: 1.25rem; color: var(--muted); max-width: 640px; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .75); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 48px; width: auto; background: var(--white); padding: 6px 10px; border-radius: 10px; margin-bottom: 1.25rem; }
.site-footer .footer-title { color: var(--white); margin-bottom: 1rem; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: var(--amber); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-list address { font-style: normal; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 1.5rem; font-size: .85rem; color: rgba(255, 255, 255, .55); }

/* ---------- Torna su ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30;
  width: 46px; height: 46px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--blue); color: var(--white); box-shadow: var(--shadow);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--amber); }
.to-top svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pagina 404 ---------- */
.notfound { text-align: center; padding: clamp(5rem, 14vw, 9rem) 0; }
.notfound .code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 700; color: var(--grey); line-height: 1; margin-bottom: 1rem; }

/* ---------- Animazioni di ingresso ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-slide { transition: none; }
}
