/* ===== FONTS ===== */
@font-face {
  font-family: 'Italiana';
  src: url('../fonts/Italiana/Italiana-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #fafaf8;
  --color-bg-alt: #f2f0ec;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-accent: #8b7355;
  --color-accent-light: #c4a882;
  --color-border: #e0ddd8;
  --color-white: #ffffff;
  --font-heading: 'Italiana', serif;
  --font-body: system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --transition: 0.25s ease;
  --header-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 100%;
  padding: 0 160px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(8px);
  z-index: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding: 0 160px;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
}

.logo--fixed {
  position: absolute;
  top: 0;
  left: 160px;
  z-index: 100;
  display: flex;
  align-items: center;
}

.logo img {
  height: 140px;
  width: auto;
  object-fit: contain;
  margin-top: 38px;
}

.logo--fixed { transition: opacity 0.3s ease; }
.logo--hidden { opacity: 0; pointer-events: none; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}
.nav ul a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav ul a:hover { color: var(--color-accent); }

.nav ul li a[href="#contact"],
.nav ul li a[href="index.html#contact"] {
  background: var(--color-accent);
  color: #fff;
  padding: 7px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.nav ul li a[href="#contact"]:hover,
.nav ul li a[href="index.html#contact"]:hover {
  background: #8a6a3a;
  color: #fff;
  transform: translateY(-1px);
}

.header-contact {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.header-contact a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.contact-icon {
  width: 14px;
  height: 14px;
  color: #000;
  flex-shrink: 0;
}
.header-contact a:hover { color: var(--color-accent); }
.header-contact-sep { opacity: 0.4; }

@media (max-width: 767px) {
  .header-contact { display: none; }
}

.nav-fb-link {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav-fb-link:hover { color: #1877f2; }

.lang-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.lang-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== WELCOME BLOCK ===== */
.welcome-block {
  display: flex;
  flex-direction: column;
  height: calc(100svh + 20px);
  min-height: 620px;
  padding-top: var(--header-h);
  background: transparent;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.welcome-block > * {
  pointer-events: auto;
}

/* ===== HERO (full screen) ===== */
.hero {
  position: relative;
  flex: 1 1 50%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #2a2320 url('../images/placeholders/imagenbanner.avif') center/cover no-repeat;
  overflow: hidden;
  border-radius: 80px 80px 0 0;
  margin: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,23,43,0.85);
  border-radius: inherit;
}

/* ===== HERO CONTENT (centered) ===== */
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  text-align: center;
  width: 100%;
  max-width: 700px;
  padding: 0 24px 48px;
  margin-bottom: 80px;
}

/* ===== HERO LEFT ===== */
.hero-left {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding: 0 20px 60px 120px;
  flex: 1;
  min-width: 0;
}

.hero-location {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-location::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hero-phrases {
  position: relative;
  margin-bottom: 16px;
  height: 220px;
  width: 100%;
}

.hero-phrase {
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  font-weight: normal;
  line-height: 1.0;
  position: absolute;
  top: 0; left: 0; right: 0;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.hero-phrase.active {
  opacity: 1;
  pointer-events: auto;
}

.hp-lexend {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

.hp-italiana {
  font-family: var(--font-heading);
  font-style: italic;
  white-space: nowrap;
  font-size: 1.25em;
  display: block;
  margin-top: -0.18em;
  line-height: 1;
}

.hero-phrase {
  background: linear-gradient(to bottom, rgba(255,255,255,0.93) 0%, rgba(255,255,255,0.45) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO RIGHT CARDS ===== */
.hero-cards-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 40px 60px 12px;
  flex-shrink: 0;
}

.hcp-card {
  width: 120px;
  height: var(--hcp-h, 220px);
  border-radius: 18px;
  background: var(--card-img) center/cover no-repeat var(--color-accent);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hcp-card:hover { transform: translateY(-6px); }

.hcp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,16,35,0.75) 0%, transparent 55%);
}

.hcp-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px;
  z-index: 1;
  color: #fff;
}

.hcp-body small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
}

.hcp-body h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.2;
}

/* Hide old events strip */
.events-strip--hidden { display: none; }

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  opacity: 0.85;
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ===== BENTO GRID ===== */
.bento {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
  width: 340px;
  flex-shrink: 0;
}

.bento-card {
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
  transition: transform var(--transition), filter var(--transition);
}
.bento-card:hover { transform: scale(1.02); filter: brightness(1.04); }

.bento-wide {
  grid-column: 1 / -1;
  min-height: 110px;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
}

.bento-cta {
  grid-column: 1 / -1;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bento-cta a {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.bento-cta:hover a { color: white; }

.bento-tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.6);
  align-self: flex-start;
  margin-bottom: 8px;
}
.bento-tag--light {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
}
.bento-tag--full {
  background: rgba(180,60,60,0.15);
  color: rgba(160,40,40,0.9);
}

.bento-body { display: flex; flex-direction: column; gap: 2px; }
.bento-wide .bento-body { align-items: flex-start; }

.bento-date {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 2px;
}
.bento-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.2;
  margin: 0;
}
.bento-location {
  font-size: 0.7rem;
  opacity: 0.55;
  margin-top: 2px;
}

/* ===== EVENTS STRIP (bottom half) ===== */
.events-strip {
  flex: 1 1 50%;
  display: flex;
  align-items: stretch;
  background: #0e172b;
  overflow-x: clip;
  overflow-y: visible;
  padding-top: 20px;
  margin-top: -48px;
}

.events-track-wrapper {
  width: 100%;
  height: 100%;
  overflow: clip;
  overflow-clip-margin: 40px;
  display: flex;
  align-items: stretch;
}

.events-cards--marquee {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  height: 100%;
  animation: marquee 40s linear infinite;
}


@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.event-card {
  flex: 0 0 calc((100vw - 4 * 20px) / 4);
  position: relative;
  background: var(--card-img, var(--card-bg, #c9b99a)) var(--card-pos, center)/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 12px;
  text-align: center;
  cursor: default;
  border-radius: 40px 40px 0 0;
  margin: 0;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.event-card:last-child { border-right: none; }
.event-card-overlay {
  position: absolute;
  inset: -1px;
  background: transparent;
  pointer-events: none;
}
.event-card:hover { transform: scale(1.04) translateY(-8px); box-shadow: 0 20px 48px rgba(0,0,0,0.28); }

.event-card-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.event-card-icon {
  position: relative;
  z-index: 1;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 8px;
}
.event-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  margin-bottom: 20px;
  font-weight: normal;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  line-height: 1.2;
}

@media (max-width: 767px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    padding: 24px 20px;
    gap: 24px;
    text-align: center;
  }
  .hero-content { text-align: center; max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-announcements { width: 100%; }
  .announce-card { padding: 12px 14px; }
}

@media (max-width: 640px) {
  .welcome-block { height: auto; min-height: 100svh; }
  .events-strip { flex: none; overflow-x: auto; scroll-snap-type: x mandatory; }
  .events-cards { width: max-content; min-height: 200px; }
  .event-card {
    flex: 0 0 40vw;
    min-height: 180px;
    scroll-snap-align: start;
    border-right: 1px solid rgba(255,255,255,0.15);
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-primary {
  background: var(--color-accent);
  color: white;
}
.btn-primary:hover { background: #7a6448; }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: white;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; position: relative; z-index: 2; }
.section-alt { background: var(--color-bg-alt); }

.section-tag {
  display: none;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(48px, 5vw, 70px);
  font-weight: normal;
  margin-bottom: 20px;
  line-height: 0.95;
  color: #0e172b;
}

.section-desc {
  color: var(--color-text-muted);
  max-width: 600px;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ===== STATS ===== */
.stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 4px;
}
.stat span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== ABOUT / MULTIFUNCTIONAL ===== */
/* ===== ABOUT / MULTIFUNCTIONAL ===== */
.about-section {
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.about-inner {
  display: flex;
  min-height: 680px;
}

/* Left text block */
.about-text {
  flex: 0 0 52%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 160px;
  position: relative;
  z-index: 1;
}

.about-text .section-tag {
  color: var(--color-accent);
}

.about-text h2 {
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  line-height: 0.95;
  margin: 14px 0 28px;
  color: var(--color-text);
}

.about-h2-italiana {
  font-family: var(--font-heading);
  font-style: italic;
  display: block;
  color: #0e172b;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 440px;
}

.about-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-features li {
  font-size: 0.88rem;
  color: var(--color-text);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.02em;
}

.about-features li::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* Stats row */
.about-stats {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 44px;
}

.about-stat-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--color-accent-light);
  line-height: 1;
  display: block;
}

.about-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-top: 4px;
}

/* Right: image slideshow — full height, flush right */
.about-slideshow {
  flex: 1 1 0;
  position: relative;
  overflow: hidden;
}

.about-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.about-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(14,14,14,0.55) 0%, transparent 50%);
}

.about-slide.active {
  opacity: 1;
}

.about-slide-dots {
  position: absolute;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.asd {
  width: 3px;
  height: 20px;
  border-radius: 2px;
  background: rgba(255,255,255,0.3);
  transition: background 0.4s ease, height 0.4s ease;
  cursor: pointer;
}

.asd.active {
  background: var(--color-accent-light);
  height: 36px;
}

/* ===== SERVICES LIST (Apple-style) ===== */
.section.services-section {
  background: #f5f5f7;
  padding: 80px 20px;
  overflow: hidden;
  position: relative;
}

.section.services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/placeholders/fondo2.jpg') center/cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.section.services-section .container,
.section.services-section .services-list {
  position: relative;
  z-index: 1;
}

.services-section .container {
  position: relative;
}

.title-deco {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.55em;
  color: var(--color-accent);
  opacity: 0.7;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

.services-italiana {
  display: inline;
}

.services-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  font-weight: normal;
  line-height: 1.15;
  white-space: nowrap;
  position: relative;
  text-align: center;
  color: var(--color-text);
  z-index: 0;
  pointer-events: none;
  margin: 0 0 40px;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: -20px;
  position: relative;
  z-index: 1;
  z-index: 1;
}

.service-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px;
  background: #fff;
  border-radius: 14px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

.service-row-icon {
  font-size: 2rem;
  line-height: 1;
  color: #1a3a6b;
}

.service-row-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-row-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: normal;
  color: var(--color-text);
}

.service-row-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .services-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .section.services-section { padding: 60px 20px; }
  .services-list { grid-template-columns: repeat(2, 1fr); }
}

/* ===== TALL CARDS ===== */
.container-fluid { width: 100%; }

.tall-section-header { margin-bottom: 32px; }

.tall-cards-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  padding-bottom: 8px;
}
.tall-cards-track::-webkit-scrollbar { display: none; }

.tall-card {
  flex: 0 0 220px;
  height: 380px;
  background: var(--card-bg, #c9b99a);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  margin-right: 12px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.tall-card:last-child { margin-right: 0; }
.tall-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

.tall-card-inner {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.48) 0%, transparent 100%);
  color: white;
}
.tall-card-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
}
.tall-card-inner h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: normal;
  margin-bottom: 8px;
  line-height: 1.2;
}
.tall-card-inner p {
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.88;
}

