/* ==========================================================================
   LA TENUTA DEGLI ARCHI - Rubiera (RE)
   Stile Raffinato Editoriale & Monochrome (Nero, Grigio, Bianco)
   Tipografia: Georgia / Serif Elegante
   ========================================================================== */

:root {
  --text-main: #181b1e;
  --text-muted: #4b5259;
  --text-light: #6c757d;
  --bg-dark: #191c20;
  --bg-dark-card: #22262c;
  --bg-light: #f7f8f9;
  --bg-card: #ffffff;
  --btn-dark: #14171a;
  --btn-hover: #000000;
  --border-light: #d8dce2;
  --border-dark: #373f48;
  --font-serif: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
  --font-base: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TOP HEADER & NAVIGATION
   ========================================================================== */
.gs-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
  padding: 18px 36px;
  transition: all 0.3s ease;
}

.gs-nav-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gs-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.gs-brand:hover {
  opacity: 0.9;
}

.gs-brand-img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

.gs-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 28px;
}

.gs-menu a {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 6px 0;
  position: relative;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  transition: opacity 0.2s, color 0.2s;
}

.gs-menu a:hover {
  opacity: 0.85;
}

.gs-menu a.active {
  font-weight: 700;
  border-bottom: 2.5px solid #ffffff;
}

.gs-search-icon {
  color: #ffffff;
  width: 19px;
  height: 19px;
  margin-left: 10px;
  cursor: pointer;
  opacity: 0.9;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
  transition: opacity 0.2s;
}

.gs-search-icon:hover {
  opacity: 1;
}

/* ==========================================================================
   HERO BANNER - HOMEPAGE (FULLSCREEN & BANNER PULITO)
   ========================================================================== */
.gs-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 50px 70px 40px;
}

.gs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 18, 22, 0.45) 0%,
    rgba(15, 18, 22, 0.1) 40%,
    rgba(15, 18, 22, 0.4) 80%,
    rgba(15, 18, 22, 0.75) 100%
  );
}

.gs-hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.gs-hero-watermark {
  max-width: 520px;
  width: 100%;
}

.gs-hero-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.9));
}


/* ==========================================================================
   SUBPAGES HERO
   ========================================================================== */
.gs-subpage-hero {
  position: relative;
  width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.gs-subpage-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 26, 0.55);
}

.gs-subpage-hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.gs-subpage-hero-content h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  text-shadow: 0 3px 8px rgba(0,0,0,0.8);
  letter-spacing: 0.6px;
}

.gs-subpage-hero-content p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: #e8ebed;
  margin-top: 8px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* ==========================================================================
   SECTIONS & LAYOUT CONTAINERS
   ========================================================================== */
.gs-section {
  padding: 75px 24px;
}

.gs-section-white {
  background-color: #ffffff;
}

