/* ============================================================
   LA FALCO Società Cooperativa — Redesign 2026
   ============================================================ */

:root {
  /* Palette rosso e bianco — colori del logo */
  --navy-950: #3a0708;
  --navy-900: #4a090b;
  --navy-800: #5f0d0f;
  --navy-700: #7a1316;
  --navy-600: #981b1f;
  --amber: #e63946;
  --amber-light: #ff5a64;
  --amber-dark: #b3202c;
  --text-light: #fdf6f6;
  --text-mid: #ddbcbe;
  --text-dark: #2b1214;
  --text-body: #6b4f52;
  --surface: #ffffff;
  --surface-alt: #faf4f4;
  --border: #f0dddd;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(58, 7, 8, 0.10);
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text-dark); line-height: 1.2; }

img, svg { display: block; }

a { color: inherit; text-decoration: none; }

/* Le ancore non devono finire sotto l'header fisso */
section[id] { scroll-margin-top: 86px; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.accent { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: #fff;
  box-shadow: 0 6px 24px rgba(230, 57, 70,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(230, 57, 70,0.5); }
.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(58, 7, 8,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}
.header.scrolled { background: rgba(58, 7, 8,0.92); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-logo { width: 38px; height: 38px; color: var(--amber); flex-shrink: 0; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text small {
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width 0.25s;
}
.nav-link:hover, .nav-link.active { color: var(--text-light); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link--area {
  color: var(--amber);
  border: 1px solid rgba(230, 57, 70,0.4);
  border-radius: 999px;
  padding: 0.35rem 1rem;
}
.nav-link--area::after { display: none; }
.nav-link--area:hover { background: rgba(230, 57, 70,0.12); color: var(--amber-light); }

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--amber); }
.header-phone:hover { color: var(--amber); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* evita i salti della barra browser su mobile */
  display: flex;
  align-items: center;
  background: var(--navy-950);
  overflow: hidden;
  padding: 130px 0 80px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}
.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(230, 57, 70,0.14), transparent 65%);
  filter: blur(20px);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #5ed68a;
  background: rgba(94, 214, 138, 0.1);
  border: 1px solid rgba(94, 214, 138, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-mid);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber);
}
.stat span { font-size: 0.82rem; color: var(--text-mid); }