@media (max-width: 767px) {
  .tall-card { flex: 0 0 72vw; height: 320px; }
}

/* ===== GALLERY ===== */
.gallery-section { background: #fff; }
.gallery-section .container { margin-bottom: 40px; }

.gallery-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 400;
  color: #0e172b;
  text-decoration: none;
  border-bottom: 1.5px solid var(--color-accent);
  padding-bottom: 6px;
  transition: color 0.3s ease;
  letter-spacing: -0.01em;
}

.gallery-cta-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.gallery-cta-btn:hover { color: var(--color-accent); }
.gallery-cta-btn:hover .about-h2-italiana { color: inherit; }
.gallery-cta-btn:hover .gallery-cta-arrow { transform: translateX(8px); }

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 120px;
  grid-auto-flow: dense;
  gap: 6px;
  width: 100%;
}

.gm-item {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  position: relative;
}

.gm-item.gm-tall { grid-row: span 2; }
.gm-item.gm-wide { grid-column: span 2; }

.gm-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.gm-item:hover .gm-img { transform: scale(1.04); }

.gm-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14,23,43,0);
  transition: background 0.4s ease;
}

.gm-item:hover::after { background: rgba(14,23,43,0.18); }

/* ===== TESTIMONIALS ===== */
#testimonials .container {
  text-align: center;
}

