@charset "utf-8";

/* ============================================================
   ANTICO BAGLIO — Design System
   Mediterranean palette · Modern layout · Responsive
   ============================================================ */

:root {
  --c-blue:    #1b6b8a;
  --c-blue-dk: #134f69;
  --c-blue-lt: #e8f4f8;
  --c-terra:   #c8693a;
  --c-sand:    #f7f3ed;
  --c-sand-dk: #ede6db;
  --c-navy:    #1e2a35;
  --c-white:   #ffffff;
  --c-text:    #3c3c3c;
  --c-muted:   #7a7a7a;
  --c-border:  #e0d9d0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'Open Sans', helvetica, arial, sans-serif;

  --radius:  8px;
  --radius-lg: 14px;
  --shadow:  0 2px 12px rgba(30,42,53,.10);
  --shadow-md: 0 4px 24px rgba(30,42,53,.15);

  --transition: 0.22s ease;
  --max-w: 1100px;
}

/* ── Reset / Base ─────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--c-sand);
  background-image: url(../img/layout/background2-hd.jpg);
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
}

/* ── Layout wrapper ───────────────────────────────────────── */

.CONTEINER {
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  width: 90%;
  max-width: var(--max-w);
  margin: 36px auto 60px;
  overflow: hidden;
  text-align: left;
}

/* ── Header / Logo ────────────────────────────────────────── */

.HEADER {
  width: 100%;
  background: var(--c-white);
  border-bottom: 3px solid var(--c-sand-dk);
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
}

/* ── Navigation ───────────────────────────────────────────── */

.NAVBAR {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  background: var(--c-navy);
  padding: 0 8px;
}

.NAVBAR a {
  text-decoration: none;
}

.NAVELEMENT {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  cursor: pointer;
}

.NAVELEMENT:hover {
  color: var(--c-white);
  border-bottom-color: var(--c-terra);
  background: rgba(255,255,255,0.06);
}

#active {
  color: var(--c-white);
  border-bottom: 3px solid var(--c-terra);
}

/* ── Booking strip ────────────────────────────────────────── */

.BOOKING {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--c-blue-lt);
  border-top: 3px solid var(--c-blue);
  border-bottom: 3px solid var(--c-blue);
}

.BOOKING img {
  height: 32px;
  width: auto;
  display: block;
}

/* ── Homepage slider ──────────────────────────────────────── */

#SLIDECONTAINER {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--c-navy);
}

#banner-fade,
#banner-slide {
  margin: 0;
  width: 100%;
  max-width: 100% !important; /* override BJQS inline max-width: 900px */
  position: relative;
}

ul.bjqs li.bjqs-slide img {
  width: 100%;
  display: block;
  object-fit: cover;
}

ul.bjqs-controls.v-centered li a {
  display: block;
  padding: 10px 14px;
  background: rgba(255,255,255,0.85);
  color: var(--c-navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
  border-radius: 4px;
}

ul.bjqs-controls.v-centered li a:hover {
  background: var(--c-terra);
  color: var(--c-white);
}

ol.bjqs-markers li a {
  padding: 5px 10px;
  background: rgba(255,255,255,0.3);
  color: var(--c-white);
  margin: 4px;
  text-decoration: none;
  border-radius: 50%;
  transition: background var(--transition);
}

ol.bjqs-markers li.active-marker a,
ol.bjqs-markers li a:hover {
  background: var(--c-terra);
}

p.bjqs-caption {
  background: rgba(30,42,53,0.55);
  color: var(--c-white);
  font-size: 0.85rem;
  padding: 6px 12px;
}

/* ── Main content area ────────────────────────────────────── */

.CONTENT {
  display: block;
  padding: 32px 5%;
  text-align: left;
}

.CONTENT > *:first-child {
  margin-top: 0;
}

/* ── Sitemap tree ─────────────────────────────────────────── */

.sitemap-tree ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sitemap-tree > ul > li {
  margin-bottom: 8px;
}

.sitemap-tree > ul > li > a {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-blue-dk);
}

