/* ═══════════════════════════════════════════════
   FortinFer S.C.S. – Foglio di stile principale
   File: style.css  - Ultima release 01/07/2026
   ═══════════════════════════════════════════════ */

/* ─── VARIABILI ─── */
:root {
  --red: #C0271A;
  --red-dark: #8B1A10;
  --navy: #1C2B5A;
  --navy-light: #2A3F80;
  --steel: #8a9ab0;
  --steel-light: #c4cdd9;
  --off-white: #F2F0EC;
  --charcoal: #1a1a1a;
  --mid: #3a3a3a;
  --muted: #6a6a6a;
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--charcoal);
  color: var(--off-white);
  overflow-x: hidden;
  padding-bottom: 120px;
}

body>* {
  flex-shrink: 0;
}

/* ─── TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='none'/%3E%3Ccircle cx='1' cy='1' r='0.4' fill='rgba(255,255,255,0.018)'/%3E%3Ccircle cx='3' cy='3' r='0.4' fill='rgba(255,255,255,0.018)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  height: 60px;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192, 39, 26, 0.25);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--off-white);
  letter-spacing: 0.05em;
}

.nav-logo span {
  color: var(--red);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--red);
}

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 120px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(28, 43, 90, 0.6) 0%, rgba(26, 26, 26, 0) 60%),
    linear-gradient(0deg, rgba(26, 26, 26, 1) 0%, rgba(26, 26, 26, 0.1) 40%);
  z-index: 1;
}

/* Griglia metallica */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(138, 154, 176, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 154, 176, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

/* Linee diagonali */
.hero-stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-55deg,
      transparent,
      transparent 120px,
      rgba(192, 39, 26, 0.03) 120px,
      rgba(192, 39, 26, 0.03) 122px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

/* Contenitore logo */
/* .logo-container {
  background: transparent;
  padding: 1rem 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  animation: logoReveal 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo-container img {
  max-width: 480px;
  width: 100%;
  display: block;
} */

/* Contenitore logo */
.logo-container {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
  position: relative;
  width: 100%;
  animation: logoReveal 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo-container img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* o "contain" se vuoi vederla intera */
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.6rem;
  animation: fadeUp 1s 0.3s both;
}

.hero-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--off-white);
  margin-bottom: 1.8rem;
  animation: fadeUp 1s 0.45s both;
}

.hero-tagline .accent {
  color: var(--red);
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 1s 0.6s both;
}

/* ─── PULSANTI ─── */
.btn-primary {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn-outline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  background: transparent;
  color: var(--off-white);
  border: 1px solid rgba(196, 205, 217, 0.4);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--red);
  background: rgba(192, 39, 26, 0.08);
}

/* Indicatore scroll */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeUp 1s 1s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollDrop 2s 1.5s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── SEZIONI COMUNI ─── */
section {
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--off-white);
}

/* ─── CHI SIAMO ─── */
#about {
  padding: 7rem 3rem;
  background: #111;
  border-top: 1px solid rgba(138, 154, 176, 0.1);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(138, 154, 176, 0.15);
  border-left: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.025);
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--red);
  line-height: 1;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

.about-text p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--steel-light);
  margin-bottom: 1.2rem;
}

.about-text strong {
  color: var(--off-white);
  font-weight: 600;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(28, 43, 90, 0.4);
  border: 1px solid rgba(42, 63, 128, 0.5);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--steel-light);
  margin-top: 1.5rem;
  letter-spacing: 0.04em;
}

.location-badge svg {
  color: var(--red);
  flex-shrink: 0;
}

/* ─── LISTA ABOUT ─── */
.about-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.about-list li {
  padding: 0.28rem 0 0.28rem 1.4rem;
  position: relative;
  color: var(--steel-light);
  font-weight: 300;
  line-height: 1.45;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-list li:last-child {
  border-bottom: none;
}

.about-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.68rem;
  top: 0.38rem;
}

.about-list li strong {
  color: var(--off-white);
  font-weight: 600;
}

/* ─── LAVORAZIONI & ATTREZZATURE ─── */
#lavorazioni {
  padding: 5rem 3rem;
  background: #0d0d0d;
  border-top: 1px solid rgba(192, 39, 26, 0.2);
  border-bottom: 1px solid rgba(192, 39, 26, 0.2);
}

.lavorazioni-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lavorazioni-header {
  margin-bottom: 2.5rem;
}

.lavorazioni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.lav-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(192, 39, 26, 0.3);
}

.lav-note {
  font-size: 0.85rem;
  color: var(--steel);
  font-weight: 300;
  line-height: 1.7;
  margin-top: 1rem;
}

.lav-footer-note {
  color: var(--steel);
  margin-top: 1.8rem;
  text-align: center;
  font-weight: 300;
  line-height: 1.8;
  font-size: 0.95rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.lav-footer-note strong {
  color: var(--off-white);
  font-weight: 600;
}

/* ─── SERVIZI ─── */
#servizi {
  padding: 4rem 3rem;
  background: var(--charcoal);
}