#testimonials h2 .about-h2-italiana {
  display: inline;
}

.testimonials-grid {
  columns: 3;
  column-gap: 20px;
  padding: 48px 160px 0;
}

.testimonial {
  break-inside: avoid;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 28px 28px 24px;
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
  box-shadow: 0 2px 16px rgba(14,23,43,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  right: 20px;
  font-family: 'Italiana', serif;
  font-size: 9rem;
  color: var(--color-accent);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(14,23,43,0.12);
}

.t-stars {
  color: #f0b429;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: normal;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.t-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e172b, #2a4a8a);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.t-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.t-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.t-event {
  font-size: 0.72rem;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .testimonials-grid { columns: 2; padding: 40px 24px 0; }
}
@media (max-width: 540px) {
  .testimonials-grid { columns: 1; }
}

/* ===== CONTACT ===== */
/* ===== CONTACT SECTION ===== */
.contact-section {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 20px 80px;
  overflow: hidden;
  background: #0b1120;
  border-radius: 60px 60px 0 0;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background: url('../images/placeholders/fondo2.jpg') center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

/* Headline */
.contact-headline {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 48px;
}

.contact-tag { color: var(--color-accent-light) !important; }

.contact-heading {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.92;
  margin: 14px 0 0;
  color: #fff;
}

.contact-heading .about-h2-italiana { color: var(--color-accent-light); }

/* Floating card */
.contact-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 24px;
  padding: 48px 52px;
  width: 100%;
  max-width: 860px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: none;
  border-bottom: 1.5px solid var(--color-border);
  border-radius: 0;
  padding: 10px 0;
  font-size: 0.95rem;
  font-family: inherit;
  background: transparent;
  color: var(--color-text);
  transition: border-color var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea { resize: none; min-height: 100px; }
.contact-form .btn { align-self: center; margin-top: 4px; }

/* Contact strip */
.contact-info-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  grid-template-rows: auto auto;
  gap: 10px;
  width: 100%;
  max-width: 860px;
  margin: 40px auto 0;
}

.bilingual-badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 18px 22px;
  backdrop-filter: blur(4px);
  grid-column: 3;
  grid-row: 1 / span 2;
}

