/* -------------------------------------------------------------
 * EDIL TIGANI - Style Sheet Personalizzato
 * Impresa Edile Rodengo Saiano (BS)
 * Palette: Oro Ambrato (#D4A41C), Antracite (#212529), Bianco (#FFFFFF)
 * ------------------------------------------------------------- */

:root {
  --brand-gold: #D4A41C;
  --brand-gold-dark: #B5880E;
  --brand-gold-light: #F7E9BC;
  --brand-gold-subtle: #FFFBF0;
  --brand-dark: #212529;
  --brand-dark-surface: #191C1E;
  --brand-slate: #343A40;
  --brand-muted: #6C757D;
  --brand-light: #F8F9FA;
  --brand-white: #FFFFFF;
  --brand-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --brand-shadow-hover: 0 15px 35px rgba(212, 164, 28, 0.18);
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: var(--font-primary);
  color: #333333;
  background-color: #FFFFFF;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -0.3px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F1F1;
}
::-webkit-scrollbar-thumb {
  background: var(--brand-gold);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-gold-dark);
}

/* -------------------------------------------------------------
 * TOP INFO BAR
 * ------------------------------------------------------------- */
.top-bar {
  background-color: var(--brand-dark);
  color: #D1D5DB;
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 2px solid var(--brand-gold);
}

.top-bar a {
  color: #D1D5DB;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.top-bar a:hover {
  color: var(--brand-gold);
}

.top-bar i {
  color: var(--brand-gold);
  margin-right: 6px;
}

/* -------------------------------------------------------------
 * NAVBAR
 * ------------------------------------------------------------- */
.navbar-custom {
  background-color: #FFFFFF;
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.navbar-custom.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.navbar-brand img {
  height: 52px;
  width: auto;
  transition: var(--transition-smooth);
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-dark) !important;
  padding: 8px 16px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--brand-gold);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-gold-dark) !important;
}

/* Buttons */
.btn-brand-gold {
  background-color: var(--brand-gold);
  color: var(--brand-dark);
  font-weight: 700;
  border: 2px solid var(--brand-gold);
  padding: 10px 24px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(212, 164, 28, 0.3);
}

.btn-brand-gold:hover {
  background-color: var(--brand-gold-dark);
  border-color: var(--brand-gold-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 164, 28, 0.45);
}

.btn-brand-outline-dark {
  background-color: transparent;
  color: var(--brand-dark);
  font-weight: 700;
  border: 2px solid var(--brand-dark);
  padding: 10px 24px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.btn-brand-outline-dark:hover {
  background-color: var(--brand-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-brand-outline-gold {
  background-color: transparent;
  color: var(--brand-gold);
  font-weight: 700;
  border: 2px solid var(--brand-gold);
  padding: 10px 24px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.btn-brand-outline-gold:hover {
  background-color: var(--brand-gold);
  color: var(--brand-dark);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
 * HERO SECTION
 * ------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  background-color: var(--brand-dark);
}

.hero-slide-item {
  min-height: 85vh;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 120px 0 90px;
  display: flex;
  align-items: center;
}

.carousel-fade .carousel-item {
  transition-duration: 0.8s;
}

/* Hero Carousel Controls & Indicators */
.hero-section .carousel-indicators {
  margin-bottom: 2rem;
  z-index: 10;
}

.hero-section .carousel-indicators [data-bs-target] {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 2px solid var(--brand-gold);
  opacity: 0.5;
  transition: var(--transition-smooth);
}

.hero-section .carousel-indicators .active {
  width: 34px;
  border-radius: 10px;
  background-color: var(--brand-gold);
  opacity: 1;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
  width: 52px;
  height: 52px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(33, 37, 41, 0.65);
  border: 1px solid var(--brand-gold);
  border-radius: 50%;
  margin: 0 25px;
  opacity: 0.85;
  transition: var(--transition-smooth);
  z-index: 10;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
  background-color: var(--brand-gold);
  color: var(--brand-dark);
  opacity: 1;
  box-shadow: 0 0 15px rgba(212, 164, 28, 0.5);
}

.hero-overlay-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(212, 164, 28, 0.22);
  border: 1px solid var(--brand-gold);
  color: var(--brand-gold);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-title span {
  color: var(--brand-gold);
  position: relative;
  display: inline-block;
}

.hero-lead {
  font-size: 1.2rem;
  color: #F1F5F9;
  max-width: 680px;
  margin-bottom: 35px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #F8F9FA;
}

.hero-badge-item i {
  color: var(--brand-gold);
  font-size: 1.2rem;
}

/* -------------------------------------------------------------
 * SECTION HEADINGS & BADGES
 * ------------------------------------------------------------- */
.section-badge {
  display: inline-block;
  color: var(--brand-gold-dark);
  background-color: var(--brand-gold-subtle);
  border: 1px solid rgba(212, 164, 28, 0.3);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--brand-muted);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* -------------------------------------------------------------
 * CHI SIAMO / ABOUT SECTION
 * ------------------------------------------------------------- */
#chi-siamo {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

.about-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--brand-shadow);
  height: 100%;
  min-height: 680px;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

@media (max-width: 991.98px) {
  .about-image-wrapper,
  .about-image-wrapper img {
    min-height: 420px;
    height: 420px;
  }
}

.about-experience-badge {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background-color: var(--brand-gold);
  color: var(--brand-dark);
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.about-experience-badge .years {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}

.about-experience-badge .text {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.feature-check-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.feature-check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--brand-dark);
}

.feature-check-list li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--brand-gold-dark);
  font-size: 1.1rem;
}

/* Counter Box */
.counter-box {
  background-color: var(--brand-gold-subtle);
  border: 1px solid rgba(212, 164, 28, 0.25);
  border-radius: 10px;
  padding: 24px 15px;
  text-align: center;
  transition: var(--transition-smooth);
}

.counter-box:hover {
  transform: translateY(-5px);
  border-color: var(--brand-gold);
  box-shadow: var(--brand-shadow-hover);
}

.counter-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-gold-dark);
  margin-bottom: 5px;
}

