/* ============================================================
   PREXTA S.p.A. — Template 11: Teal & Pewter
   Primary: #1B6B6B | Accent: #B8A07A | Dark: #0D3D3D | Light: #F4F9F9
   Font: Host Grotesk (300-800)
   ============================================================ */

/* === Font Import === */
@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:wght@300..800&display=swap');

:root {
  --primary: #1B6B6B;
  --accent: #B8A07A;
  --dark: #0D3D3D;
  --light-bg: #F4F9F9;
  --white: #ffffff;
  --text-dark: #2d2d2d;
  --text-muted: #6c757d;
  --font-family: 'Host Grotesk', sans-serif;
}

* {
  font-family: var(--font-family);
}

body {
  background-color: var(--white);
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.7;
}

/* === Navbar === */
.custom-navbar {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0;
  z-index: 1030;
}

.custom-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.custom-navbar .navbar-caption {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary) !important;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.custom-navbar .nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  letter-spacing: -0.01em;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: var(--accent) !important;
}

.custom-navbar .navbar-buttons .btn {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  letter-spacing: -0.01em;
}

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

.btn-info:hover {
  background-color: var(--dark) !important;
  border-color: var(--dark) !important;
  color: var(--white) !important;
}

.btn-black {
  background-color: var(--dark) !important;
  border-color: var(--dark) !important;
  color: var(--white) !important;
  border-radius: 6px;
  font-weight: 600;
  padding: 0.7rem 2rem;
}

.btn-black:hover {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--white) !important;
}

.btn-secondary {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--white) !important;
}

.btn-secondary:hover {
  background-color: #a08860 !important;
  border-color: #a08860 !important;
  color: var(--white) !important;
}

/* === Hero Section === */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-section .container-fluid {
  position: relative;
  z-index: 2;
}

.hero-content {
  padding: 6rem 0;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-content .lead {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-content .btn {
  font-size: 1.05rem;
  padding: 0.8rem 2.2rem;
  font-weight: 600;
}

/* === Reversed Hero (Template 11 specific) === */
.hero-reversed .row {
  flex-direction: row-reverse;
}

.hero-reversed .hero-image-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-reversed .hero-image-col img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* === Section Common === */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 700px;
}

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

.section-dark .section-title {
  color: var(--white);
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.section-light {
  background-color: var(--light-bg);
}

/* === Feature Cards (card_1 / card_2) === */
.card_1 {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card_1:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card_1 .card-icon {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card_1 .card-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

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

.card_1 p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.card_2 {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  height: 100%;
}

.card_2:hover {
  transform: translateY(-5px);
}

.card_2 img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card_2 .card-body {
  padding: 1.5rem;
}

.card_2 h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card_2 p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card_2 .card-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.card_2 .card-link:hover {
  color: var(--primary);
}

/* === Image + Text Split Sections === */
.split-section .split-image {
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.split-section.reversed .row {
  flex-direction: row-reverse;
}

.split-section .split-text {
  padding: 2rem 0;
}

.split-section .split-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.split-section .split-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* === Parallax Banner === */
.parallax-banner {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.parallax-banner .overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 61, 61, 0.8);
  z-index: 1;
}

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

.parallax-banner h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.parallax-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

/* === Stats / Achievements === */
.stats-section .stat-item {
  text-align: center;
  padding: 2rem;
}

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

.stats-section .stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.5rem;
}

.section-dark .stats-section .stat-label {
  color: rgba(255, 255, 255, 0.7);
}

/* === FAQ Accordion === */
.accordion-item {
  border: none;
  border-bottom: 1px solid #e0e0e0;
  background: transparent;
}

.accordion-button {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  padding: 1.25rem 0;
  background: transparent;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--accent);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231B6B6B' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.accordion-body {
  padding: 0.5rem 0 1.5rem 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* === Contact Section === */
.contact-section {
  background-color: var(--light-bg);
}

.contact-form .form-control {
  border: 1px solid #dce5e5;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(184, 160, 122, 0.15);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info-item .icon-circle {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item .icon-circle i {
  font-size: 1.25rem;
  color: var(--white);
}

.contact-info-item h5 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.contact-info-item p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* === Map === */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === Footer === */
.footer-dark {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer-dark a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-dark a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-dark .footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-dark .copyright {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

/* === Page Header (subpages) === */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  padding: 8rem 0 4rem;
  color: var(--white);
  position: relative;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
}

/* === About Page Specific === */
.about-values .value-item {
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 1.5rem;
  background: var(--white);
  border-radius: 0 8px 8px 0;
}

.about-values .value-item h5 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* === Testimonials === */
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.testimonial-card .quote {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-card .quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--accent);
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  font-style: normal;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

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

/* === Team Cards === */
.team-card {
  text-align: center;
  padding: 1.5rem;
}

.team-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--accent);
}

.team-card h5 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

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

/* === Breadcrumb === */
.breadcrumb-section {
  background: var(--light-bg);
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

/* === Service Detail === */
.service-detail {
  padding: 2rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

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

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

/* === Responsive === */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .page-header {
    padding: 6rem 0 3rem;
  }
  .page-header h1 {
    font-size: 2.2rem;
  }
  .split-section .split-text {
    padding: 1rem 0;
  }
  .parallax-banner {
    background-attachment: scroll;
  }
}

@media (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content .lead {
    font-size: 1rem;
  }
  .section {
    padding: 3rem 0;
  }
  .footer-dark .footer-links {
    gap: 0.75rem;
  }
}

/* === Legal Pages === */
.legal-content {
  padding: 5rem 0;
}

.legal-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2.5rem 0 1.5rem;
}

.legal-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 1rem;
}

.legal-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 1.5rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.cookie-tables-white .wp-block-table table,
.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  border: 1px solid black !important;
  border-collapse: collapse !important;
}

.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  padding: 12px 8px !important;
}

.cookie-tables-white .wp-block-table th {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
}