.bilingual-flags {
  font-size: 1.8rem;
  line-height: 1;
}

.bilingual-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.bilingual-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0;
}

.contact-strip { display: contents; }

.cs-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 12px 18px;
  backdrop-filter: blur(4px);
  transition: border-color 0.3s;
}

.cs-pill:hover { border-color: var(--color-accent-light); }

.cs-icon {
  font-size: 1.1rem;
  color: var(--color-accent-light);
  flex-shrink: 0;
}

.cs-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
}

.cs-value {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}

a.cs-value:hover { color: var(--color-accent-light); }

/* ===== FOOTER ===== */
/* ===== FAQ ===== */
.faq-section {
  background: var(--color-bg);
  padding: 100px 160px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: stretch;
}

.faq-heading-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  align-self: stretch;
}

.faq-list {
  align-self: stretch;
}

.faq-section .faq-title {
  font-size: clamp(48px, 5vw, 70px);
  line-height: 0.95;
  margin: 8px 0 0;
}

.faq-title .about-h2-italiana {
  color: #0e172b;
}

.faq-img-box {
  width: 100%;
  flex: 1 1 0;
  height: 0;
  min-height: 160px;
  border-radius: 20px;
  border: 2px dashed var(--color-border);
  background: rgba(14,23,43,0.04);
  overflow: hidden;
  margin-top: 8px;
}

.faq-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.faq-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.faq-cta {
  margin-top: 8px;
}

.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}

.faq-btn:hover { color: var(--color-accent); }

.faq-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.open .faq-body { grid-template-rows: 1fr; }

.faq-body > p {
  overflow: hidden;
  padding-bottom: 0;
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.75;
  transition: padding-bottom 0.35s ease;
}

.faq-item.open .faq-body > p { padding-bottom: 24px; }

@media (max-width: 900px) {
  .faq-section { padding: 80px 24px; }
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-heading-col { position: static; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg);
  padding: 0;
}

