/* ============================================================
   Segaveus Arredamenti — Shared Stylesheet
   Color palette: Dark Navy (#1B2838) + Orange Accent (#F5A623)
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #2D3748;
  background: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 16px; color: #1B2838; }
.section-subtitle { text-align: center; color: #6B7280; max-width: 600px; margin: 0 auto 48px; font-size: 1.05rem; line-height: 1.6; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
  text-align: center;
}
.btn-primary { background: #F5A623; color: #1B2838; }
.btn-primary:hover { background: #E0950C; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(245,166,35,0.35); }
.btn-outline { background: transparent; color: #F5A623; border: 2px solid #F5A623; }
.btn-outline:hover { background: #F5A623; color: #1B2838; }
.btn-accent { background: #1B2838; color: #fff; }
.btn-accent:hover { background: #0F1A28; transform: translateY(-1px); }

/* ============================================================
   1. HEADER — Dark Navy
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  background: #1B2838;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; }
.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo-text small {
  display: block;
  font-size: 0.55rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #F5A623;
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-weight: 500; font-size: 0.95rem; color: rgba(255,255,255,0.8); }
.main-nav a:hover { color: #F5A623; }
.header-cta .btn { padding: 10px 24px; font-size: 0.9rem; }

/* Mobile nav toggle */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 110;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #fff;
  height: 3px;
  width: 30px;
  border-radius: 2px;
  position: absolute;
  transition: all 0.3s;
}
.nav-toggle-label span { top: 50%; transform: translateY(-50%); }
.nav-toggle-label span::before { content: ''; top: -9px; }
.nav-toggle-label span::after { content: ''; top: 9px; }
.nav-toggle:checked + .nav-toggle-label span { background: transparent; }
.nav-toggle:checked + .nav-toggle-label span::before { top: 0; transform: rotate(45deg); background: #fff; }
.nav-toggle:checked + .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); background: #fff; }

/* ============================================================
   2. HERO — Full-width bg image with dark overlay
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27,40,56,0.92) 0%, rgba(27,40,56,0.7) 50%, rgba(27,40,56,0.35) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
}
.hero-content {
  max-width: 560px;
}
.hero-content h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
}
.hero-content h1 em {
  font-style: normal;
  color: #F5A623;
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.7;
}
.hero-image { display: none; }

/* ============================================================
   3. TRUST BAR — Orange accent strip
   ============================================================ */
.trust-bar {
  padding: 28px 0;
  background: #1B2838;
  border-top: 3px solid #F5A623;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.trust-badge-icon {
  font-size: 1.4rem;
}

/* ============================================================
   4. FEATURES
   ============================================================ */
