/* cavour.css - CSS puro, nessuna dipendenza da Bootstrap o SCSS */

/* Font in locale (ex Google Fonts) */
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-400.005abdc3a2d3.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-400-italic.985f75b87984.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-700.0621f078b040.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-700-italic.21f8fab30c9d.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-400.63126eeda831.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-700.82175d611596.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --primary: #800020;
  --secondary: #006243;
  --primary-light: gold;
  --secondary-light: #009874;
  --paper1: #f2e0c8;
  --paper2: #e8d3b6;
  --paper3: #bd8d51;
  --dark: #343a40;
  --light: #f8f9fa;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
}
h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: .5rem; font-weight: 500; line-height: 1.2; }
p { margin-top: 0; margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; background-color: transparent; }
a:hover { color: #5c0017; text-decoration: underline; }
img { vertical-align: middle; border-style: none; }
ul, ol { margin-top: 0; margin-bottom: 1rem; }
button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; }
table { border-collapse: collapse; }
hr { margin-top: 1rem; margin-bottom: 1rem; border: 0; border-top: 1px solid rgba(0,0,0,.1); }

/* ---------- Tema tipografico ---------- */
body {
  font-family: "EB Garamond", serif;
  font-size: 1.5em;
  width: 100%;
}
body.error404 { background-color: #fbfbf4; }
h1, h2 { font-family: "Cinzel", serif; }
h1.light-title { color: var(--paper3); }

/* ---------- Layout: container / griglia ---------- */
.container { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }
.container-fluid { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.row.no-gutters { margin-right: 0; margin-left: 0; }
.row.no-gutters > [class*="col"] { padding-right: 0; padding-left: 0; }

.col-3, .col-12, .col-auto,
.col-sm-2, .col-sm-3, .col-sm-4, .col-sm-6, .col-sm-9,
.col-md-3, .col-md-6,
.col-lg-3, .col-lg-4, .col-lg-6, .col-lg-9,
.col-xl-4, .col-xl-6 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
.col-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
@media (min-width: 576px) {
  .col-sm-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .col-sm-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
  .col-sm-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
}
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-md-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
}
@media (min-width: 1200px) {
  .col-xl-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
}

/* ---------- Display / flex ---------- */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-list-item { display: list-item !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
@media (min-width: 576px) {
  .d-sm-block { display: block !important; }
  .mx-sm-2 { margin-right: .5rem !important; margin-left: .5rem !important; }
  .mr-sm-2 { margin-right: .5rem !important; }
  .my-sm-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
  .px-sm-5 { padding-right: 3rem !important; padding-left: 3rem !important; }
  .p-sm-3 { padding: 1rem !important; }
  .p-sm-5 { padding: 3rem !important; }
  .pr-sm-5 { padding-right: 3rem !important; }
  .pb-sm-5 { padding-bottom: 3rem !important; }
  .mt-sm-5 { margin-top: 3rem !important; }
}
@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .p-md-0 { padding: 0 !important; }
  .p-md-3 { padding: 1rem !important; }
  .p-md-5 { padding: 3rem !important; }
  .px-md-5 { padding-right: 3rem !important; padding-left: 3rem !important; }
  .mt-md-0 { margin-top: 0 !important; }
}
@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .p-lg-5 { padding: 3rem !important; }
  .px-lg-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
  .ml-lg-5 { margin-left: 3rem !important; }
}
@media (min-width: 1200px) {
  .d-xl-none { display: none !important; }
  .d-xl-block { display: block !important; }
  .m-xl-5 { margin: 3rem !important; }
  .ml-xl-0 { margin-left: 0 !important; }
}

