/* ============================================================
   Template 1: "Navy & Gold" — Full-Screen Parallax, Centered Hero
   Company: GEST. IN. S.p.A.
   Primary: #003366 | Accent: #FFD700 | Dark: #002244 | Light bg: #f8f9fa
   ============================================================ */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === Root Variables === */
:root {
  --primary: #003366;
  --primary-rgb: 0, 51, 102;
  --accent: #FFD700;
  --accent-rgb: 255, 215, 0;
  --dark: #002244;
  --dark-rgb: 0, 34, 68;
  --light-bg: #f8f9fa;
  --text-dark: #1a1a2e;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: #ffffff;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

p {
  margin-bottom: 1rem;
  color: #444;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 80px 0;
  position: relative;
}

/* === Bootstrap Text Utility Overrides === */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-dark { color: var(--dark) !important; }
.text-white { color: var(--text-light) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-light { background-color: var(--light-bg) !important; }
.bg-accent { background-color: var(--accent) !important; }

/* === Display Classes === */
.display-1 { font-size: 3.5rem; font-weight: 800; }
.display-2 { font-size: 2.8rem; font-weight: 700; }
.display-4 { font-size: 1.15rem; font-weight: 500; }
.display-5 { font-size: 1.3rem; font-weight: 600; }
.display-7 { font-size: 1rem; font-weight: 400; }

@media (max-width: 768px) {
  .display-1 { font-size: 2.2rem; }
  .display-2 { font-size: 1.8rem; }
}

/* === Navbar (Bootstrap Native) === */
.custom-navbar {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  z-index: 1030;
}

.custom-navbar.scrolled {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.custom-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-navbar .navbar-brand img {
  height: 3rem;
  width: auto;
}

.custom-navbar .navbar-caption {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.custom-navbar .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: var(--primary) !important;
  background-color: rgba(0, 51, 102, 0.06);
}

.custom-navbar .navbar-toggler {
  border: none;
  padding: 0.5rem;
  box-shadow: none;
}

.custom-navbar .navbar-toggler:focus {
  box-shadow: none;
}

.navbar-buttons {
  display: flex;
  align-items: center;
}

.navbar-buttons .btn {
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
}

/* === Buttons === */
.btn {
  font-family: var(--font-family);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: none;
  border: 2px solid transparent;
  font-size: 0.95rem;
}

.btn-black {
  background-color: var(--dark);
  color: #ffffff !important;
  border-color: var(--dark);
}

.btn-black:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 34, 68, 0.3);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--dark);
  border-color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 34, 68, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff !important;
}

/* === Hero Section === */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 34, 68, 0.85), rgba(0, 51, 102, 0.75));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 0 20px;
}

.hero-content h2 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-content .btn {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.hero-content .btn-black {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--dark) !important;
  font-weight: 700;
}

.hero-content .btn-black:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: var(--dark) !important;
}

/* === Section Headers === */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
}

.section-title p {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* === Icon Features (3-column) === */
.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--accent);
}

.feature-card h4 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === Dark Parallax Section === */
.dark-parallax {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
  padding: 100px 0;
}

.dark-parallax::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 34, 68, 0.85);
}

.dark-parallax .container {
  position: relative;
  z-index: 2;
}

.dark-parallax h2 {
  color: #ffffff;
  font-weight: 800;
}

.dark-parallax p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.9;
}

/* === Service Cards === */
.service-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
  border-top: 3px solid var(--primary);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-top-color: var(--accent);
}

.service-card h4 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card .price-wrapper {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.service-card .btn {
  margin-top: 0.5rem;
}

/* === FAQ Accordion === */
.faq-section {
  background-color: var(--light-bg);
}

.accordion-item {
  border: none;
  margin-bottom: 0.75rem;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.accordion-button {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  background: #ffffff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: rgba(0, 51, 102, 0.04);
}

.accordion-button::after {
  background-size: 1rem;
}

.accordion-body {
  padding: 0 1.5rem 1.5rem;
  color: #555;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* === Contact Form === */
.contact-form-section {
  background-color: #ffffff;
}

.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper .form-control {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: var(--font-family);
}

.contact-form-wrapper .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.15);
}

.contact-form-wrapper textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.contact-form-wrapper .btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* === Contact Info (Dark Section) === */
.contact-info-dark {
  background-color: var(--dark);
  padding: 80px 0;
}

.contact-info-card {
  text-align: center;
  padding: 2rem 1rem;
  color: #ffffff;
}

.contact-info-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
  color: var(--accent);
  transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-icon {
  background-color: var(--accent);
  color: var(--dark);
}

.contact-info-card h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-info-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* === Map Section === */
.map-section {
  padding: 0 !important;
}

.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* === Footer (footer3 style) === */
.footer-section {
  background-color: var(--dark);
  padding: 3rem 0 2rem;
}

.footer-section .container {
  max-width: 1140px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  display: inline;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent) !important;
}

.footer-copyright {
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Page Banner (sub pages) === */
.page-banner {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  padding: 120px 0 50px;
  text-align: center;
  position: relative;
}

.page-banner h1 {
  color: #ffffff;
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* === About Page Styles === */
.about-section {
  padding: 80px 0;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--primary);
}

.timeline-year {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.timeline-item h4 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* Stats Block */
.stats-block {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  padding: 60px 0;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* === Services Page === */
.service-detail {
  padding: 60px 0;
  border-bottom: 1px solid #eef0f2;
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail h3 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-detail .icon-box {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* === Testimonials Page === */
.testimonial-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card .quote {
  font-style: italic;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--dark);
  font-size: 1rem;
}

.testimonial-card .role {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* === Values Section === */
.value-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.value-card h4 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* === Cookie Consent === */
.cookie-consent-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 1.5rem 2rem;
  max-width: 500px;
  width: calc(100% - 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-popup p {
  flex: 1 1 100%;
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.cookie-consent-popup a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
}

.cookie-btn-accept {
  background: var(--primary);
  color: #fff !important;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.cookie-btn-accept:hover {
  background: var(--dark);
}

.cookie-btn-reject {
  background: #e9ecef;
  color: #555;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-btn-reject:hover {
  background: #dee2e6;
}

.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
}

.cookie-overlay.active {
  display: block;
}

/* === Image styling === */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-rounded {
  border-radius: 8px;
}

.img-shadow {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* === Utility === */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* === Process Steps === */
.process-step {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.step-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  border: 3px solid var(--accent);
}

.process-step h4 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* === Responsive === */
@media (max-width: 991px) {
  .custom-navbar .navbar-collapse {
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
  }

  .navbar-buttons {
    margin-top: 0.5rem;
    margin-left: 0 !important;
  }

  section {
    padding: 50px 0;
  }

  .hero-section {
    min-height: 80vh;
  }

  .hero-content h2.display-1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .page-banner {
    padding: 100px 0 40px;
  }

  .page-banner h1 {
    font-size: 2rem;
  }

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

@media (max-width: 576px) {
  .hero-section {
    min-height: 70vh;
    background-attachment: scroll;
  }

  .dark-parallax {
    background-attachment: scroll;
  }

  .hero-content h2.display-1 {
    font-size: 1.8rem;
  }

  .cookie-consent-popup {
    bottom: 10px;
    padding: 1rem 1.2rem;
  }
}
