/* Il Campanile Premium B&B - foglio di stile (ripreso dalla grafica del vecchio tema The7). */

/* ---------- Font (ospitati sul server, nessuna chiamata a Google Fonts) ---------- */
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/lora-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/lora-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/lora-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/lora-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(../fonts/roboto-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(../fonts/roboto-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Variabili ---------- */
:root {
  --red: #7f322c;
  --red-dark: #652722;
  --accent: #ad5142;
  --rose: #c38075;
  --text: #605956;
  --head: #494848;
  --dark: #333333;
  --bg: #f4f3f1;
  --white: #ffffff;
  --line: rgba(96, 89, 86, 0.15);
  --wa: #25d366;
  --wa-dark: #1da851;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 18px rgba(0, 0, 0, 0.05);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 170px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/27px var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
p { margin: 0 0 15px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--dark); margin: 0 0 15px; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 900px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--red); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--red);
  border-radius: 0; background: var(--red); color: #fff; font: 14px/18px var(--serif); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.btn-booking { background: var(--red); }
.btn-block { width: 100%; }
.btn .icon { font-size: 16px; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; }
.text-link { color: var(--accent); }
.text-link.underline { text-decoration: underline; }

/* ---------- Intestazione ----------
   Misure del vecchio tema The7: contenitore di 1300px, barra superiore 36px, testata 120px,
   logo 250x96 al centro, menu sinistro accostato al logo, "Dove siamo" e pulsanti fino al bordo destro.
   Nello stato "sticky" le misure restano uguali (cambiano solo sfondo e colori). */
.site-header { position: sticky; top: 0; z-index: 100; }
.header-wrap { max-width: 1340px; margin: 0 auto; padding: 0 20px; }
.top-bar { background: #000; color: #fff; font: 500 13px/19px var(--sans); transition: background .3s; }
.top-bar a { color: #fff; }
.top-bar a:hover { color: var(--rose); }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 16px; border-bottom: 1px solid transparent; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar-left a { display: inline-flex; align-items: center; gap: 7px; }
.top-bar-left .icon { font-size: 14px; }
.top-tourism { color: #ccc !important; }
.top-tourism:hover { color: var(--rose) !important; }
.lang-switch { position: relative; display: flex; align-items: center; }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lang-switch img { width: 19px; height: auto; }
.lang-menu { position: absolute; top: 100%; left: -12px; z-index: 5; min-width: 130px; padding: 6px 0; margin-top: 6px; background: #fff;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.lang-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.lang-menu a { display: flex; padding: 6px 12px; color: var(--dark) !important; }
.lang-menu a:hover { color: var(--red) !important; }
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu { opacity: 1; visibility: visible; }
.socials { display: flex; gap: 4px; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .15); font-size: 13px; }
.social:hover { background: var(--red); color: #fff !important; }

.masthead { background: #fff; box-shadow: 0 0 15px 1px rgba(0, 0, 0, .07); transition: background .3s, box-shadow .3s; }
.masthead-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: 120px; }
.logo { grid-column: 2; grid-row: 1; display: block; padding: 0 20px; }
.logo img { width: 250px; height: auto; }
.logo-light { display: none !important; }
.main-nav { display: contents; }
.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-left { grid-column: 1; grid-row: 1; justify-content: flex-end; }
.nav-end { grid-column: 3; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.nav-tourism { display: none !important; }
.main-nav a { color: var(--dark); text-transform: uppercase; font: 16px/20px var(--serif); padding: 4px; position: relative; white-space: nowrap; }
.nav-list > li > a::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 0; height: 1px; background: var(--red);
  transform: scaleX(0); transition: transform .25s; }
.nav-list > li > a:hover::after, .nav-list > li > a.is-active::after, .nav-list > li.is-active > a::after { transform: scaleX(1); }
.has-sub { position: relative; }
.sub-nav { position: absolute; top: 100%; left: -16px; min-width: 240px; background: #fff; box-shadow: var(--shadow); padding: 12px 0;
  margin-top: 14px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.sub-nav::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; transform: none; }
.sub-nav a { display: block; text-transform: none; font-size: 15px; padding: 8px 20px; color: var(--text); }
.sub-nav a:hover, .sub-nav a[aria-current] { color: var(--red); background: rgba(127, 50, 44, .05); }
.nav-buttons { display: flex; gap: 20px; }
.nav-buttons .btn { color: #fff; text-transform: uppercase; font: 13px/17px var(--serif); padding: 15px; border: 0; white-space: nowrap; }
.nav-buttons .btn .icon { font-size: 15px; }
.menu-toggle { display: none; }

/* Home: intestazione trasparente sopra lo slider, bianca (sticky) dopo lo scorrimento */
.is-home .site-header { position: fixed; left: 0; right: 0; }
.is-home .site-header.is-transparent .top-bar { background: transparent; }
.is-home .site-header.is-transparent .top-bar-inner { /* riga sottile larga quanto il contenuto (senza i margini laterali) */
  background: linear-gradient(rgba(255, 255, 255, .25), rgba(255, 255, 255, .25)) center bottom / calc(100% - 40px) 1px no-repeat; }
.is-home .site-header.is-transparent .masthead { background: transparent; box-shadow: none; }
.is-home .site-header.is-transparent .nav-list > li > a { color: #fff; }
.is-home .site-header.is-transparent .nav-list > li > a::after { background: #fff; }
.is-home .site-header.is-transparent .logo-dark { display: none !important; }
.is-home .site-header.is-transparent .logo-light { display: block !important; }

/* ---------- Sezioni e titoli ---------- */
.section { padding: 70px 0; }
.section-tight { padding: 0 0 70px; }
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading h2 { font-size: 26px; line-height: 30px; text-transform: uppercase; color: var(--head); margin: 0; }
.heading-line { display: block; width: 50px; height: 1px; background: var(--red); margin: 18px auto 0; }
.heading-sub { margin: 22px 0 0; }
.kicker { text-transform: uppercase; font-size: 14px; letter-spacing: .02em; }

/* ---------- Slider principale ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: #000; display: flex; align-items: flex-end; justify-content: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 9s ease-out both; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(2, 2, 2, .25) 0%, rgba(2, 2, 2, .15) 45%, rgba(2, 2, 2, .55) 100%); }
.hero-text { position: relative; z-index: 1; max-width: 760px; padding: 0 var(--gutter) 80px; text-align: center; color: #fff; animation: hero-in 1.5s ease-out .2s both; }
.hero h1 { color: #fff; font-size: 55px; line-height: 70px; font-weight: 700; margin: 0 0 18px; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.hero p { font-size: 30px; line-height: 36px; margin: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.1); } }
@keyframes hero-in { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: none; } }

/* ---------- Benvenuti ---------- */
.welcome-box { display: grid; grid-template-columns: 1fr 1fr; background: #fff; box-shadow: var(--shadow); }
.welcome-img img { width: 100%; height: 100%; object-fit: cover; }
.welcome-text { padding: 50px 60px 40px 40px; align-self: center; }
.welcome-title { font-size: 16px; line-height: 27px; font-weight: 700; color: var(--dark); margin-bottom: 15px; }

/* ---------- Servizi ---------- */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; text-align: center; }
.service-icon { display: block; color: var(--red); font-size: 40px; line-height: 1; margin-bottom: 22px; }
.service-title { font-size: 16px; line-height: 30px; color: var(--text); margin: 0; }
.services-box { background: #fff; padding: 50px 40px; box-shadow: var(--shadow); }

/* ---------- Invito alla prenotazione ---------- */
.cta { position: relative; overflow: hidden; padding: 90px var(--gutter); text-align: center; color: #fff; background: #3b2a24; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.cta-text { position: relative; z-index: 1; }
.cta h2 { color: #fff; text-transform: uppercase; font-size: 26px; line-height: 34px; margin: 12px 0 20px; }
.cta .kicker { margin: 0; }
.cta-link { color: #fff; text-transform: uppercase; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 2px; }
.cta-link:hover { color: #fff; border-color: #fff; }

/* ---------- Camere (home) ---------- */
.room-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.room-card { background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.room-card-img { display: block; overflow: hidden; aspect-ratio: 800 / 514; }
.room-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.room-card:hover .room-card-img img { transform: scale(1.04); }
.room-card-body { padding: 28px 40px 22px; }
.room-card h3 { font-size: 18px; line-height: 27px; margin-bottom: 10px; }
.room-card h3 a { color: var(--dark); }
.room-card h3 a:hover { color: var(--red); }
.room-card p { font-size: 15px; line-height: 25px; }

/* ---------- Carosello (gallery, mete turistiche, miniature) ---------- */
.carousel { position: relative; display: flex; align-items: center; gap: 10px; }
/* position: relative tiene dentro l'area di scorrimento anche gli elementi assoluti (es. .sr-only delle schede):
   senza, su mobile allargavano la pagina oltre lo schermo. */
.carousel-track { position: relative; min-width: 0; flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 2px; scroll-behavior: smooth; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > li { flex: 0 0 auto; scroll-snap-align: start; }
.carousel-btn { flex: 0 0 auto; width: 36px; height: 36px; border: 0; background: none; color: var(--red); font-size: 20px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.carousel-btn:hover { color: var(--accent); }
.carousel.is-static .carousel-btn { visibility: hidden; }
.gallery-section { padding: 0 0 70px; }
.gallery-track > li { width: calc((100% - 10px) / 6); }
.gallery-track a { display: block; overflow: hidden; aspect-ratio: 1; background: #e8e6e3; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.gallery-track a:hover img { transform: scale(1.06); opacity: .9; }

/* ---------- Dove siamo ---------- */
.where-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.map-box { position: relative; height: 380px; background: #e9e6e2; margin-top: 10px; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 30px; font-size: 14px; line-height: 22px; }
.map-placeholder > .icon { font-size: 34px; color: var(--red); margin-bottom: 14px; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0 0; }

/* ---------- Modulo contatti ---------- */
.contact-form .field { margin-bottom: 10px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  width: 100%; border: 1px solid transparent; background: #fff; color: var(--dark); font: 14px/20px var(--serif); padding: 9px 12px; border-radius: 0; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--rose); outline: none; }
.contact-form ::placeholder { color: #9a918d; opacity: 1; }
.sidebar .contact-form input[type=text], .sidebar .contact-form input[type=email], .sidebar .contact-form input[type=tel], .sidebar .contact-form textarea { border-color: #e3dfdc; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 22px; }
.field-check input { margin-top: 4px; accent-color: var(--red); width: 16px; height: 16px; flex-shrink: 0; }
.field-check .field-error { flex-basis: 100%; }
.field-check { flex-wrap: wrap; }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field-error { display: block; color: #c0392b; font-size: 13px; line-height: 18px; margin-top: 4px; }
.form-submit { position: relative; margin-top: 15px; }
.contact-form .btn { padding: 11px 18px; font-size: 15px; }
.form-spinner { display: none; position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid rgba(255, 255, 255, .5);
  border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.contact-form.is-sending .form-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-response { font-size: 14px; line-height: 22px; margin-top: 12px; }
.form-response:empty { display: none; }
.form-response.is-ok { color: #1e7e34; border: 1px solid #a8d5b1; background: #eef8f0; padding: 10px 14px; }
.form-response.is-error { color: #a12b20; border: 1px solid #e8b4ae; background: #fbefed; padding: 10px 14px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-noscript { font-size: 14px; margin-top: 10px; }

/* ---------- Mete turistiche ---------- */
.tourism { background: var(--red); }
.tourism .section-heading h2 { color: #fff; }
.tourism .heading-line { background: rgba(255, 255, 255, .7); }
.tourism .carousel-btn { color: #fff; }
.tourism .carousel-btn:hover { color: var(--rose); }
.post-track { gap: 24px; }
.post-track > li { width: calc((100% - 48px) / 3); display: flex; }
.post-card { background: #fff; display: flex; flex-direction: column; width: 100%; box-shadow: var(--shadow); }
.post-card-img { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h2, .post-card h3 { font-size: 18px; line-height: 26px; font-weight: 700; margin-bottom: 10px; }
.post-card h2 a, .post-card h3 a { color: var(--dark); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--red); }
.post-card p { font-size: 14px; line-height: 24px; }
.more-link { margin-top: auto; color: var(--dark); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.more-link .icon { font-size: 10px; }
.more-link:hover { color: var(--red); }
.post-meta { font-size: 13px; color: #9a918d; margin-bottom: 10px !important; }

/* ---------- Intestazioni di pagina ---------- */
.page-title { padding: 50px 0 45px; text-align: center; background: #ebe8e5; }
.page-title h1 { font-size: 30px; line-height: 36px; color: var(--dark); margin-bottom: 8px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; font-size: 13px; line-height: 23px; }
.breadcrumbs li + li::before { content: '/'; margin: 0 8px; opacity: .6; }
.breadcrumbs a { color: inherit; }
.breadcrumbs a:hover { color: var(--red); }
.fancy-header { position: relative; height: 300px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; background: #222; overflow: hidden; }
.fancy-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fancy-header::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.fancy-header .wrap { position: relative; z-index: 1; }
.fancy-header h1 { color: #fff; font-size: 30px; line-height: 36px; margin-bottom: 8px; }
.fancy-header .breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Pagina camera ---------- */
.room-intro { padding-bottom: 50px; }
.room-intro-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.room-main { display: block; overflow: hidden; margin-bottom: 4px; }
.room-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.carousel-thumbs { gap: 0; margin: 0 -36px; }
.thumbs-track { gap: 4px; }
.thumbs-track > li { width: calc((100% - 20px) / 6); }
.thumbs-track a { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.thumbs-track img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.thumbs-track a:hover img { opacity: .8; }
.room-text { background: #fff; padding: 30px; box-shadow: var(--shadow); font-size: 15px; line-height: 25px; }
.room-buttons { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 20px 0 0; }
.room-buttons .btn { font-size: 14px; }
.room-plan { padding: 0 0 20px; }
.room-plan a { display: block; max-width: 800px; margin: 0 auto; background: #fff; padding: 10px; box-shadow: var(--shadow); }
.room-details { padding-top: 50px; }
.details-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.details-list li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 25px; }
.details-list li:last-child { border-bottom: 0; }
.details-list .icon { color: var(--red); font-size: 13px; position: relative; top: 1px; }
.rooms-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.rooms-strip a { display: block; background: #fff; box-shadow: var(--shadow); color: var(--dark); text-align: center; }
.rooms-strip img { width: 100%; aspect-ratio: 800 / 514; object-fit: cover; }
.rooms-strip span { display: block; padding: 18px 10px; font-size: 16px; }
.rooms-strip a:hover, .rooms-strip a[aria-current] { color: var(--red); }

/* ---------- Articoli e categoria ---------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; align-items: start; }
.post-thumbnail { position: relative; margin-bottom: 30px; }
.post-thumbnail img { width: 100%; }
.fancy-date { position: absolute; top: 16px; right: 16px; background: #fff; color: var(--dark); padding: 4px 12px; font-size: 12px; line-height: 20px; display: flex; gap: 6px; }
.fancy-date span + span::before { content: '•'; margin-right: 6px; color: var(--rose); }
.prose h2, .prose h3, .prose h4 { color: var(--head); margin-top: 25px; }
.prose h2 { font-size: 22px; line-height: 30px; }
.prose h3 { font-size: 20px; line-height: 28px; }
.prose h4 { font-size: 18px; line-height: 26px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 15px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; }
.post-images { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.post-images img { width: 100%; height: 100%; object-fit: cover; }
.related { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 30px; }
.related h2 { font-size: 20px; line-height: 28px; color: var(--head); }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.sidebar { background: #fff; padding: 30px; box-shadow: var(--shadow); }
.widget + .widget { margin-top: 35px; }
.widget-title { font-size: 16px; line-height: 24px; color: var(--dark); margin-bottom: 18px; }
.mini-posts li + li { margin-top: 14px; }
.mini-posts a { display: flex; gap: 14px; align-items: flex-start; color: var(--text); }
.mini-thumb { width: 60px; height: 60px; object-fit: cover; flex-shrink: 0; }
.mini-text { display: flex; flex-direction: column; }
.mini-title { font-size: 14px; line-height: 21px; color: var(--dark); }
.mini-posts a:hover .mini-title, .mini-posts a[aria-current] .mini-title { color: var(--red); }
.mini-text time { font-size: 12px; line-height: 20px; color: #9a918d; }
.mini-rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mini-rooms img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .3s; }
.mini-rooms a:hover img { opacity: .8; }

/* ---------- Pagine legali ed errori ---------- */
.legal .prose h2 { font-size: 22px; margin-top: 35px; }
.legal .prose h3 { font-size: 17px; margin-top: 20px; }
.legal-updated { font-size: 14px; color: #9a918d; }
.table-wrap { overflow-x: auto; margin-bottom: 15px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border: 1px solid #e3dfdc; vertical-align: top; }
th { background: #f0edea; color: var(--dark); font-weight: 700; }
code { font-size: 13px; background: #f0edea; padding: 1px 5px; }
.error-page { text-align: center; }

/* ---------- Piè di pagina ---------- */
.bottom-bar { background: #000; color: #fff; font-size: 13px; line-height: 23px; padding: 20px 0; }
.bottom-bar p { margin: 0; }
.bottom-bar a { color: #fff; }
.bottom-bar a:hover { color: var(--rose); }
.bottom-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px 30px; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.scroll-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 16px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .2s; }
.scroll-top.is-visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--red); color: #fff; }

/* ---------- Visualizzatore foto ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: calc(100% - 140px); max-height: calc(100% - 80px); text-align: center; }
.lb-img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; margin: 0 auto; }
.lb-caption { color: #ddd; font-size: 14px; margin-top: 10px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 26px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; margin-top: -25px; }
.lb-next { right: 10px; top: 50%; margin-top: -25px; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }

/* ---------- Banner e pannello cookie ---------- */
/* Banner compatto in basso a sinistra (il pulsante "torna su" sta a destra) */
.cookie-banner { position: fixed; left: 16px; bottom: 16px; z-index: 200; width: 410px; max-width: calc(100% - 32px); background: #fff; color: var(--text);
  border-top: 3px solid var(--red); box-shadow: 0 6px 28px rgba(0, 0, 0, .22); padding: 14px 18px 16px; font-size: 13px; line-height: 20px; }
.cookie-banner[hidden], .cookie-modal[hidden] { display: none; }
.cookie-text p { margin: 0; }
.cookie-title { font-weight: 700; color: var(--dark); font-size: 16px; line-height: 22px; margin: 0 26px 4px 0 !important; }
.cookie-text a { color: var(--accent); white-space: nowrap; }
.cookie-text a:hover { color: var(--red); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.cookie-actions .btn { padding: 9px 16px; font-size: 14px; }
.cookie-banner .cookie-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.cookie-banner .cookie-actions .btn { padding: 9px 6px; font-size: 13px; line-height: 17px; white-space: nowrap; }
.cookie-banner .cookie-close { top: 6px; right: 6px; width: 28px; height: 28px; font-size: 14px; }
.cookie-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; background: none; color: var(--text); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.cookie-close:hover { color: var(--red); }
.cookie-modal { position: fixed; inset: 0; z-index: 250; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cookie-modal-box { position: relative; background: #fff; max-width: 620px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px; font-size: 14px; line-height: 22px; }
.cookie-modal-box h2 { font-size: 22px; line-height: 28px; }
.cookie-modal-box h2:focus { outline: none; }
.cookie-cat { border: 1px solid #e3dfdc; padding: 14px 16px; margin-bottom: 12px; }
.cookie-cat p { margin: 6px 0 0; }
.cookie-cat a { text-decoration: underline; }
.cookie-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cookie-always { font-size: 13px; color: #1e7e34; white-space: nowrap; }
.cookie-modal .cookie-actions { margin-top: 18px; justify-content: flex-end; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .slider { position: absolute; inset: 0; background: #ccc; border-radius: 24px; transition: background .2s; }
.switch .slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.switch input:checked + .slider { background: var(--red); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Responsive ---------- */
/* Schermi fra 1240 e 1360px: contenitore più stretto, stessi elementi un po' più compatti */
@media (max-width: 1359px) {
  .logo { padding: 0 14px; }
  .logo img { width: 210px; }
  .nav-list { gap: 18px; }
  .nav-end { gap: 16px; }
  .nav-buttons { gap: 10px; }
  .nav-buttons .btn { font-size: 12px; padding: 13px 11px; }
}

@media (max-width: 1239px) {
  html { scroll-padding-top: 110px; }
  .header-wrap { padding: 0 var(--gutter); }
  .top-bar-left span, .top-tourism, .lang-switch span { display: none; }
  .top-bar-left .icon { font-size: 15px; }
  .lang-switch { gap: 12px; }
  .lang-menu { position: static; opacity: 1; visibility: visible; margin: 0; padding: 0; min-width: 0; background: none; box-shadow: none; }
  .lang-menu::before { display: none; }
  .lang-menu a { padding: 0; color: #fff !important; }
  .lang-switch a:not(.is-current) { opacity: .65; }
  .site-header, .is-home .site-header { position: sticky; }
  .is-home .site-header.is-transparent .top-bar { background: #000; }
  .is-home .site-header.is-transparent .top-bar-inner { background: none; }
  .masthead, .is-home .site-header.is-transparent .masthead { background: #222; box-shadow: none; }
  .masthead-inner { display: flex; justify-content: space-between; height: 72px; }
  .logo { padding: 0; }
  .logo img { width: 130px; }
  .logo-dark { display: none !important; }
  .logo-light { display: block !important; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
    max-height: calc(100vh - 110px); overflow-y: auto; padding: 10px var(--gutter) 24px; }
  .masthead { position: relative; }
  .menu-open .main-nav { display: block; }
  .nav-list, .nav-end { display: block; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .main-nav a, .is-home .site-header.is-transparent .nav-list > li > a { display: block; color: var(--dark); padding: 13px 0; }
  .nav-end { gap: 0; }
  .nav-list > li > a::after { display: none; }
  .nav-tourism { display: block !important; }
  .sub-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin: 0 0 8px; padding: 0 0 0 16px; min-width: 0; }
  .sub-nav::before { display: none; }
  .sub-nav a { padding: 7px 0; }
  .nav-buttons { flex-direction: column; margin-top: 18px; }
  .nav-buttons .btn { font-size: 14px; padding: 12px 14px; }
  .is-home .hero { min-height: 480px; height: calc(100vh - 108px); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-track > li { width: calc((100% - 6px) / 4); }
  .post-track > li { width: calc((100% - 24px) / 2); }
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { max-width: 640px; }
}

@media (max-width: 900px) {
  .section { padding: 50px 0; }
  .section-tight { padding-bottom: 50px; }
  .hero h1 { font-size: 38px; line-height: 48px; }
  .hero p { font-size: 22px; line-height: 30px; }
  .welcome-box, .where-cols, .room-intro-cols { grid-template-columns: 1fr; }
  .welcome-text { padding: 30px; }
  .room-cards { grid-template-columns: 1fr; }
  .rooms-strip { grid-template-columns: 1fr 1fr; gap: 20px; }
  .details-cols { grid-template-columns: 1fr; }
  .details-cols .details-list:first-child li:last-child { border-bottom: 1px solid var(--line); }
  .related-list, .post-list { grid-template-columns: 1fr; }
  .cookie-modal .cookie-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .top-bar-inner { gap: 10px; }
  .top-bar-left, .top-bar-right { gap: 14px; }
  .hero h1 { font-size: 30px; line-height: 38px; }
  .hero p { font-size: 18px; line-height: 26px; }
  .hero-text { padding-bottom: 50px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .service-title { font-size: 15px; line-height: 24px; }
  .services-box { padding: 36px 20px; }
  .room-card-body { padding: 22px 22px 16px; }
  .gallery-track > li { width: calc((100% - 2px) / 2); }
  .post-track > li { width: 100%; }
  .carousel-btn { width: 28px; }
  .carousel-thumbs { margin: 0 calc(-1 * var(--gutter)); }
  .thumbs-track > li { width: calc((100% - 12px) / 4); }
  .fancy-header { height: 220px; }
  .fancy-header h1, .page-title h1 { font-size: 24px; line-height: 30px; }
  .post-images { grid-template-columns: 1fr; }
  .sidebar { padding: 22px; }
  .bottom-bar-inner { flex-direction: column; align-items: flex-start; }
  .lightbox figure { max-width: 100%; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; margin-top: 0; }
  .cookie-modal-box { padding: 24px 18px; }
  .cookie-banner { left: 10px; bottom: 10px; width: auto; right: 10px; max-width: none; padding: 12px 14px 14px; }
  .cookie-banner .cookie-actions .btn { font-size: 12.5px; padding: 9px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