.sitemap-tree > ul > li > ul {
  margin-top: 10px;
  padding-left: 24px;
  border-left: 3px solid var(--c-sand-dk);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sitemap-tree > ul > li > ul > li > a {
  color: var(--c-text);
  text-decoration: none;
  transition: color var(--transition);
  font-size: 0.97rem;
}

.sitemap-tree > ul > li > ul > li > a:hover {
  color: var(--c-terra);
}

/* ── Typography ───────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--c-navy);
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-sand-dk);
}

h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--c-blue);
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 18px 0 8px;
}

p {
  color: var(--c-text);
  font-size: 1rem;
  margin-bottom: 14px;
  line-height: 1.7;
}

a {
  color: var(--c-blue);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--c-terra);
  text-decoration: none;
}

em {
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 24px 0;
}

/* ── Floating images in content ───────────────────────────── */

.FLOATRIGHT {
  float: right;
  margin: 0 0 16px 24px;
  max-width: 38%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.FLOATLEFT {
  float: left;
  margin: 0 24px 16px 0;
  max-width: 38%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.CONTENT img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Apartment feature table ──────────────────────────────── */

.boxer {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 16px 0;
}

.boxer .box {
  padding: 10px 14px;
  text-align: right;
  vertical-align: middle;
  font-weight: 600;
  color: var(--c-navy);
  background: var(--c-blue-lt);
  border: 1px solid var(--c-border);
  white-space: nowrap;
  width: 38%;
}

.boxer .none {
  padding: 10px 14px;
  text-align: left;
  vertical-align: middle;
  border: 1px solid var(--c-border);
  color: var(--c-text);
}

.boxer .green {
  padding: 10px 14px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid var(--c-border);
  background: #e6f9ed;
  color: #1a6632;
  font-weight: 600;
}

.boxer .yellow {
  padding: 10px 14px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid var(--c-border);
  background: #fffbe6;
  color: #7a6200;
  font-weight: 600;
}

.boxer .red {
  padding: 10px 14px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid var(--c-border);
  background: #fde8e8;
  color: #8b1a1a;
  font-weight: 600;
}

/* ── Slick carousel (apartment galleries) ─────────────────── */

.slider {
  text-align: center;
  margin: 16px 0 8px;
}

.slider img {
  max-height: 220px;
  width: auto !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.slider img:hover {
  transform: scale(1.03);
}

/* ── Footer ───────────────────────────────────────────────── */

.FOOTER {
  display: block;
  background: var(--c-navy);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px 24px;
}

.FOOTER p {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin: 6px 0;
}

.FOOTER a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
}

.FOOTER a:hover {
  color: var(--c-terra);
}

.FOOTER hr {
  border-top-color: rgba(255,255,255,0.15);
  margin: 8px 0;
}

/* ── Utility / misc ───────────────────────────────────────── */

.faro {
  float: left;
  max-width: 100%;
  border-radius: var(--radius);
  margin: 6px 16px 6px 0;
  box-shadow: var(--shadow);
}

.undercostruction {
  color: var(--c-white);
  font-size: 2rem;
  font-family: var(--font-display);
  background: var(--c-blue);
  text-align: center;
  padding: 32px;
  border-radius: var(--radius);
}

/* ── Events page ──────────────────────────────────────────── */

.eventi-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.evento-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.evento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.evento-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.evento-card .evento-body {
  padding: 10px 16px 14px;
}

.evento-card h2 {
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--c-navy);
  border: none;
  padding: 0;
}

.evento-card .evento-periodo {
  font-size: 0.8rem;
  color: var(--c-terra);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Maps page ────────────────────────────────────────────── */

#container-map {
  width: 100%;
  height: 480px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 20px 0;
}

#map-canvas {
  width: 100%;
  height: 100%;
}

#save-widget {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 10;
  width: 220px;
  background: var(--c-white);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  padding: 0;
  font-size: 0.88rem;
  overflow: hidden;
}

#save-widget::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--c-navy), var(--c-terra));
}

