/* IGEA Srls — sito statico */

@font-face {
  font-family: "Abel";
  src: url("./fonts/abel-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("./fonts/bebasneue-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #ffffff;
  --foreground: #1f2a44;
  --muted: #f5f7fa;
  --muted-foreground: #6b7689;
  --border: #e3e8f0;
  --primary: #3a8dde;
  --primary-deep: #1f5fa0;
  --primary-soft: #e6f0fb;
  --primary-foreground: #ffffff;
  --accent: #f5c945;
  --accent-foreground: #4a3a08;
  --secondary: #f5f7fa;
  --shadow-soft: 0 8px 24px -8px rgba(58, 141, 222, 0.35);
  --shadow-card: 0 4px 16px -4px rgba(58, 141, 222, 0.18);
  --shadow-cta: 0 10px 30px -10px rgba(245, 201, 69, 0.55);
  --gradient-hero: linear-gradient(135deg, var(--primary-soft) 0%, #ffffff 60%);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  --radius: 0.75rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Abel", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.05;
  font-weight: 400;
}

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

/* ========== HEADER ========== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  width: 100%;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  max-width: 1152px; margin: 0 auto; padding: 0 1rem;
}
@media (min-width: 640px) { .header-inner { padding: 0 1.5rem; } }
.brand { display: flex; align-items: baseline; gap: .5rem; }
.brand-name { font-family: "Bebas Neue", sans-serif; font-size: 1.6rem; color: var(--primary); letter-spacing: .04em; }
.brand-suffix { font-size: .8rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted-foreground); }
.nav-desktop { display: none; align-items: center; gap: 1.75rem; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }
.nav-link { font-size: .9rem; font-weight: 600; color: rgba(31,42,68,0.8); transition: color .15s; }
.nav-link:hover { color: var(--primary); }
.btn-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground);
  font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-soft);
  transition: transform .15s;
}
.btn-pill:hover { transform: scale(1.03); }
.btn-pill svg { width: 16px; height: 16px; }
.menu-toggle {
  display: inline-flex; padding: .5rem; background: transparent; border: 0; cursor: pointer; color: var(--foreground);
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 24px; height: 24px; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
}
.nav-mobile.open { display: block; }
.nav-mobile-inner {
  display: flex; flex-direction: column; gap: .25rem;
  max-width: 1152px; margin: 0 auto; padding: .75rem 1rem;
}
.nav-mobile a {
  padding: .6rem .75rem; border-radius: .5rem;
  font-size: 1rem; font-weight: 500; color: rgba(31,42,68,0.9);
}
.nav-mobile a:hover { background: var(--muted); }
.nav-mobile .btn-pill {
  margin-top: .5rem; justify-content: center; padding: .65rem 1rem; font-size: 1rem;
}

/* ========== HERO ========== */
.hero { background: var(--gradient-hero); position: relative; overflow: hidden; }
.hero-inner {
  display: grid; gap: 2.5rem; align-items: center;
  max-width: 1152px; margin: 0 auto;
  padding: 4rem 1rem;
}
@media (min-width: 640px) { .hero-inner { padding: 4rem 1.5rem; } }
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; padding: 6rem 1.5rem; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(58,141,222,0.25);
  background: rgba(255,255,255,0.7);
  border-radius: 999px; padding: .25rem .8rem;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--primary);
}
.eyebrow svg { width: 14px; height: 14px; }
.hero h1 {
  margin-top: 1.25rem; font-size: clamp(3rem, 7vw, 4.5rem); color: var(--foreground);
}
.hero h1 .accent { color: var(--primary); }
.hero p.lead {
  margin-top: 1.25rem; max-width: 560px; font-size: 1.125rem; color: rgba(31,42,68,0.8);
}
.cta-row { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 480px) { .cta-row { flex-direction: row; } }
.btn-primary, .btn-accent {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  transition: transform .15s;
}
.btn-primary {
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}
.btn-accent {
  background: var(--accent); color: var(--accent-foreground);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover, .btn-accent:hover { transform: scale(1.03); }
.btn-primary svg, .btn-accent svg { width: 20px; height: 20px; }
.hero-note { margin-top: 1rem; font-size: .9rem; color: var(--muted-foreground); }
.hero-note strong { color: var(--foreground); }
.hero-image-wrap { position: relative; }
.hero-image-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(58,141,222,0.15); border-radius: 50%; filter: blur(60px); z-index: 0;
}
.hero-image-wrap img {
  position: relative; z-index: 1;
  margin: 0 auto; max-width: 28rem; width: 100%;
  filter: drop-shadow(0 20px 25px rgba(0,0,0,.15));
}

