/* Casa San Gregorio — shared stylesheet (DE/EN/IT) */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-brick: #a0522d;
  --color-brick-dark: #7a3d21;
  --color-olive: #6b7454;
  --color-cream: #faf6ee;
  --color-cream-dark: #f0e7d6;
  --color-dark: #3b2e22;
  --color-white: #ffffff;
  --shadow: 0 10px 30px rgba(59, 46, 34, 0.12);
  --radius: 14px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--color-dark);
  background: var(--color-cream);
  line-height: 1.6;
}

h1, h2, h3, .brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--color-brick-dark); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--color-brick); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--color-cream-dark); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header p { color: #6b5c48; }
.eyebrow {
  display: inline-block;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-olive);
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--color-brick); color: var(--color-white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--color-brick-dark); }
.btn-outline { background: transparent; border-color: var(--color-white); color: var(--color-white); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(59,46,34,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand-name { font-size: 1.15rem; color: var(--color-brick-dark); }
.brand-name small { display: block; font-family: 'Inter', sans-serif; font-size: 0.65rem; letter-spacing: 1.5px; color: var(--color-olive); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { color: var(--color-dark); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--color-brick); text-decoration: none; }

.lang-switch { display: flex; gap: 6px; align-items: center; }
.lang-switch a {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  color: #7a6a55;
}
.lang-switch a.active { background: var(--color-brick); color: var(--color-white); }

.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(25,18,12,0.35) 0%, rgba(20,14,8,0.9) 100%); }
.hero-content { position: relative; z-index: 2; padding: 60px 24px 72px; max-width: var(--max-width); margin: 0 auto; width: 100%; }
.hero-content .eyebrow { color: #f0e2c8; }
.hero-content h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 0.2em; }
.hero-content .subtitle { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 560px; margin-bottom: 1.8em; color: #f4ede0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.6rem; font-family: 'Playfair Display', serif; }
.hero-facts span { font-size: 0.8rem; opacity: 0.85; letter-spacing: 0.5px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text .eyebrow { }

/* Rooms */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.room-card { background: var(--color-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.room-card a { display: block; cursor: zoom-in; overflow: hidden; }
.room-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; display: block; transition: transform 0.3s ease; }
.room-card a:hover img { transform: scale(1.06); }
.room-card-body { padding: 20px 22px; }
.room-card-body h3 { margin-bottom: 6px; }
.room-card-body p { font-size: 0.92rem; color: #6b5c48; margin-bottom: 0; }

/* Amenities */
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.amenity { display: flex; gap: 14px; align-items: flex-start; background: var(--color-white); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.amenity .icon { font-size: 1.6rem; line-height: 1; }
.amenity h3 { font-size: 1.05rem; margin-bottom: 4px; }
.amenity p { font-size: 0.88rem; color: #6b5c48; margin: 0; }

/* Location */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.location-grid iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.location-list { list-style: none; padding: 0; margin: 20px 0 0; }
.location-list li { padding-left: 26px; position: relative; margin-bottom: 10px; color: #6b5c48; }
.location-list li::before { content: "\2726"; position: absolute; left: 0; color: var(--color-brick); }

/* Gallery */
.gallery-category { margin-bottom: 44px; }
.gallery-category:last-child { margin-bottom: 0; }
.gallery-category-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-olive);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(59,46,34,0.1);
}
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid a { display: block; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.gallery-grid img { aspect-ratio: 1/1; object-fit: cover; width: 100%; transition: transform 0.3s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* Booking form */
.booking-section { background: var(--color-brick-dark); color: var(--color-white); }
.booking-section .section-header p { color: #eaddc8; }
.booking-section h2 { color: var(--color-white); }
.booking-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: flex-start; }
.booking-info h3 { color: var(--color-white); }
.booking-info p { color: #eaddc8; }
.booking-info-box { background: rgba(255,255,255,0.08); padding: 22px; border-radius: var(--radius); margin-top: 24px; }
.booking-info-box a { color: #ffd9b0; }

form.booking-form { background: var(--color-white); color: var(--color-dark); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--color-brick-dark); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2d6c0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fffdf9;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-brick); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: #6b5c48; }
.form-consent input { width: auto; margin-top: 3px; }
.form-hidden { position: absolute; left: -9999px; }
.form-note { font-size: 0.78rem; color: #8a7a63; margin-top: 6px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-size: 0.9rem; display: none; }
.form-status.success { display: block; background: #e7efdd; color: #45542f; }
.form-status.error { display: block; background: #f6ded9; color: #7a2e1c; }
.booking-form button[type="submit"] { width: 100%; margin-top: 6px; }
.booking-form button[type="submit"]:disabled { opacity: 0.6; cursor: wait; }

/* Footer */
.site-footer { background: var(--color-dark); color: #e6dccb; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 46px; margin-bottom: 12px; }
.footer-brand p { color: #b8a98d; font-size: 0.9rem; }
.site-footer h4 { font-family: 'Inter', sans-serif; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; color: #d8c9ac; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cbbfa5; }
.site-footer a:hover { color: var(--color-white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 0.8rem; color: #9a8b71; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Legal pages */
.legal-page { padding: 56px 0 90px; }
.legal-page .container { max-width: 780px; }
.legal-page h1 { margin-bottom: 0.3em; }
.legal-page h2 { font-size: 1.3rem; margin-top: 1.8em; }
.placeholder-note {
  background: #fff4e0;
  border: 1.5px dashed #d9a355;
  color: #7a4e14;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin: 10px 0 22px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(20,14,8,0.92);
  display: none; align-items: center; justify-content: center; z-index: 1000; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; }
.lightbox-close { position: absolute; top: 24px; right: 30px; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; }

@media (max-width: 900px) {
  .about-grid, .location-grid, .booking-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; background: var(--color-cream); flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 16px; border-bottom: 1px solid rgba(0,0,0,0.08); transform: translateY(-130%); transition: transform 0.25s ease; }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--color-brick-dark); }
  .footer-grid { grid-template-columns: 1fr; }
}