#save-widget #baglio {
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-navy);
  margin: 12px 16px 6px;
  border: none;
  padding: 0;
}

#save-widget hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 0 16px 10px;
}

#save-widget p {
  margin: 0 16px 12px;
  line-height: 1.5;
  color: var(--c-text);
}

#save-widget small {
  color: var(--c-text-muted, #888);
}

#save-widget a {
  display: block;
  background: var(--c-terra);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background var(--transition);
}

#save-widget a:hover {
  background: var(--c-navy);
}

@media (max-width: 480px) {
  #save-widget {
    width: calc(100% - 28px);
    max-width: 220px;
    left: 14px;
    right: 14px;
  }
}

.indicazioni {
  padding: 16px 20px;
  max-width: 600px;
  background: var(--c-sand);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin: 16px 0;
}

/* ── Contact form ─────────────────────────────────────────── */

.modulo {
  padding: 28px 32px;
  max-width: 720px;
  background: var(--c-sand);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin: 16px 0;
}

.modulo p,
.modulo label {
  font-size: 0.95rem;
  color: var(--c-text);
  font-weight: 500;
}

input.base,
.base {
  display: inline-block;
  width: 220px;
  padding: 8px 12px;
  margin: 6px 8px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--c-text);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.06);
  transition: border-color var(--transition), box-shadow var(--transition);
  height: auto;
}

input.base:focus,
.base:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(27,107,138,.15);
}

input.green {
  border-color: #22a04a;
  box-shadow: 0 0 0 3px rgba(34,160,74,.12);
  background: #f2fbf5;
  width: 220px;
  padding: 8px 12px;
  margin: 6px 8px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--c-text);
}

input.red {
  border-color: #d93a3a;
  box-shadow: 0 0 0 3px rgba(217,58,58,.12);
  background: #fff5f5;
  width: 220px;
  padding: 8px 12px;
  margin: 6px 8px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--c-text);
}

.modulo textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 200px;
  padding: 10px 14px;
  margin: 8px 0;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--c-text);
  resize: vertical;
  transition: border-color var(--transition);
}

.modulo textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(27,107,138,.15);
}

.contatti {
  padding: 20px 24px;
  max-width: 420px;
  background: var(--c-sand);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin: 16px 0;
}

#obbligo {
  float: right;
  font-size: 0.78rem;
  color: var(--c-terra);
  font-weight: 500;
}

.error-msg {
  display: none;
  font-size: 0.78rem;
  color: #d93a3a;
  margin: 2px 0 4px 10px;
  font-weight: 500;
}

#nome_error, #cognome_error, #email_error, #numero_error {
  display: none;
  font-size: 0.78rem;
  color: #d93a3a;
  margin: 2px 0 4px 10px;
}

/* Submit button */
.btn-submit {
  display: inline-block;
  padding: 12px 32px;
  background: var(--c-blue);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 12px;
}

.btn-submit:hover {
  background: var(--c-blue-dk);
  transform: translateY(-1px);
}

/* Booking CTA button style */
.btn-booking {
  display: inline-block;
  padding: 10px 28px;
  background: var(--c-terra);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition);
  text-transform: uppercase;
}

.btn-booking:hover {
  background: #a8532a;
  color: var(--c-white);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .CONTEINER {
    width: 96%;
    margin: 16px auto 32px;
    border-radius: var(--radius);
  }

  .NAVBAR {
    flex-wrap: wrap;
  }

  .NAVELEMENT {
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .CONTENT {
    padding: 20px 4%;
  }

  .FLOATRIGHT,
  .FLOATLEFT {
    float: none;
    max-width: 100%;
    margin: 0 0 16px 0;
    display: block;
  }

  .boxer {
    font-size: 0.85rem;
  }

  .boxer .box {
    width: 42%;
  }

  .modulo {
    padding: 20px 16px;
  }

  input.base, .base, input.green, input.red {
    width: 100%;
    margin: 6px 0;
  }

  #SLIDECONTAINER {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .NAVELEMENT {
    padding: 9px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.1rem;
  }
}