.gs-section-dark {
  background-color: var(--bg-dark);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.gs-container {
  max-width: 1160px;
  margin: 0 auto;
}

.gs-row {
  display: flex;
  gap: 45px;
  align-items: flex-start;
  margin-bottom: 50px;
}

.gs-row-center {
  align-items: center;
}

.gs-col {
  flex: 1;
}

.gs-col-40 {
  flex: 0 0 38%;
}

.gs-col-60 {
  flex: 0 0 58%;
}

/* ==========================================================================
   REFINED FRAMES & CARDS (NO GOLD / YELLOW)
   ========================================================================== */
.gs-card-frame {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 34px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gs-card-frame:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.gs-card-dark {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 34px;
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   TYPOGRAPHY (GEORGIA / SERIF ACCROSS ALL ELEMENTS)
   ========================================================================== */
h2.gs-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
  line-height: 1.28;
}

.gs-section-white h2.gs-title {
  color: var(--text-main);
}

.gs-section-dark h2.gs-title {
  color: #ffffff;
}

p.gs-text {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.78;
  margin-bottom: 18px;
}

.gs-section-white p.gs-text {
  color: var(--text-muted);
}

.gs-section-dark p.gs-text {
  color: #d1d5db;
}

.gs-text-bold {
  font-weight: 700;
  color: #111827 !important;
}

.gs-section-dark .gs-text-bold {
  color: #ffffff !important;
}

.gs-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.7;
  color: #1f2328;
  margin: 18px 0;
}

.gs-center-heading {
  text-align: center;
  margin: 55px 0 42px;
}

.gs-center-heading h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.gs-center-heading p {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  font-weight: 700;
  font-style: italic;
  color: #1f2328;
}

/* ==========================================================================
   BUTTONS (CLEAN BOLD MONOCHROME)
   ========================================================================== */
.gs-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--btn-dark);
  color: #ffffff !important;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.gs-btn-dark:hover {
  background-color: var(--btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

.gs-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: #25d366;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.gs-btn-whatsapp:hover {
  transform: scale(1.08);
  background-color: #1ebc59;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.gs-btn-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* ==========================================================================
   IMAGES & FRAMING
   ========================================================================== */
.gs-img-fluid {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.gs-img-framed {
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gs-img-framed:hover {
  transform: scale(1.015);
  box-shadow: 0 8px 26px rgba(0,0,0,0.16);
}

.gs-section-dark .gs-img-framed {
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* ==========================================================================
   MAP CONTAINER & PILLS
   ========================================================================== */
.gs-map-box {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border: 1px solid var(--border-light);
}

.gs-map-box img {
  width: 100%;
  height: auto;
  display: block;
}

.gs-distance-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.gs-pill {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  background-color: #f1f3f5;
  color: #2b3036;
  border: 1px solid #d0d5dd;
}

/* DIVIDER */
.gs-divider {
  border: 0;
  border-top: 1px solid var(--border-light);
  margin: 55px auto;
  max-width: 90%;
}

/* ==========================================================================
   FOOTER PROFESSIONALE - PULITO & COMPATTO (IAD & IMPRESA AFFIANCATI, SEDE SOTTO)
   ========================================================================== */
.gs-footer-pro {
  background-color: #14171a;
  color: #ffffff;
  padding: 60px 24px 30px;
  border-top: 1px solid #282e36;
}

.gs-footer-container {
  max-width: 1120px;
  margin: 0 auto;
}

.gs-footer-header {
  text-align: center;
  margin-bottom: 38px;
}

.gs-footer-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
}

.gs-footer-subtitle {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: #9aa0a6;
  font-weight: 400;
}

/* Griglia 2 Colonne: IAD & Impresa Affiancati */
.gs-footer-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}

.gs-footer-card {
  background: #1c2026;
  border: 1px solid #2d343e;
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

.gs-card-tag {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c9d1d9;
  margin-bottom: 6px;
}

.gs-card-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.gs-footer-link {
  color: #e2e5e9;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  transition: color 0.2s;
}

.gs-footer-link:hover {
  color: #ffffff;
  font-weight: 700;
}

.gs-footer-btn-wa {
  margin-top: 14px;
  background-color: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.gs-footer-btn-wa:hover {
  background-color: #1ebc59;
}

/* Barra Sede Cantiere Orizzontale Compatta (Occupa meno spazio) */
.gs-footer-location-bar {
  background: #191d22;
  border: 1px solid #2a313b;
  border-radius: 8px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.gs-footer-location-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #d1d5db;
}

.gs-footer-location-info strong {
  color: #ffffff;
}

.gs-footer-location-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 9px 20px;
  border: 1px solid #454d58;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  transition: all 0.2s;
  white-space: nowrap;
}

.gs-footer-location-link:hover {
  background: rgba(255,255,255,0.12);
  border-color: #ffffff;
}

.gs-footer-bottom {
  border-top: 1px solid #232830;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: #8b929a;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .gs-header {
    padding: 15px 20px;
  }
  .gs-brand-img {
    height: 38px;
  }
  .gs-hero {
    height: 85vh;
    min-height: 560px;
    padding: 35px 24px 25px;
  }
  .gs-hero-svg {
    max-width: 320px;
  }
  .gs-hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .gs-row {
    flex-direction: column;
    gap: 28px;
  }
  .gs-col-40, .gs-col-60 {
    flex: 1 1 100%;
  }
  .gs-menu {
    gap: 14px;
  }
  .gs-menu a {
    font-size: 0.88rem;
  }
  .gs-footer-duo {
    grid-template-columns: 1fr;
  }
  .gs-footer-location-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .gs-footer-location-link {
    width: 100%;
    justify-content: center;
  }
  .gs-subpage-hero-content h1 {
    font-size: 2.3rem;
  }
}

@media (max-width: 640px) {
  .gs-menu {
    display: none;
  }
  .gs-hero-svg {
    max-width: 270px;
  }
  .gs-section {
    padding: 45px 16px;
  }
  .gs-card-frame, .gs-card-dark {
    padding: 22px 18px;
  }
}