.footer-inner {
  background: #0e172b;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 64px 48px 48px;
}

.footer-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: #fff; }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0e172b;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: #1a2d4a;
}

/* Footer two-column layout */
.footer-inner {
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.footer-left .footer-nav {
  justify-content: flex-start;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-info span,
.footer-contact-info a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-info a:hover { color: rgba(255,255,255,0.85); }

.footer-contact-info i {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.footer-fb-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: linear-gradient(145deg, #1877f2, #0d5abf);
  border-radius: 24px;
  padding: 36px 40px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  width: 280px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 32px rgba(24,119,242,0.35);
}

.footer-fb-cta::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.footer-fb-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(24,119,242,0.5);
}

.footer-fb-cta:hover::before {
  opacity: 1;
}

.footer-fb-icon {
  color: #1877f2;
  background: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.footer-fb-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-fb-label {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: block;
  letter-spacing: 0.01em;
}

.footer-fb-handle {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  display: block;
}

.footer-fb-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 6px 16px;
  margin-top: 4px;
  transition: background 0.2s, color 0.2s;
}

.footer-fb-cta:hover .footer-fb-arrow {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

@media (max-width: 767px) {
  .footer { padding: 0 16px 0; }
  .footer-inner { border-radius: 40px 40px 0 0 !important; padding: 48px 24px 36px; gap: 24px; flex-direction: column !important; align-items: center; }
  .footer-left { align-items: center; }
  .footer-left .footer-nav { justify-content: center; }
  .footer-nav { gap: 20px; }
  .footer-fb-cta { max-width: 100%; }
}

/* ===== MOBILE ===== */
@media (max-width: 767px) {
  .menu-toggle { display: flex; }

  /* ----- TITLE DECORATIONS ----- */
  .title-deco { display: none; }

  .nav {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    border-radius: 0 0 20px 20px;
    flex-direction: column;
    padding: 24px 20px 32px;
    gap: 24px;
    z-index: 999;
    /* animation */
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav ul { flex-direction: column; gap: 0; width: 100%; }
  .nav ul li { border-bottom: 1px solid var(--color-border); }
  .nav ul a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    color: var(--color-text);
  }

  .section { padding: 60px 0; }

  .stats { gap: 28px; }

  .services-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form .btn { width: 100%; text-align: center; }

  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; text-align: center; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE OPTIMIZATIONS — only affects max-width: 768px
   Desktop styles are untouched above this block
   ============================================================ */
@media (max-width: 767px) {

  /* ----- GLOBAL CONTAINER & HEADER ----- */
  .container {
    padding: 0 16px !important;
  }
  .site-header {
    background: transparent;
    backdrop-filter: none;
    z-index: 100;
    transition: transform 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
  }
  .site-header.header-hidden {
    transform: translateY(-100%);
  }
  .site-header.header-bar {
    background: rgba(250,250,248,0.95);
    backdrop-filter: blur(8px);
  }
  .header-inner {
    padding: 0 16px;
  }
  .header-contact {
    display: none;
  }

  /* ----- LOGO ----- */
  .logo--fixed {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
  }
  .logo img {
    height: 80px;
    margin-top: 8px;
  }

  /* ----- HERO ----- */
  .hero-phrase {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
  .hero-content {
    margin-top: 2rem;
  }

  /* ----- ABOUT ----- */
  .about-inner {
    flex-direction: column;
    min-height: unset;
  }
  .about-text {
    flex: none;
    padding: 48px 24px 32px;
    text-align: center;
    align-items: center;
  }
  .about-features {
    text-align: left;
    width: 100%;
  }
  .about-stats {
    justify-content: center;
    gap: 24px;
  }
  .about-slideshow {
    width: 100%;
    height: 280px;
    flex: none;
  }
  .about-slide-dots {
    bottom: 12px;
  }

  /* ----- SERVICES SECTION ----- */
  .services-section h2 {
    white-space: normal;
    font-size: clamp(48px, 5vw, 70px);
  }
  .section.services-section .container {
    width: 100%;
    padding: 0 16px !important;
    box-sizing: border-box;
  }
  .services-list {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-top: 0;
  }

  /* ----- GALLERY CTA LINK ----- */
  .gallery-section .container {
    text-align: center;
  }
  .gallery-cta-btn {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 8px;
    white-space: nowrap;
    line-height: 1.1;
  }
  .gallery-cta-btn .hp-lexend {
    width: 100%;
    text-align: center;
  }

  /* ----- GALLERY MASONRY (homepage) ----- */
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 110px;
    padding: 0 8px 8px;
  }
  .gallery-masonry .gm-item {
    grid-column: span 1 !important;
  }

  /* ----- FORM ROW ----- */
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  /* ----- CONTACT INFO PILLS ----- */
  .contact-info-row {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
    padding: 0 16px;
  }
  .bilingual-badge {
    grid-column: 1;
    grid-row: unset;
  }
  .cs-pill {
    border-radius: 16px;
  }

  /* ----- TESTIMONIALS ----- */
  .testimonials-grid {
    padding: 32px 16px 0;
  }

  /* ----- FAQ ----- */
  .faq-section {
    padding: 60px 16px;
  }

  /* ----- CONTACT SECTION ----- */
  .contact-headline {
    padding: 0 16px;
  }
  .contact-card {
    margin: 0 16px;
  }

  /* ----- FOOTER ----- */
  .footer-contact-info {
    align-items: center;
    text-align: center;
  }
  .footer-fb-cta {
    width: 100%;
    box-sizing: border-box;
  }

  /* ----- NAV CONTACT PILL ----- */
  .nav ul li a[href="#contact"],
  .nav ul li a[href="index.html#contact"] {
    border-radius: 0;
    padding: 14px 0;
    background: transparent;
    color: var(--color-text);
    font-weight: normal;
  }
}

@media (max-width: 480px) {
  /* Stack form to single column on small phones */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Services single column on very small screens */
  .services-list {
    grid-template-columns: 1fr !important;
  }

  /* Gallery 2 columns on small phones */
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 110px;
  }
  .gallery-masonry .gm-item {
    grid-column: span 1 !important;
  }
}

/* =====================================================
   TABLET OPTIMIZATIONS — 768px–1024px
   Desktop-like layout with reduced padding/spacing
   ===================================================== */
@media (min-width: 768px) and (max-width: 1024px) {

  /* ----- CONTAINER & HEADER ----- */
  .container { padding: 0 48px; }
  .header-inner { padding: 0 48px; }

  /* Logo */
  .logo--fixed { left: 48px; }
  .logo img { height: 110px; margin-top: 28px; }

  /* ----- HERO ----- */
  .hero-phrase { font-size: clamp(3.2rem, 6vw, 5rem); }
  .hero-phrases { height: 160px; }
  .hero-content { margin-bottom: 100px; }

  /* ----- ABOUT ----- */
  .about-inner {
    flex-direction: row;
    min-height: 480px;
  }
  .about-text {
    flex: 1;
    padding: 48px 40px 48px 48px;
    text-align: left;
    align-items: flex-start;
  }
  .about-features { text-align: left; }
  .about-stats { justify-content: flex-start; gap: 32px; }
  .about-slideshow { width: 44%; flex: none; height: auto; }

  /* ----- SERVICES ----- */
  .services-list { grid-template-columns: repeat(3, 1fr) !important; }
  .services-section h2 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    white-space: normal;
  }

  /* ----- GALLERY MASONRY ----- */
  .gallery-masonry {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 130px;
  }

  /* ----- CONTACT INFO ----- */
  .contact-info-row { grid-template-columns: repeat(2, 1fr); padding: 0 48px; }
  .bilingual-badge { grid-column: 1 / -1; }

  /* ----- FORM ----- */
  .form-row { grid-template-columns: 1fr 1fr; }

  /* ----- TESTIMONIALS ----- */
  .testimonials-grid { padding: 32px 48px 0; }

  /* ----- FOOTER ----- */
  .footer-inner { padding: 48px; }
}

/* header-contact overlaps nav on tablet — hide it */
@media (min-width: 768px) and (max-width: 1024px) {
  .header-contact { display: none; }
}

/* ===== CONTACT FORM STATUS MESSAGE ===== */
.form-status {
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  min-height: 1.2em;
}
.form-status--ok {
  color: #2f7d4f;
}
.form-status--error {
  color: #b4423a;
}