.features { background: #fff; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature-card {
  text-align: center;
  padding: 36px 20px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #E5E7EB;
  transition: box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover {
  box-shadow: 0 8px 30px rgba(27,40,56,0.1);
  transform: translateY(-4px);
  border-color: #F5A623;
}
.feature-icon { font-size: 2.4rem; margin-bottom: 18px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: #1B2838; }
.feature-card p { color: #6B7280; font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   PORTFOLIO / GALLERY
   ============================================================ */
.portfolio { background: #F7F8FA; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-card {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #fff;
  border: 1px solid #E5E7EB;
  transition: box-shadow 0.3s, transform 0.3s;
}
.portfolio-card:hover {
  box-shadow: 0 12px 36px rgba(27,40,56,0.12);
  transform: translateY(-4px);
}
.portfolio-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.portfolio-card-caption {
  padding: 18px 20px;
  background: #fff;
}
.portfolio-card-caption h3 { font-size: 1.05rem; margin-bottom: 4px; color: #1B2838; }
.portfolio-card-caption p { font-size: 0.85rem; color: #9CA3AF; }

/* ============================================================
   5. HOW IT WORKS
   ============================================================ */
.how-it-works { background: #F7F8FA; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.step { text-align: center; padding: 36px 20px; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #F5A623;
  color: #1B2838;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; color: #1B2838; }
.step p { color: #6B7280; font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   6. TESTIMONIALS
   ============================================================ */
.testimonials { background: #fff; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  padding: 28px;
  border-radius: 10px;
  background: #F7F8FA;
  border: 1px solid #E5E7EB;
}
.testimonial-text {
  font-style: italic;
  color: #4B5563;
  margin-bottom: 18px;
  line-height: 1.8;
  font-size: 0.95rem;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F5A623;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1B2838;
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; color: #1B2838; }
.testimonial-role { font-size: 0.8rem; color: #9CA3AF; }

/* ============================================================
   7. SEO CONTENT BLOCK
   ============================================================ */
.seo-content { background: #fff; }
.seo-content-inner { max-width: 800px; margin: 0 auto; }
.seo-content-inner h2 { font-size: 1.5rem; margin-bottom: 16px; margin-top: 32px; color: #1B2838; }
.seo-content-inner h2:first-child { margin-top: 0; }
.seo-content-inner h3 { font-size: 1.15rem; margin-bottom: 12px; margin-top: 24px; color: #1B2838; }
.seo-content-inner p { margin-bottom: 16px; color: #4B5563; line-height: 1.8; }

/* ============================================================
   8. FAQ
   ============================================================ */
.faq { background: #F7F8FA; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #E5E7EB; }
.faq-item summary {
  padding: 18px 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #1B2838;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: #F5A623;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 0 18px; color: #4B5563; line-height: 1.8; font-size: 0.95rem; }

/* ============================================================
   9. FOOTER — Dark Navy
   ============================================================ */
.site-footer {
  background: #1B2838;
  color: #ccc;
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text small { color: #F5A623; }
.footer-brand p { margin-top: 12px; font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.55); }
.footer-col h4 { color: #F5A623; margin-bottom: 14px; font-size: 0.95rem; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-col a:hover { color: #F5A623; }
.footer-col li:not(:has(a)) { color: rgba(255,255,255,0.55); font-size: 0.88rem; line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.social-icons { display: flex; gap: 14px; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.social-icons a:hover { background: #F5A623; color: #1B2838; }

/* ============================================================
   ABOUT — SECTION WITH IMAGE
   ============================================================ */
.about-image-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 24px;
}
.about-image-block.reverse { direction: rtl; }
.about-image-block.reverse > * { direction: ltr; }
.about-image-block img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(27,40,56,0.1);
}

/* ============================================================
   CONTACT — SHOWROOM IMAGE
   ============================================================ */
.showroom-image {
  margin-top: 24px;
  border-radius: 10px;
  overflow: hidden;
}
.showroom-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
}

/* ============================================================
   ABOUT US PAGE
   ============================================================ */
.about-hero {
  background: #1B2838;
  padding: 60px 0;
  text-align: center;
}
.about-hero h1 { font-size: 2.2rem; color: #fff; margin-bottom: 12px; }
.about-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.about-section { padding: 60px 0; }
.about-section:nth-child(even) { background: #F7F8FA; }
.about-section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #1B2838;
  border-bottom: 3px solid #F5A623;
  padding-bottom: 8px;
  display: inline-block;
}
.about-section p { margin-bottom: 14px; color: #4B5563; line-height: 1.8; }

.differentiators {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.diff-item {
  background: #fff;
  padding: 28px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  transition: border-color 0.2s;
}
.diff-item:hover { border-color: #F5A623; }
.diff-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: #F5A623; }
.diff-item p { font-size: 0.9rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.team-member {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
}
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #F5A623;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1B2838;
  font-size: 1.5rem;
  font-weight: 700;
}
.team-member h3 { font-size: 1.05rem; margin-bottom: 4px; color: #1B2838; }
.team-role { font-weight: 600; color: #F5A623; margin-bottom: 4px; font-size: 0.9rem; }
.team-expertise { color: #9CA3AF; font-size: 0.85rem; }

/* ============================================================
   CONTACT US PAGE
   ============================================================ */
.contact-hero {
  background: #1B2838;
  padding: 60px 0;
  text-align: center;
}
.contact-hero h1 { font-size: 2.2rem; color: #fff; margin-bottom: 12px; }
.contact-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 60px 0;
}
.info-block { margin-bottom: 28px; }
.info-block h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  border-bottom: 3px solid #F5A623;
  padding-bottom: 8px;
  color: #1B2838;
  display: inline-block;
}
.info-block li { padding: 5px 0; line-height: 1.6; color: #4B5563; }
.info-block address { font-style: normal; line-height: 1.8; color: #4B5563; }
.info-block a { color: #F5A623; }
.info-block a:hover { text-decoration: underline; }

.contact-form-wrapper h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-bottom: 3px solid #F5A623;
  padding-bottom: 8px;
  color: #1B2838;
  display: inline-block;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #1B2838;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #F5A623;
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}
.btn-submit {
  display: inline-block;
  padding: 14px 36px;
  background: #F5A623;
  color: #1B2838;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-submit:hover { background: #E0950C; transform: translateY(-1px); }

/* ============================================================
   LEGAL PAGES (Privacy, Cookie, Terms)
   ============================================================ */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  line-height: 1.7;
  color: #333;
}
.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #1B2838;
}
.legal-page .last-updated {
  color: #9CA3AF;
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid #F5A623;
  color: #1B2838;
  display: inline-block;
}
.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #1B2838;
}
.legal-page p { margin-bottom: 14px; color: #4B5563; }
.legal-page ul { padding-left: 24px; margin-bottom: 14px; list-style: disc; }
.legal-page li { padding: 4px 0; line-height: 1.6; color: #4B5563; }
.legal-page a { color: #F5A623; }
.legal-page a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.2rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-content { grid-template-columns: 1fr; }
  .differentiators { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-image-block { grid-template-columns: 1fr; }
  .about-image-block.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 1.6rem; }

  /* Mobile hamburger */
  .nav-toggle-label { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1B2838;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: 2px solid #F5A623;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .main-nav a {
    display: block;
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
  }
  .main-nav a:hover { color: #F5A623; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .header-cta { display: none; }

  /* Hero */
  .hero { min-height: 400px; }
  .hero-inner { padding: 48px 0 40px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }

  /* Grids to single column */
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .team-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }

  /* About / Contact hero */
  .about-hero h1, .contact-hero h1 { font-size: 1.8rem; }

  /* Footer */
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Touch targets */
  .main-nav a { min-height: 44px; display: flex; align-items: center; }
  .btn { min-height: 48px; padding: 14px 28px; }
  .faq-item summary { min-height: 48px; padding: 16px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-content h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.4rem; }
  .feature-card { padding: 28px 16px; }
  .step { padding: 28px 16px; }
  .testimonial-card { padding: 20px; }
  .legal-page { padding: 40px 16px; }
  .legal-page h1 { font-size: 1.6rem; }
}
