/* ===========================
   style.css — Cassiodoro Rooms
   Palette: arancione caldo mediterraneo
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;600;700&display=swap');

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
  --color-primary:    #E8722A;
  --color-secondary:  #8B5E3C;
  --color-accent:     #F5A05A;
  --color-bg:         #FDFAF6;
  --color-bg-warm:    #FFF4EA;
  --color-text:       #1C1208;
  --color-muted:      #6B5744;
  --color-light:      #FAE8D4;
  --color-white:      #FFFFFF;
  --font-heading:     'Playfair Display', Georgia, serif;
  --font-body:        'Lato', sans-serif;
  --max-width:        1200px;
  --radius:           10px;
  --radius-lg:        18px;
  --shadow-sm:        0 2px 12px rgba(232, 114, 42, 0.10);
  --shadow-md:        0 6px 28px rgba(139, 94, 60, 0.15);
  --shadow-lg:        0 16px 56px rgba(139, 94, 60, 0.18);
  --transition:       0.3s ease;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--color-secondary); }

ul { list-style: none; }

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.6rem;
}

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background: var(--color-bg-warm);
  max-width: 100%;
  padding: 5rem 1.5rem;
}

.section-alt > .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===========================
   HEADER & NAV
   =========================== */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-light);
  transition: box-shadow var(--transition);
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(139, 94, 60, 0.12);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #E8722A;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.9rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: var(--color-light);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--color-bg-warm);
  border-radius: 20px;
  padding: 0.2rem 0.4rem;
}

.lang-switcher a {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 14px;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: background var(--transition), color var(--transition);
}

.lang-switcher a.active,
.lang-switcher a:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 6px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid var(--color-primary);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary) !important;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff !important;
}

.btn-white {
  background: #fff;
  color: var(--color-primary) !important;
  border-color: #fff;
}

.btn-white:hover {
  background: var(--color-light);
  border-color: var(--color-light);
  color: var(--color-secondary) !important;
}

/* ===========================
   HERO — full bleed (usa div, non section, per non ereditare max-width)
   =========================== */
.hero,
.page-hero {
  width: 100%;
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://www.bebcassiodoro.com/photos/room-1.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  transform: scale(1.03);
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(28, 18, 8, 0.55) 0%,
    rgba(139, 94, 60, 0.25) 60%,
    rgba(232, 114, 42, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 6rem 4rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 114, 42, 0.2);
  border: 1px solid rgba(232, 114, 42, 0.4);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  color: #fff;
  max-width: 700px;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}

.hero-stat {
  color: #fff;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  color: var(--color-accent);
}

.hero-stat span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* ===========================
   FEATURES — lista elegante senza icone
   =========================== */
.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 3rem;
  border: 1px solid var(--color-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.features-list-item {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--color-light);
  border-right: 1px solid var(--color-light);
  background: var(--color-white);
  transition: background var(--transition);
}

.features-list-item:hover {
  background: var(--color-bg-warm);
}

.features-list-item:nth-child(even) {
  border-right: none;
}

.features-list-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.features-list-item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.features-list-item p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ===========================
   FEATURES / HIGHLIGHTS (card version — kept for fallback)
   =========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--color-bg-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ===========================
   POSIZIONE — layout testuale elegante
   =========================== */
.position-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem 3rem;
  margin-top: 3rem;
}

.position-item {
  border-top: 2px solid var(--color-primary);
  padding-top: 1.25rem;
}

.position-item h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.position-item span {
  font-size: 0.88rem;
  color: var(--color-muted);
  font-style: italic;
}

/* ===========================
   ABOUT / INTRO SECTION
   =========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-img-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 42%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
}

.about-text h2 { margin-bottom: 1.25rem; }

.about-text p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.about-highlight::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--color-light);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
}

/* ===========================
   POSITION SECTION
   =========================== */
.position-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.position-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-left: 3px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.position-card .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.position-card h4 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.position-card span {
  font-size: 0.83rem;
  color: var(--color-muted);
}

/* ===========================
   CTA BANNER
   =========================== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.65);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: #fff; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  margin-bottom: 0.7rem;
}

.footer-contact-item span:first-child {
  flex-shrink: 0;
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-credits a {
  color: var(--color-accent);
  font-weight: 700;
}

/* ===========================
   FLOATING BOOK BUTTON
   =========================== */
.fab-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.fab-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.fab-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-option:hover {
  transform: translateX(-3px);
  box-shadow: var(--shadow-lg);
}

.fab-option.booking {
  background: #003580;
  color: #fff !important;
}

.fab-option.whatsapp {
  background: #25D366;
  color: #fff !important;
}

.fab-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.4rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232, 114, 42, 0.45);
  transition: background var(--transition), box-shadow var(--transition), transform 0.2s ease;
}

.fab-main:hover {
  background: var(--color-secondary);
  box-shadow: 0 6px 28px rgba(139, 94, 60, 0.5);
  transform: translateY(-2px);
}

.fab-main.active {
  background: var(--color-secondary);
}