/* ========== SECTIONS ========== */
section { scroll-margin-top: 80px; }
.section { padding: 5rem 0; }
.section-eyebrow {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--primary);
}
.section-title {
  margin-top: .75rem; font-size: clamp(2rem, 4.5vw, 3rem); color: var(--foreground);
}
.section-lead { margin-top: 1rem; font-size: 1.125rem; color: rgba(31,42,68,0.8); }

/* ABOUT */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 2fr 3fr; } }
.about-grid p + p { margin-top: 1rem; }
.about-grid p { font-size: 1.125rem; color: rgba(31,42,68,0.8); }

/* SERVICES */
.services { background: rgba(245,247,250,0.6); }
.center { text-align: center; }
.center .section-lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.cards-3 { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: .75rem;
  background: rgba(58,141,222,0.1); color: var(--primary);
  transition: background .2s, color .2s;
}
.card:hover .card-icon { background: var(--primary); color: var(--primary-foreground); }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-top: 1.25rem; font-size: 1.5rem; color: var(--foreground); }
.card p { margin-top: .75rem; color: rgba(31,42,68,0.75); }

/* WHY US */
.cards-4 { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card-center { text-align: center; padding: 1.5rem; background: var(--background); border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow-card); }
.card-center .icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 999px;
  background: rgba(245,201,69,0.3); color: var(--primary); margin-bottom: 1rem;
}
.card-center .icon-circle svg { width: 28px; height: 28px; }
.card-center h3 { font-size: 1.25rem; }
.card-center p { margin-top: .5rem; font-size: .9rem; color: rgba(31,42,68,0.75); }

/* CONTACT */
.contact-card {
  background: var(--gradient-primary);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(58,141,222,0.15);
  overflow: hidden;
  color: var(--primary-foreground);
}
@media (min-width: 640px) { .contact-card { padding: 3rem; } }
.contact-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card .section-eyebrow { color: rgba(255,255,255,0.85); }
.contact-card .section-title { color: var(--primary-foreground); }
.contact-card .lead { margin-top: 1rem; font-size: 1.125rem; color: rgba(255,255,255,0.92); max-width: 28rem; }
.contact-info { margin-top: 1.5rem; list-style: none; padding: 0; }
.contact-info li { display: flex; align-items: flex-start; gap: .75rem; margin-top: .75rem; color: rgba(255,255,255,0.95); }
.contact-info li:first-child { margin-top: 0; }
.contact-info svg { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.contact-info a:hover { text-decoration: underline; }

.cta-stack { display: flex; flex-direction: column; gap: 1rem; }
.cta-block {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem; border-radius: 1rem; box-shadow: var(--shadow-soft);
  transition: transform .15s;
}
.cta-block:hover { transform: scale(1.02); }
.cta-block.bg-white { background: var(--background); color: var(--foreground); }
.cta-block.bg-accent { background: var(--accent); color: var(--accent-foreground); box-shadow: var(--shadow-cta); }
.cta-block-left { display: flex; align-items: center; gap: 1rem; }
.cta-icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: .75rem;
}
.cta-block.bg-white .cta-icon-box { background: rgba(58,141,222,0.1); color: var(--primary); }
.cta-block.bg-accent .cta-icon-box { background: rgba(74,58,8,0.12); color: var(--accent-foreground); }
.cta-icon-box svg { width: 24px; height: 24px; }
.cta-label { font-size: .85rem; opacity: .75; }
.cta-value { font-family: "Bebas Neue", sans-serif; font-size: 1.6rem; }
.cta-arrow { font-size: 1.25rem; }
.cta-block.bg-white .cta-arrow { color: var(--primary); }

