/* Gotham Font Family */
@font-face {
  font-family: 'Gotham';
  src: url('fonts/gotham/Gotham-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Gotham';
  src: url('fonts/gotham/Gotham-BookItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Gotham';
  src: url('fonts/gotham/Gotham-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Gotham';
  src: url('fonts/gotham/Gotham-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'Gotham';
  src: url('fonts/gotham/GOTHAM-BOLD.TTF') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Gotham';
  src: url('fonts/gotham/GOTHAM-BOLDITALIC.TTF') format('truetype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Gotham';
  src: url('fonts/gotham/GOTHAM-BLACK.TTF') format('truetype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Gotham';
  src: url('fonts/gotham/GOTHAM-BLACKITALIC.TTF') format('truetype');
  font-weight: 800;
  font-style: italic;
}

@font-face {
  font-family: 'Gotham';
  src: url('fonts/gotham/Gotham-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

/* Color Palette */
:root {
  --brown: #73583B;
  --black: #1D1D1B;
  --gray: #70797B;
  --white: #FFFFFF;
  --seppia: #F0EFE8;
  --footer_bg: #E4E4DC;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background-color: var(--white);
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.navbar-logo img {
  height: 100px;
  max-width: 10rem;
  width: auto;
  transition: height 0.3s ease;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--gray);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--brown);
}

.nav-link.active {
  color: var(--brown);
  font-weight: 700;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: 1.5rem;
}

.lang-switcher button {
  background: none;
  border: 2px solid transparent;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.lang-switcher button:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lang-switcher button.active {
  opacity: 1;
  border-color: var(--brown);
}

/* Hamburger Toggle Button */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--black);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.navbar-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive Navbar */
@media (max-width: 768px) {
  .navbar-logo img {
    height: 90px;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 5rem 2rem 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .navbar-menu.active {
    right: 0;
  }

  .navbar-links {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
  }

  .nav-link {
    font-size: 1.2rem;
    width: 100%;
    padding: 0.5rem 0;
  }

  .lang-switcher {
    margin-left: 0;
    margin-top: 2rem;
    justify-content: flex-start;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
}

/* Overlay for mobile menu */
.navbar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar-overlay.active {
  display: block;
  opacity: 1;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: clamp(400px, 70vh, 600px);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: clamp(1rem, 15%, 15%);
  right: clamp(1rem, 5%, 5%);
  transform: translateY(-50%);
  max-width: 90%;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: bold;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: clamp(0.5rem, 2vw, 1rem);
}

/* Mobile adjustments for hero */
@media (max-width: 768px) {
  .hero {
    height: clamp(350px, 60vh, 500px);
  }
  
  .hero-content {
    left: 1rem;
    right: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
  
  .hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
  }
}

@media (max-width: 480px) {
  .navbar-logo img {
    height: 75px;
  }

  .hero {
    height: clamp(300px, 50vh, 400px);
  }
  
  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
}
/* Commitment Section */
.commitment {
  padding: clamp(3rem, 6vw, 6rem) 2rem;
  background: var(--seppia);
}

.commitment-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.commitment-copy .eyebrow {
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.commitment-title {
  color: var(--black);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.commitment-desc {
  color: var(--gray);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 55ch;
}

.commitment-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 900px) {
  .commitment-inner { grid-template-columns: 1fr; }
  .commitment-media { order: 2; }
  .commitment-copy { order: 1; }
}

/* ===== Le nostre realizzazioni ===== */
.realis {
  padding: clamp(3rem, 6vw, 6rem) 2rem;
  background: var(--white);
}

.realis-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.realis .eyebrow {
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.realis-title {
  color: var(--black);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Griglia 4 colonne con buoni spazi anche su mobile */
.realis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}

/* Card */
.realis-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Riquadro immagine con fallback marrone */
.real-thumb {
  width: 100%;
  /* altezza fluida in rapporto 4:3 */
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background-color: var(--brown);           /* fallback se l'immagine non c'è */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;                    /* riempie il riquadro come nella bozza */
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Testi card */
.realis-card-title {
  color: var(--black);
  font-weight: 800;
  font-size: 1.125rem;
  margin: 0.25rem 0 0.25rem;
}

.realis-link:hover { opacity: 0.85; }

/* Responsive */
@media (max-width: 1100px) {
  .realis-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .realis-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .realis-grid { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--footer_bg);
  padding: clamp(2.5rem, 6vw, 5rem) 2rem;
  border-top: 1px solid rgba(0,0,0,.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.footer-brand img {
  display: block;
  width: clamp(160px, 24vw, 220px);
  height: auto;
  object-fit: contain;
}

/* Testi */
.footer-info { font-style: normal; }

.footer-title {
  color: var(--black);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-subtitle {
  color: var(--gray);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  margin: 0.35rem 0 1.25rem;
}

.footer-address,
.footer-phone,
.footer-email {
  color: var(--gray);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.footer-phone a,
.footer-email a {
  color: var(--gray);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  text-underline-offset: 3px;
  transition: color .2s ease, border-color .2s ease;
  font-weight: 700;
}

.footer-phone a:hover,
.footer-email a:hover {
  color: var(--brown);
  border-color: var(--brown);
}

/* Responsive */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-brand { order: 1; }
  .footer-info { order: 2; }
}

/* ===== Contatti: sezione a tre colonne ===== */
.contact-cta {
  background: var(--white);
  padding: clamp(2.5rem, 6vw, 5.5rem) 2rem;
}

.contact-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  text-align: center;
}

.contact-item { 
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem; 
}

.contact-icon {
  width: 80px;
  height: 80px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.contact-label {
  color: var(--gray);                 /* testo grigio sotto l’icona */
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0.25rem 0 0.25rem;
}

.contact-detail {
  color: var(--black);                /* testo nero sotto il grigio */
  font-size: clamp(1.05rem, 2.1vw, 1.6rem);
  line-height: 1.4;
}

.contact-detail a {
  color: var(--black);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.contact-detail a:hover {
  color: var(--brown);
  border-color: var(--brown);
}

/* Map Section */
.contact-map {
  grid-column: 1 / -1; /* Span all columns */
  margin-top: clamp(2rem, 4vw, 3rem);
  width: 100%;
}

.contact-map iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.contact-map-fallback {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--gray);
  font-size: 0.95rem;
}

.contact-map-fallback a {
  color: var(--brown);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-cta-inner { grid-template-columns: 1fr; }
  .contact-item { gap: 0.75rem; }
  .contact-map iframe { height: 350px; }
}

/* ===== Sezione: La nostra filosofia ===== */
.philosophy {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.5rem) 1.5rem;
}

.philosophy-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-title {
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.philosophy-text {
  color: var(--gray);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.5;
  max-width: 60ch;
  margin: 0 auto 0.4rem auto;
}

/* ===== About Us Content Section ===== */
.about-content {
  background: var(--white);
  padding: clamp(2rem, 5vw, 4rem) 2rem;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.about-company {
  color: var(--black);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.about-tagline {
  color: var(--gray);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  margin-bottom: 0.5rem;
}

.about-address,
.about-founded {
  color: var(--gray);
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  margin-bottom: 0.25rem;
}

.about-founder {
  color: var(--gray);
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  margin-top: 0.75rem;
  font-style: italic;
}

.about-section {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.about-section-title {
  color: var(--black);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-align: center;
}

.about-section-subtitle {
  color: var(--black);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.about-section-text {
  color: var(--gray);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
  text-align: center;
  max-width: 75ch;
  margin: 0 auto;
}

/* ===== Founder Section ===== */
.founder-section {
  padding: clamp(2rem, 5vw, 4rem) 2rem;
  background: var(--white);
}

.founder-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Founder Section (fix background position) ===== */
.founder-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  min-height: 500px;
  isolation: isolate;              /* ensures the pseudo-element sits behind children */
}

/* Seppia rectangle behind the text (right side) */
.founder-card::before {
  content: "";
  position: absolute;
  right: 0;                        /* <-- anchor to the right */
  top: 50%;
  transform: translateY(-50%);
  width: clamp(62%, 68vw, 900px);  /* adjust to taste */
  height: clamp(280px, 55%, 380px);
  background: var(--seppia);
  border-radius: 2px;
  z-index: -1;                     /* behind image + text */
}


.founder-image-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  order: 1;
  padding-left: clamp(1rem, 4vw, 3rem);
}

.founder-image {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 2px;
}

.founder-content {
  position: relative;
  z-index: 1;
  padding-left: clamp(1rem, 3vw, 2rem);
  order: 2;
}

.founder-role {
  color: var(--gray);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.founder-name {
  color: var(--black);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.founder-bio {
  color: var(--gray);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  max-width: 50ch;
}

/* Responsive */
@media (max-width: 900px) {
  .founder-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
  }

  .founder-card::before {
    right: 0;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: clamp(200px, 50%, 300px);
  }
  
  .founder-content {
    order: 1;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }
  
  .founder-bio {
    margin: 0 auto;
    max-width: 90%;
  }
  
  .founder-image-container {
    order: 2;
    justify-content: center;
    padding-left: 0;
  }
  
  .founder-image {
    max-width: 280px;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .founder-section {
    padding: clamp(2rem, 5vw, 3rem) 1rem;
  }
  
  .founder-card {
    gap: 1rem;
  }
  
  .founder-card::before {
    height: clamp(280px, 70%, 580px);
    transform: translate(0%, -75%);
  }
  
  .founder-name {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 1rem;
  }
  
  .founder-bio {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    max-width: 95%;
  }
  
  .founder-image {
    max-width: 240px;
  }
}

/* ===== Carousel: Appartamento Grete ===== */
.project-carousel {
  padding: clamp(1.5rem, 4vw, 3rem) 2rem;
}

.pc-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.pc-card {
  position: relative;
}

/* rettangolo seppia dietro (layer decorativo) */
.pc-card::before {
  content: "";
  position: absolute;
  left: max(-3%, -24px);
  top: clamp(-0.75rem, -1.5vw, -1.25rem);
  width: clamp(80%, 80vw, 800px);
  height: clamp(320px, 48vw, 520px);
  background: var(--seppia);
  z-index: 0;
  border-radius: 2px;
}

/* Testate */
.pc-header {
  position: relative;
  z-index: 1;
  margin-left: clamp(0rem, 1.5vw, 0.75rem);
  margin-bottom: clamp(0.4rem, 1.5vw, 0.75rem);
}

.pc-location {
  display: inline-block;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
}

.pc-title {
  color: var(--black);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin: 0.25rem 0 0;
}

/* Palco immagini - Fixed 16:9 aspect ratio */
.pc-stage {
  position: relative;
  z-index: 1;
  outline: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

.pc-stage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 2px;
}

/* Frecce */
.pc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.pc-arrow:hover { background: rgba(255,255,255,.95); transform: translateY(-50%) scale(1.04); }
.pc-arrow:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }

.pc-arrow svg {
  width: 20px; height: 20px;
  stroke: var(--black);
  stroke-width: 3;
}

.pc-prev { left: 0.75rem; }
.pc-next { right: 0.75rem; }

/* Dots */
.pc-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding-top: 8px;
}

.pc-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: #c9c9c9; border: none;
  cursor: pointer;
}
.pc-dot.is-active { background: var(--black); }

/* Mirror layout for Eden carousel */
#carousel-eden .pc-card::before {
  left: auto;
  right: max(-3%, -24px);
}

#carousel-eden .pc-header {
  margin-left: 0;
  margin-right: clamp(0rem, 1.5vw, 0.75rem);
  text-align: right;
}

/* Responsive */
@media (max-width: 900px) {
  .pc-card::before {
    left: -2%;
    width: 85%;
    height: clamp(100px, 30vw, 200px);
  }
  #carousel-eden .pc-card::before {
    left: auto;
    right: -2%;
  }
  .pc-arrow { width: 34px; height: 34px; }
  .pc-arrow svg { width: 18px; height: 18px; }
}