.counter-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-dark);
  letter-spacing: 0.5px;
}

/* -------------------------------------------------------------
 * SERVICES SECTION
 * ------------------------------------------------------------- */
.service-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #EAEAEA;
  padding: 35px 25px;
  height: 100%;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--brand-gold);
  transition: var(--transition-smooth);
  opacity: 0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background-color: var(--brand-gold-subtle);
  border: 1px solid rgba(212, 164, 28, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold-dark);
  font-size: 1.8rem;
  margin-bottom: 25px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  background-color: var(--brand-gold);
  color: var(--brand-dark);
  border-color: var(--brand-gold);
}

.service-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--brand-muted);
  font-size: 0.95rem;
  flex-grow: 1;

}

/* -------------------------------------------------------------
 * PORTFOLIO / REALIZZAZIONI SECTION
 * ------------------------------------------------------------- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: #FFFFFF;
  border: 1px solid #DEE2E6;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-dark);
  box-shadow: 0 4px 12px rgba(212, 164, 28, 0.3);
}

.portfolio-item {
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.portfolio-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  background-color: var(--brand-dark);
}

.portfolio-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition-smooth);
  display: block;
}

.portfolio-card:hover img {
  transform: scale(1.08);
  opacity: 0.45;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 2;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-category {
  color: var(--brand-gold);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.portfolio-title {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 4px 0 10px;
}

.portfolio-zoom-icon {
  width: 42px;
  height: 42px;
  background-color: var(--brand-gold);
  color: var(--brand-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  align-self: flex-start;
}

/* -------------------------------------------------------------
 * WHY CHOOSE US SECTION
 * ------------------------------------------------------------- */
.why-us-section {
  background-color: var(--brand-dark-surface);
  color: #FFFFFF;
  position: relative;
}

.why-us-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  height: 100%;
  transition: var(--transition-smooth);
}

.why-us-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-gold);
  transform: translateY(-5px);
}

.why-us-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand-gold);
  opacity: 0.8;
  line-height: 1;
  margin-bottom: 15px;
}

.why-us-card h4 {
  color: #FFFFFF;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.why-us-card p {
  color: #A0AEC0;
  font-size: 0.95rem;
  margin: 0;
}

/* -------------------------------------------------------------
 * CONTACT & QUOTE FORM SECTION
 * ------------------------------------------------------------- */
.contact-info-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 25px;
  border: 1px solid #EAEAEA;
  box-shadow: var(--brand-shadow);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.contact-info-card:hover {
  border-color: var(--brand-gold);
  transform: translateY(-3px);
}

.contact-icon {
  width: 55px;
  height: 55px;
  border-radius: 10px;
  background-color: var(--brand-gold-subtle);
  border: 1px solid rgba(212, 164, 28, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold-dark);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-info-content h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-content p,
.contact-info-content a {
  color: var(--brand-muted);
  font-size: 0.95rem;
  margin: 0;
  text-decoration: none;
}

.contact-info-content a:hover {
  color: var(--brand-gold-dark);
}

/* Quote Form Container */
.quote-form-container {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 40px;
  border: 1px solid #EAEAEA;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-control, .form-select {
  border: 1px solid #CED4DA;
  border-radius: 6px;
  padding: 12px 15px;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 0.25rem rgba(212, 164, 28, 0.25);
}

/* Map iFrame */
.map-responsive {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--brand-shadow);
  height: 380px;
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  border: 0;
}

/* -------------------------------------------------------------
 * FOOTER
 * ------------------------------------------------------------- */
.footer-main {
  background-color: var(--brand-dark);
  color: #A0AEC0;
  padding: 70px 0 25px;
  border-top: 4px solid var(--brand-gold);
}

.footer-logo {
  height: 77px;
  width: auto;
  margin-bottom: 20px;
  background-color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 6px;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--brand-gold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #A0AEC0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--brand-gold);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 50px;
  padding-top: 25px;
  font-size: 0.85rem;
}

/* -------------------------------------------------------------
 * FLOATING WHATSAPP BUTTON & BACK TO TOP
 * ------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.floating-whatsapp:hover {
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 95px;
  width: 45px;
  height: 45px;
  background-color: var(--brand-gold);
  color: var(--brand-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--brand-gold-dark);
  color: #FFFFFF;
  transform: translateY(-3px);
}