/* ---------- Spacing ---------- */
.m-0 { margin: 0 !important; }
.m-3 { margin: 1rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.my-2 { margin-top: .5rem !important; margin-bottom: .5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.mx-2 { margin-right: .5rem !important; margin-left: .5rem !important; }
.mx-3 { margin-right: 1rem !important; margin-left: 1rem !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }
.ml-0 { margin-left: 0 !important; }
.ml-5 { margin-left: 3rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-auto { margin-right: auto !important; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-5 { padding: 3rem !important; }
.pt-2 { padding-top: .5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pl-0 { padding-left: 0 !important; }
.pl-4 { padding-left: 1.5rem !important; }
.pl-5 { padding-left: 3rem !important; }
.pr-0 { padding-right: 0 !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* ---------- Colori / testo / bordi ---------- */
.bg-dark { background-color: var(--dark) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-white { background-color: #fff !important; }
.text-light { color: var(--light) !important; }
.text-primary { color: var(--primary) !important; }
.text-paper2 { color: var(--paper2) !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.text-justify { text-align: justify !important; }
.border { border: 1px solid #dee2e6 !important; }
.border-top { border-top: 1px solid #dee2e6 !important; }
.border-bottom { border-bottom: 1px solid #dee2e6 !important; }
.border-left { border-left: 1px solid #dee2e6 !important; }
.border-right { border-right: 1px solid #dee2e6 !important; }
.shadow { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; }
.display-1 { font-size: 6rem; font-weight: 300; line-height: 1.2; }
.display-3 { font-size: 4.5rem; font-weight: 300; line-height: 1.2; }
.display-4 { font-size: 3.5rem; font-weight: 300; line-height: 1.2; }
.lead { font-size: 1.25rem; font-weight: 300; }
.img-fluid { max-width: 100%; height: auto; }
img.icona { width: 1em; height: 1em; vertical-align: -0.125em; }
.chat-msg { white-space: pre-wrap; margin-bottom: 1rem; }
.chat-msg.user { text-align: right; color: var(--primary); margin-bottom: 1.75rem; }
.chat-msg.assistant { margin-bottom: 1.5rem; }
.chat-sources, .chat-sources small, .chat-sources a { font-size: 1.25rem; color: #444; }
.chat-sources a { margin-right: .75rem; }
.chat-input, .chat-send { font-size: 1.25rem; padding: .6rem 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.list-unstyled { list-style: none; padding-left: 0; }

/* ---------- Navbar ---------- */
.navbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: .5rem 1rem; }
.navbar-dark { background-color: var(--dark); }
.navbar-light { background-color: var(--light); }
.navbar-brand { display: inline-block; padding-top: .3125rem; padding-bottom: .3125rem; margin-right: 1rem; font-size: 1.25rem; line-height: inherit; white-space: nowrap; }
.navbar-nav { display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0; list-style: none; }
.navbar-nav .nav-link { padding-right: 0; padding-left: 0; }
.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-link { display: block; padding: .5rem 1rem; }
.nav-link:hover, .nav-link:focus { text-decoration: none; }
.navbar-dark .navbar-nav .nav-link { color: rgba(255,255,255,.5); }
.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:focus { color: rgba(255,255,255,.75); }
.navbar-dark .navbar-nav .nav-link.active, .navbar-dark .navbar-nav .nav-item.active .nav-link { color: #fff; }
.navbar-light .navbar-nav .nav-link { color: rgba(0,0,0,.5); }
.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus { color: rgba(0,0,0,.7); }
.navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .nav-item.active .nav-link { color: rgba(0,0,0,.9); }
.navbar-toggler {
  display: block; padding: .25rem .75rem; font-size: 1.25rem; line-height: 1;
  background-color: transparent; border: 1px solid rgba(255,255,255,.1); border-radius: .25rem; cursor: pointer;
}
.navbar-light .navbar-toggler { border-color: rgba(0,0,0,.1); }
.navbar-toggler-icon {
  display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle; content: "";
  background: no-repeat center/100% 100% url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-collapse { display: none; flex-basis: 100%; flex-grow: 1; align-items: center; }
.navbar-collapse.open { display: flex; flex-direction: column; }
.collapse { display: none; }
@media (min-width: 992px) {
  .navbar-expand-lg { flex-flow: row nowrap; justify-content: flex-start; }
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
  .navbar-expand-lg .navbar-nav .nav-link { padding-right: .5rem; padding-left: .5rem; }
  .navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; }
  .navbar-expand-lg .navbar-toggler { display: none; }
}
@media (min-width: 576px) {
  .navbar-expand-sm { flex-flow: row nowrap; justify-content: flex-start; }
  .navbar-expand-sm .navbar-nav { flex-direction: row; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; padding: .75rem 1rem; margin-bottom: 1rem; list-style: none; background-color: #e9ecef; border-radius: .25rem; }
.breadcrumb-item + .breadcrumb-item::before { display: inline-block; padding-right: .5rem; padding-left: .5rem; color: #6c757d; content: "/"; }
.breadcrumb-item.active { color: #6c757d; }

/* ---------- Form ---------- */
.form-control {
  display: block; width: 100%; padding: .375rem .75rem; font-size: 1rem; font-weight: 400; line-height: 1.5;
  color: #495057; background-color: #fff; background-clip: padding-box;
  border: 1px solid #ced4da; border-radius: .25rem; transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-control:focus { color: #495057; background-color: #fff; border-color: #80bdff; outline: 0; box-shadow: 0 0 0 .2rem rgba(0,123,255,.25); }
.custom-select {
  display: block; width: 100%; padding: .375rem 1.75rem .375rem .75rem; font-size: 1rem; font-weight: 400; line-height: 1.5;
  color: #495057; background-color: #fff; border: 1px solid #ced4da; border-radius: .25rem;
}
.form-inline { display: flex; flex-flow: row wrap; align-items: center; }
.form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; }
.form-inline .custom-select { display: inline-block; width: auto; vertical-align: middle; }
.form-group { margin-bottom: 1rem; }
.form-row { display: flex; flex-wrap: wrap; margin-right: -5px; margin-left: -5px; }
.col-form-label { padding-top: calc(.375rem + 1px); padding-bottom: calc(.375rem + 1px); margin-bottom: 0; font-size: inherit; line-height: 1.5; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block; font-weight: 400; color: #212529; text-align: center; vertical-align: middle; cursor: pointer;
  background-color: transparent; border: 1px solid transparent; padding: .375rem .75rem; font-size: 1rem; line-height: 1.5;
  border-radius: .25rem; transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}
.btn:hover { text-decoration: none; }
.btn:focus { outline: 0; box-shadow: 0 0 0 .2rem rgba(0,123,255,.25); }
.btn-outline-dark { color: var(--dark); border-color: var(--dark); }
.btn-outline-dark:hover { color: #fff; background-color: var(--dark); border-color: var(--dark); }
.btn-outline-warning { color: #ffc107; border-color: #ffc107; }
.btn-outline-warning:hover { color: #212529; background-color: #ffc107; border-color: #ffc107; }
.btn-success { color: #fff; background-color: #28a745; border-color: #28a745; }
.btn-success:hover { color: #fff; background-color: #218838; border-color: #1e7e34; }
.btn-primary { color: #fff; background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { color: #fff; background-color: #5c0017; border-color: #5c0017; }
.btn-large { padding: .75rem 1.5rem; font-size: 1.25rem; line-height: 1.5; border-radius: .3rem; }

/* ---------- Card ---------- */
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0; word-wrap: break-word;
  background-color: #fff; background-clip: border-box; border: 1px solid rgba(0,0,0,.125); border-radius: .25rem;
}
.card-body { flex: 1 1 auto; padding: 1.25rem; }
.card-title { margin-bottom: .75rem; }
.card-text { margin-bottom: 0; }
.card-img-top { width: 100%; border-top-left-radius: calc(.25rem - 1px); border-top-right-radius: calc(.25rem - 1px); }
.card-header { padding: .75rem 1.25rem; margin-bottom: 0; background-color: rgba(0,0,0,.03); border-bottom: 1px solid rgba(0,0,0,.125); }
.card-footer { padding: .75rem 1.25rem; background-color: rgba(0,0,0,.03); border-top: 1px solid rgba(0,0,0,.125); }
.card-deck { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Media / pagination / blockquote / jumbotron ---------- */
.media { display: flex; align-items: flex-start; }
.media-body { flex: 1; }
.pagination { display: flex; padding-left: 0; list-style: none; border-radius: .25rem; }
.page-link {
  position: relative; display: block; padding: .5rem .75rem; margin-left: -1px; line-height: 1.25;
  color: var(--primary); background-color: #fff; border: 1px solid #dee2e6;
}
.page-link:hover { color: var(--primary); background-color: #e9ecef; border-color: #dee2e6; }
.page-item.active .page-link { z-index: 1; color: #fff; background-color: var(--primary); border-color: var(--primary); }
.blockquote, blockquote.blockquote { margin: 0 0 1rem; font-size: 1.25rem; }
.blockquote-footer { display: block; font-size: 80%; color: #6c757d; }
.blockquote-footer::before { content: "\2014\00A0"; }
.jumbotron { padding: 2rem 1rem; margin-bottom: 2rem; background-color: #e9ecef; border-radius: .3rem; }
@media (min-width: 576px) { .jumbotron { padding: 4rem 2rem; } }

/* ---------- Stili custom del sito (ex _base.scss / _home.scss) ---------- */
footer a { color: var(--primary-light); }
footer a:hover { color: var(--secondary-light); }
footer li { list-style: none; }

a.magnifier { cursor: zoom-in; }
.rich-text img { max-width: 100%; height: auto; }

.responsive-object { position: relative; }
.responsive-object iframe, .responsive-object object, .responsive-object embed {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

.block-image { text-align: center; }
.block-image img { max-width: 100%; height: auto; }

.paper1 { background-color: var(--paper1); }

.page { padding: 5%; }
.page a:link, .page a:visited { color: var(--primary); }
.page a:hover { color: #ffab00; }

.gallery-card { min-width: 320px; max-width: 320px; }
.gallery-card-big { max-width: 512px; min-width: 512px; }
.gallery-card-big .card-img-top { max-width: 512px; max-height: 320px; }
.gallery-card-big .card-img-top:hover { transform: scale(1.05); }
@media screen and (max-width: 550px) {
  .gallery-card-big { max-width: 320px; min-width: 320px; }
  .gallery-card-big .card-img-top { max-width: 320px; max-height: 208px; }
}

.block-title {
  font-family: "Cinzel", serif; font-size: 1.2em;
  border-bottom: 1px solid var(--paper3); margin-bottom: 16px;
}
.block-caption { font-size: small; text-align: right; margin-bottom: 8px; }

.card.calendar .card-body .card-title { background-color: var(--primary); color: antiquewhite; }
.card.calendar .card-body .card-text { color: var(--primary); font-weight: bold; }
.card.small-calendar { width: 64px; position: absolute; font-size: small; }
.card.small-calendar .calendar-month { background-color: var(--primary); color: white; }
.card.small-calendar .calendar-day { color: var(--primary); font-weight: bold; font-size: 1.2em; }

.attribution-box { position: absolute; bottom: 0; background-color: rgba(0,0,0,.5); }
.attribution-box small { color: rgba(255,255,255,.5); }
.attribution-box .rich-text { color: rgba(255,255,255,.5); font-size: small; }

#head-title1 { color: silver; font-family: "Cinzel", serif; }
#head-title2 a { color: var(--paper3); font-family: "Cinzel", serif; }

table { border: none; }

.rwd-video { height: 0; overflow: hidden; padding-bottom: 56.25%; padding-top: 30px; position: relative; }
.rwd-video iframe, .rwd-video object, .rwd-video embed {
  height: 100%; left: 0; position: absolute; top: 0; width: 100%;
}

.video-placeholder { position: relative; }
.video-placeholder .video-cookie-info { padding: 5%; color: white; background-color: black; }
.video-cookie-info a { color: var(--primary-light); }

.text-banner { color: var(--paper3); }

.first-img-box {
  background-image: url("/static/images/villa_cavour_santena.4d9887c045b6.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
}

.random-quote { font-size: 1.2em; }
.random-quote .icona { color: var(--primary); }

.first-strip { background-color: #030103; }
.first-strip a.nav-link { color: var(--primary-light); }
.first-strip a.nav-link:hover { color: var(--secondary-light); }

ul.menu-club { font-size: 1.5em; }

/* ---------- Lightbox vanilla (sostituisce ekko-lightbox) ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 1050;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lightbox-overlay img { max-width: 90vw; max-height: 78vh; }
.lightbox-caption { color: #fff; margin-top: 1rem; text-align: center; max-width: 80vw; font-size: 1rem; }
.lightbox-close {
  position: absolute; top: .75rem; right: 1.25rem; color: #fff; font-size: 2rem;
  background: none; border: none; cursor: pointer; line-height: 1;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.5rem;
  background: none; border: none; cursor: pointer; padding: 1rem; line-height: 1;
}
.lightbox-prev { left: .5rem; }
.lightbox-next { right: .5rem; }

/* Chat: input e bottone più grandi (specificità maggiore di .form-control/.btn) */
.form-control.chat-input, .btn.chat-send { font-size: 1.25rem; padding: .6rem 1rem; }
.chat-loader { height: 56px; width: auto; display: block; }
.chat-disclaimer { font-size: 0.95rem; color: #555; text-align: center; margin-top: 1rem; max-width: 720px; margin-left: auto; margin-right: auto; }

/* Pulsante chat fisso in basso a destra */
.chat-fab { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1040; }
.chat-fab img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 .25rem .75rem rgba(0,0,0,.35); transition: transform .15s ease-in-out; }
.chat-fab:hover img { transform: scale(1.08); }

/* Cornice dorata intorno all'icona della chat */
.chat-fab img { border: 3px solid var(--primary-light); box-shadow: 0 0 0 2px rgba(255,215,0,.35), 0 .25rem .75rem rgba(0,0,0,.35); }

/* Cronologia chat (accordion) */
.chat-history { border-bottom: 1px dashed #ccc; padding-bottom: .5rem; }
.chat-history summary { cursor: pointer; color: var(--primary); font-size: 1rem; }