/* ===========================
   CAMERE — dotazioni comuni
   =========================== */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.amenity-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.amenity-item .amenity-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-right: 0.85rem;
}

/* ===========================
   GALLERIA FOTO
   =========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.gallery-grid .gallery-item:nth-child(4n+1) {
  grid-column: span 2;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,18,8,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(28,18,8,0.3);
}

.gallery-item-overlay svg {
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

/* ===========================
   CONTATTI — form & mappa
   =========================== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 0.75rem; }

.contact-info p {
  color: var(--color-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail .icon-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--color-bg-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.contact-detail h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}

.contact-detail p, .contact-detail a {
  font-size: 0.97rem;
  color: var(--color-text);
}

.contact-detail a:hover { color: var(--color-primary); }

/* Form */
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 114, 42, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B5744' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.9rem;
}

.form-note {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
  text-align: center;
}

.form-note a { color: var(--color-primary); }

/* Success/Error state */
.form-feedback {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-feedback.success {
  background: #e8f5e9;
  color: #2e7d32;
  display: block;
}

.form-feedback.error {
  background: #fdecea;
  color: #c62828;
  display: block;
}

/* Google Map */
.map-section {
  padding: 0;
  max-width: 100%;
}

.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
  filter: saturate(0.85);
}

/* ===========================
   PAGE HERO (camere, contatti) — full width, altezza originale
   =========================== */
.page-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
  transform: scale(1.03);
  transition: transform 8s ease;
}

.page-hero:hover .page-hero-bg {
  transform: scale(1.0);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    rgba(28,18,8,0.6) 0%,
    rgba(139,94,60,0.25) 60%,
    rgba(232,114,42,0.12) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 6rem 4rem 4rem;
}

.page-hero-content .section-label {
  color: var(--color-accent);
}

.page-hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.page-hero-content p {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 520px;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* ===========================
   MAPPA DOPO CTA (home)
   =========================== */
.map-after-cta {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.map-after-cta iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  filter: saturate(0.85);
}

/* ===========================
   CONTATTI — pulsanti grandi senza form
   =========================== */
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact-big-btn {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.contact-big-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.contact-big-btn.booking {
  background: #003580;
  color: #fff !important;
}

.contact-big-btn.whatsapp {
  background: #25D366;
  color: #fff !important;
}

.contact-big-btn .cbtn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-big-btn .cbtn-text strong {
  display: block;
  font-size: 1rem;
}

.contact-big-btn .cbtn-text span {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 400;
}

@media (max-width: 600px) {
  .page-hero-content { padding: 5rem 2rem 3rem; }
  .map-after-cta iframe { height: 280px; }
}
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem;
}

.error-page h1 {
  font-size: 8rem;
  color: var(--color-primary);
  line-height: 1;
}

.error-page h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.error-page p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

/* ===========================
   POLICY PAGES
   =========================== */
.policy-page {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.policy-page h1 { margin-bottom: 2rem; }

.policy-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.policy-page h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #333;
}

.policy-page p,
.policy-page li {
  color: #444;
  line-height: 1.8;
}

.policy-page ul {
  list-style: disc;
  margin: 0.5rem 0 1rem 1.5rem;
}

.policy-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.policy-page table th,
.policy-page table td {
  border: 1px solid #ddd;
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.policy-page table th {
  background: #f5f5f5;
  font-weight: 600;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeInUp 0.65s ease forwards;
}

.animate-fade-up:nth-child(2) { animation-delay: 0.1s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.2s; }
.animate-fade-up:nth-child(4) { animation-delay: 0.3s; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img-accent { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contacts-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .position-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-light);
    box-shadow: var(--shadow-md);
    gap: 0.1rem;
    z-index: 300;
  }
  .burger { display: flex; }
  header { position: sticky; }
  nav {
    position: relative;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  /* Lang switcher mobile: mostra solo lingua non attiva come pulsante singolo */
  .lang-switcher {
    padding: 0.15rem 0.3rem;
  }
  .lang-switcher a.active {
    display: none;
  }
  .lang-switcher a:not(.active) {
    background: var(--color-primary);
    color: #fff;
    padding: 0.3rem 0.65rem;
  }

  /* Burger non sporge */
  .burger {
    flex-shrink: 0;
    margin-left: auto;
  }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .gallery-item:nth-child(4n+1) { grid-column: span 1; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .features-list { grid-template-columns: 1fr; }
  .features-list-item { border-right: none; }
  .features-list-item:nth-child(odd) { border-right: none; }
  .features-list-item:last-child { border-bottom: none; }
  .features-list-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--color-light); }
  .features-list-item:last-child { border-bottom: none; }
  .position-list { grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; }
  .hero-content { padding: 5rem 2rem 3rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  /* FAB: mostra sempre il testo su mobile */
  .fab-main {
    padding: 0.85rem 1.2rem;
    border-radius: 30px;
    width: auto;
    height: auto;
  }
  .fab-main span.fab-label {
    display: inline;
  }
  .position-list { grid-template-columns: 1fr; }
  .hero-content { padding: 4rem 1.5rem 2.5rem; }
}
