/* ========================================
   TECNICA PONTEGGI - STYLE.CSS
   Palette: Navy + Accent Arancio Sicurezza
======================================== */

:root {
  --navy: #0a2540;
  --navy-dark: #061a30;
  --navy-light: #1e3a5f;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 16px 48px rgba(10, 37, 64, 0.18);
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: 1rem; }

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

/* ========================================
   HEADER
======================================== */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--white);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo:hover { color: var(--white); }

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

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

.logo-sub {
  font-size: 0.7rem;
  color: var(--gray-400);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

#nav { position: relative; }

#nav-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#nav-links a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition);
}

#nav-links a:hover,
#nav-links a.active {
  background: var(--navy-light);
  color: var(--accent);
}

.header-cta {
  background: var(--accent) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
}

.header-cta:hover {
  background: var(--accent-dark) !important;
  color: var(--white) !important;
}

/* Hamburger */
#hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

#hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

#hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ========================================
   HERO
======================================== */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/IMG-20260428-WA0011.jpg') center/cover;
  opacity: 0.25;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.85) 0%, rgba(10, 37, 64, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.15rem;
  max-width: 650px;
  margin-bottom: 2rem;
  color: var(--gray-200);
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* ========================================
   SECTIONS
======================================== */

section { padding: 5rem 0; }

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-header { text-align: center; margin-bottom: 3rem; }

/* ========================================
   FEATURES / PUNTI DI FORZA
======================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--navy);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ========================================
   ABOUT SECTION (split)
======================================== */

.about-section { background: var(--gray-50); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 4/5;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img::after {
  content: '15+';
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--accent);
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  line-height: 1;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-list {
  list-style: none;
  margin-top: 1.5rem;
}

.about-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  font-weight: 600;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
}

.about-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
  font-size: 1.3rem;
}

/* ========================================
   SERVIZI CARDS
======================================== */

.services-section { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-img {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--navy);
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img { transform: scale(1.05); }

.service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 37, 64, 0.7) 100%);
}

.service-content { padding: 2rem; }

.service-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.service-content p {
  color: var(--gray-600);
  margin-bottom: 1.25rem;
}

.service-link {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.service-link:hover { color: var(--navy); }

/* ========================================
   CTA BANNER
======================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/IMG-20260428-WA0011.jpg') center/cover;
  opacity: 0.15;
}

.cta-banner > * { position: relative; z-index: 2; }

.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { font-size: 1.15rem; margin-bottom: 2rem; color: var(--gray-200); }

/* ========================================
   PAGE HERO (interne)
======================================== */

.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.25;
}

/* Hero image per pagina */
.page-hero.hero-servizi::before {
  background-image: url('img/hero-servizi.jpg');
}

.page-hero.hero-montaggio::before {
  background-image: url('img/hero-montaggio.jpg');
}

.page-hero.hero-assistenza::before {
  background-image: url('img/hero-assistenza.jpg');
}

.page-hero.hero-coperture::before {
  background-image: url('img/hero-coperture.jpg');
}

.page-hero.hero-contatti::before {
  background-image: url('img/hero-contatti.jpg');
}

/* Fallback se nessuna classe specifica */
.page-hero:not([class*="hero-"])::before {
  background-image: url('img/IMG-20260428-WA0011.jpg');
}

.page-hero > * { position: relative; z-index: 2; }

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--gray-200);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-top: 1rem;
}

.breadcrumb a { color: var(--gray-200); }
.breadcrumb a:hover { color: var(--accent); }

/* ========================================
   TESTO + CONTENUTO PAGINE
======================================== */

.content-section {
  padding: 5rem 0;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.content-wrapper p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: var(--gray-600);
}

.content-wrapper h2 {
  margin-top: 2.5rem;
}

.content-wrapper h3 {
  margin-top: 2rem;
  color: var(--navy);
  font-size: 1.4rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
}

.info-box {
  background: var(--gray-50);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.info-box p { margin-bottom: 0; }

/* ========================================
   SPLIT SECTIONS (img + testo alternati)
======================================== */

.split-section {
  padding: 5rem 0;
}

.split-section:nth-child(even) {
  background: var(--gray-50);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.split-grid.reverse .split-img {
  order: 2;
}

.split-grid.reverse .split-content {
  order: 1;
}

.split-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  min-height: 320px;
}

.split-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.split-img:hover img {
  transform: scale(1.03);
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-content .section-tag {
  margin-bottom: 0.5rem;
}

.split-content h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.split-content p {
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.split-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
}

.split-content .about-list {
  margin-top: 1.5rem;
}

@media (max-width: 968px) {
  .split-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-grid.reverse .split-img {
    order: 1;
  }

  .split-grid.reverse .split-content {
    order: 2;
  }

  .split-img {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    aspect-ratio: 16/10;
    min-height: 0;
  }

  .split-img img {
    position: relative;
    inset: auto;
  }
}

@media (max-width: 768px) {
  .split-section {
    padding: 3.5rem 0;
  }
}

/* ========================================
   FORM CONTATTI
======================================== */

.contact-section {
  padding: 5rem 0;
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 2.5rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.contact-info h2 { color: var(--white); }
.contact-info > p { color: var(--gray-200); margin-bottom: 2rem; }

.contact-info-list {
  list-style: none;
  margin-top: 2rem;
}

.contact-info-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

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

.contact-icon {
  background: var(--accent);
  color: var(--navy);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info-list strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.contact-info-list a { color: var(--gray-200); }
.contact-info-list a:hover { color: var(--accent); }

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

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

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-800);
  font-size: 0.95rem;
}

.form-group label .req { color: var(--accent-dark); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  accent-color: var(--accent);
}

.checkbox-group label {
  font-size: 0.88rem;
  color: var(--gray-600);
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}

.checkbox-group a { color: var(--accent-dark); text-decoration: underline; }

.form-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-transform: uppercase;
}

.form-submit:hover {
  background: var(--accent);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-message {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  display: none;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  display: block;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
  background: var(--navy-dark);
  color: var(--gray-200);
  padding-top: 4rem;
  margin-top: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: var(--white);
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer-logo span { color: var(--accent); }

.footer-tagline {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--gray-400);
}

.footer-list a {
  color: var(--gray-400);
}

.footer-list a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-400);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom .credits a {
  color: var(--accent);
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */

@media (max-width: 968px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img { max-width: 500px; margin: 0 auto; aspect-ratio: 16/10; }
  .about-img::after { font-size: 1.5rem; padding: 0.75rem 1rem; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-container { grid-template-columns: 1fr 1fr; }

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

/* HAMBURGER MENU - attivo su tablet + mobile (≤1024px) */
@media (max-width: 1024px) {
  #hamburger { display: block; }

  #nav-links {
    position: absolute;
    top: 68px;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    width: 100vw;
    gap: 0;
    box-shadow: var(--shadow-lg);
    z-index: 299;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #nav-links.open {
    max-height: 600px;
  }

  #nav-links li {
    width: 100%;
    text-align: center;
  }

  #nav-links a {
    display: block;
    padding: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .header-cta { margin: 0.5rem 1rem; border-radius: 6px !important; }
}

@media (max-width: 768px) {
  .hero { min-height: 500px; }
  .hero-content { padding: 4rem 1.5rem; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; }

  section { padding: 3.5rem 0; }

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

  .footer-bottom { flex-direction: column; }

  .contact-form, .contact-info { padding: 2rem 1.5rem; }

  .feature-card, .service-content { padding: 1.75rem 1.5rem; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 1.1rem; }
  .logo-sub { font-size: 0.6rem; }
  h1 { font-size: 1.75rem; }
  .btn { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
}