/* Hero visual cards */
.hero-visual { position: relative; min-height: 360px; }
.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  color: var(--text-light);
}
.hero-card--main {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 230px;
  padding: 2rem;
  text-align: center;
  animation: float 5s ease-in-out infinite;
}
.hero-card--main p { font-family: var(--font-head); font-weight: 600; margin-top: 1rem; }
.hero-card--main p span { color: #5ed68a; font-size: 0.8rem; font-weight: 400; }
.hero-falcon { width: 90px; height: 90px; margin-inline: auto; color: var(--amber); }

.hero-card--small {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
.hero-card--a { top: 6%; left: 0; animation: float 6s ease-in-out infinite 0.8s; }
.hero-card--b { bottom: 4%; right: 0; animation: float 6s ease-in-out infinite 1.6s; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-green { background: #5ed68a; box-shadow: 0 0 10px #5ed68a; }
.dot-amber { background: var(--amber); box-shadow: 0 0 10px var(--amber); }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--dark { background: var(--navy-950); }
.section--dark h2, .section--dark h3 { color: var(--text-light); }
.section--dark p { color: var(--text-mid); }

.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.8rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; }

/* ---------- Azienda ---------- */
.azienda-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.azienda-text p { margin-bottom: 1.2rem; font-size: 1.02rem; }
.azienda-text strong { color: var(--text-dark); }

.azienda-points { display: grid; gap: 1.4rem; }
.point {
  display: flex;
  gap: 1.1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.point:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.point-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  display: grid;
  place-items: center;
  color: #fff;
}
.point-icon svg { width: 22px; height: 22px; }
.point h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.point p { font-size: 0.9rem; }

/* ---------- Servizi ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.service {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.service:hover {
  transform: translateY(-5px);
  border-color: rgba(230, 57, 70,0.45);
  background: rgba(230, 57, 70,0.05);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(230, 57, 70,0.12);
  border: 1px solid rgba(230, 57, 70,0.25);
  display: grid;
  place-items: center;
  color: var(--amber);
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 23px; height: 23px; }
.service h3 { font-size: 1rem; margin-bottom: 0.45rem; }
.service p { font-size: 0.86rem; }

/* ---------- Settori ---------- */
.sectors { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 4rem; }
.sector {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  transition: transform 0.2s, border-color 0.2s;
}
.sector:hover { transform: translateY(-2px); border-color: var(--amber); }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: 20px;
  padding: 2.6rem 3rem;
}
.cta-band h3 { color: var(--text-light); font-size: 1.35rem; margin-bottom: 0.4rem; }
.cta-band p { color: var(--text-mid); }

/* ---------- Contatti ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.contact-info { display: grid; gap: 1.6rem; }
.contact-item { display: flex; gap: 1.1rem; }
.contact-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(230, 57, 70,0.12);
  border: 1px solid rgba(230, 57, 70,0.25);
  display: grid;
  place-items: center;
  color: var(--amber);
}
.contact-icon svg { width: 21px; height: 21px; }
.contact-item h3 { font-size: 0.98rem; margin-bottom: 0.2rem; }
.contact-item p, .contact-item a { font-size: 0.92rem; color: var(--text-mid); }
.contact-item a:hover { color: var(--amber); }

.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 2.2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: rgba(58, 7, 8,0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s;
}
.form-field select option { background: var(--navy-900); }
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--amber);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #b08a8d; }

.form-feedback {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-feedback.ok { color: #5ed68a; }
.form-feedback.err { color: #ff7a7a; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); border-top: 1px solid rgba(255, 255, 255, 0.07); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}
.footer-brand p { color: var(--text-mid); font-size: 0.88rem; margin-top: 1.1rem; max-width: 300px; }
.footer-col h4 {
  color: var(--text-light);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--text-mid);
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.3rem 0;
  font-size: 0.78rem;
  color: #b08a8d;
  text-align: center;
}

/* ---------- Pulsante chiamata rapida (mobile) ---------- */
.call-fab {
  display: none;
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: #fff;
  box-shadow: 0 8px 26px rgba(230, 57, 70,0.45);
  place-items: center;
}
.call-fab svg { width: 24px; height: 24px; }
.call-fab:active { transform: scale(0.94); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-card { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-visual { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .header-inner { height: 64px; gap: 1rem; }
  section[id] { scroll-margin-top: 74px; }
  .header-phone { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(58, 7, 8,0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0 1rem;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    margin-left: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav-link { padding: 0.95rem 6%; font-size: 1.02rem; }
  .nav-link::after { display: none; }
  .nav-link--area { margin: 0.6rem 6% 0; text-align: center; padding: 0.8rem 1rem; }

  .hero { padding: 100px 0 70px; }
  .hero-badge { font-size: 0.72rem; }
  .hero-sub { font-size: 1rem; }

  .azienda-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 2.4rem; }

  .cta-band { padding: 2rem 1.6rem; flex-direction: column; text-align: center; }
  .cta-band .btn { width: 100%; max-width: 340px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 3rem 0 2.2rem; }
  .footer-brand { grid-column: 1 / -1; }

  .call-fab { display: grid; }
}

@media (max-width: 540px) {
  .brand-logo { width: 32px; height: 32px; }
  .brand-text { font-size: 1rem; }

  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 1.4rem 1.3rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-stats { gap: 1.3rem; justify-content: space-between; width: 100%; }
  .stat strong { font-size: 1.6rem; }

  .point { padding: 1.1rem 1.2rem; }
  .sectors { gap: 0.55rem; }
  .sector { font-size: 0.84rem; padding: 0.55rem 1.1rem; }

  .contact-form { padding: 1.4rem 1.2rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  /* 16px minimi: evita lo zoom automatico di iOS sul focus */
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { padding: 1.1rem 0; font-size: 0.72rem; }
}