/* FOOTER */
.site-footer { margin-top: 5rem; background: rgba(245,247,250,0.6); border-top: 1px solid var(--border); }
.footer-grid {
  display: grid; gap: 2.5rem;
  max-width: 1152px; margin: 0 auto; padding: 3rem 1rem;
}
@media (min-width: 640px) { .footer-grid { padding: 3rem 1.5rem; } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid p { margin-top: .75rem; font-size: .9rem; color: var(--muted-foreground); }
.footer-grid h3 { font-size: 1.25rem; }
.footer-grid ul { margin-top: .75rem; list-style: none; padding: 0; }
.footer-grid ul li { margin-top: .5rem; font-size: .9rem; }
.footer-grid ul a, .footer-grid ul li { color: var(--muted-foreground); display: flex; align-items: flex-start; gap: .5rem; }
.footer-grid ul a:hover { color: var(--primary); }
.footer-grid ul svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.footer-vat { margin-top: .75rem; font-size: .75rem; color: var(--muted-foreground); }
.footer-vat strong { color: var(--foreground); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: .5rem; max-width: 1152px; margin: 0 auto; padding: 1rem; text-align: center;
  font-size: .75rem; color: var(--muted-foreground);
}
@media (min-width: 640px) { .footer-bottom-inner { flex-direction: row; padding: 1rem 1.5rem; } }
.footer-bottom a { color: var(--foreground); font-weight: 500; }
.footer-bottom a:hover { color: var(--primary); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,0.15);
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-inner {
  max-width: 960px; margin: 0 auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 640px) { .cookie-inner { padding: 1.25rem 1.5rem; } }
@media (min-width: 768px) { .cookie-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.cookie-text { flex: 1; font-size: .9rem; }
.cookie-text p:first-child { font-weight: 600; }
.cookie-text p:nth-child(2) { margin-top: .25rem; color: var(--muted-foreground); }
.cookie-text a { color: var(--primary); font-weight: 500; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-details {
  margin-top: .75rem; background: var(--muted); padding: .75rem; border-radius: .5rem;
  font-size: .8rem; color: var(--muted-foreground); display: none;
}
.cookie-details.visible { display: block; }
.cookie-details strong { color: var(--foreground); display: block; }
.cookie-actions {
  display: flex; flex-direction: column; gap: .5rem;
}
@media (min-width: 480px) { .cookie-actions { flex-direction: row; } }
@media (min-width: 768px) { .cookie-actions { flex-direction: column; } }
@media (min-width: 1024px) { .cookie-actions { flex-direction: row; } }
.cookie-btn {
  border: 1px solid var(--border); background: transparent;
  padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
  font-size: .9rem; font-weight: 500; color: var(--foreground);
  transition: background .15s;
  font-family: inherit;
}
.cookie-btn:hover { background: var(--muted); }
.cookie-btn-primary {
  background: var(--primary); color: var(--primary-foreground); border-color: var(--primary);
  font-weight: 600; padding: .5rem 1.25rem; box-shadow: var(--shadow-soft);
  transition: transform .15s;
}
.cookie-btn-primary:hover { background: var(--primary); transform: scale(1.03); }

/* LEGAL PAGES */
.legal {
  max-width: 720px; margin: 0 auto; padding: 4rem 1rem;
}
@media (min-width: 640px) { .legal { padding: 4rem 1.5rem; } }
.legal .back-link { font-size: .9rem; color: var(--primary); }
.legal .back-link:hover { text-decoration: underline; }
.legal h1 { margin-top: 1rem; font-size: clamp(2.5rem, 5vw, 3rem); color: var(--foreground); }
.legal .updated { margin-top: .5rem; font-size: .85rem; color: var(--muted-foreground); }
.legal-content { margin-top: 2rem; color: rgba(31,42,68,0.85); }
.legal-content section { margin-top: 1.5rem; }
.legal-content h2 { font-size: 1.5rem; color: var(--foreground); margin-bottom: .75rem; }
.legal-content p { margin-top: .75rem; }
.legal-content ul { margin: .75rem 0 .75rem 1.5rem; }
.legal-content li { margin-top: .35rem; }
.legal-content a { color: var(--primary); }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--foreground); }
.legal-table-wrap { margin-top: 1rem; overflow-x: auto; border: 1px solid var(--border); border-radius: .5rem; }
.legal-content table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
.legal-content thead { background: var(--secondary); }
.legal-content th { padding: .75rem 1rem; font-weight: 600; color: var(--foreground); }
.legal-content tbody tr { border-top: 1px solid var(--border); }
.legal-content td { padding: .75rem 1rem; }
.legal-content td.code { font-family: ui-monospace, monospace; font-size: .8rem; }