.servizi-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.servizi-header {
  max-width: 600px;
  margin-bottom: 2rem;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5px;
  background: rgba(138, 154, 176, 0.12);
}

.servizio-card {
  background: #1a1a1a;
  padding: 1.6rem 1.4rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.25s;
}

/* Card 06 – occupa 2 colonne in riga 2 */
.servizio-card--wide {
  grid-column: span 2;
}

/* Foto – occupa le restanti 3 colonne in riga 2 */
.servizi-foto {
  grid-column: span 3;
  overflow: hidden;
}

.servizi-foto img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.servizio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--red);
  transition: height 0.3s ease;
}

.servizio-card:hover {
  background: #222;
}

.servizio-card:hover::before {
  height: 100%;
}

.servizio-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 0.9rem;
  color: var(--red);
}

.servizio-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
}

.servizio-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 0.5rem;
}

.servizio-desc {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--steel);
}

/* ─── GALLERIA ─── */
#galleria {
  padding: 5rem 3rem;
  background: #0d0d0d;
  border-top: 1px solid rgba(192, 39, 26, 0.2);
  border-bottom: 1px solid rgba(192, 39, 26, 0.2);
  text-align: center;
}

.galleria-inner {
  max-width: 700px;
  margin: 0 auto;
}

.galleria-inner p {
  color: var(--steel);
  font-weight: 300;
  line-height: 1.8;
  margin: 1.2rem 0 2rem;
}

* Foto galleria */ .galleria-foto {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  overflow: hidden;
}

.galleria-foto img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.fb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: #1877F2;
  padding: 0.75rem 1.8rem;
  transition: background 0.2s;
}

.fb-link:hover {
  background: #1565C0;
}

/* ─── CONTATTI ─── */
#contatti {
  padding: 7rem 3rem;
  background: #111;
}

.contatti-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(138, 154, 176, 0.12);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.contact-item:hover {
  border-color: rgba(192, 39, 26, 0.4);
  background: rgba(192, 39, 26, 0.04);
}

.contact-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192, 39, 26, 0.12);
  border: 1px solid rgba(192, 39, 26, 0.25);
  color: var(--red);
}

.contact-detail-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-detail-value {
  font-size: 0.92rem;
  color: var(--off-white);
  margin-top: 0.15rem;
}

/* ─── FORM ─── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(138, 154, 176, 0.2);
  color: var(--off-white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(196, 205, 217, 0.3);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
  background: rgba(192, 39, 26, 0.04);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select option {
  background: #1a1a1a;
}

.form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.send-note {
  margin-top: 0.5rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.send-note a {
  color: var(--steel);
}

/* ─── FOOTER ─── */
footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(138, 154, 176, 0.1);
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99;
}

.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--off-white);
}

.footer-brand span {
  color: var(--red);
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Barlow Condensed', sans-serif;
}

.footer-links a:hover {
  color: var(--red);
}

/* ─── DIVISORE ─── */
.steel-divider {
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--navy-light), var(--red), var(--navy-light), transparent);
}

/* ─── WHATSAPP FOOTER ─── */
.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #25D366 !important;
}

.footer-wa:hover {
  color: #1ebe57 !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav {
    padding: 0 1.2rem;
  }

  /* 1. NAV – hamburger nascosto, logo centrato */
  .nav-links {
    display: none;
  }

  /* 2. HERO – tagline ridotta, padding contenuto */
  #hero {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero-tagline {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: center;
  }

  .logo-container {
    padding: 0;
    max-width: 280px;
    margin: 0 auto 1.5rem;
  }

  /* 3. SEZIONI – padding ridotto */
  #about,
  #lavorazioni,
  #servizi,
  #contatti,
  #galleria {
    padding: 3rem 1.2rem;
  }

  /* 4. GRIGLIE – tutto in colonna singola */
  .about-inner,
  .contatti-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .lavorazioni-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* 5. SERVIZI – 1 colonna, foto full width */
  .servizi-grid {
    grid-template-columns: 1fr;
  }

  .servizio-card--wide {
    grid-column: span 1;
  }

  .servizi-foto {
    grid-column: span 1;
    min-height: 200px;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer – impilato */
  footer {
    flex-direction: column;
    text-align: center;
    padding: 1rem 1.2rem;
    gap: 0.6rem;
  }

  .footer-meta {
    font-size: 0.7rem;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Back to top – più in basso su mobile */
  .back-to-top {
    bottom: 5rem;
    right: 1rem;
    width: 38px;
    height: 38px;
  }
}
/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed;
  bottom: 7rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  z-index: 998;
  box-shadow: 0 4px 14px rgba(192, 39, 26, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #a01f10;
}