/*
Theme Name: Casa Torallo
Theme URI: https://casatorallo.it/
Author: Carlo Magni
Description: Tema WordPress custom per Casa Torallo, B&B a Irsina nel centro storico.
Version: 3.6.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: casatorallo
*/

:root {
  --ct-cream: #f6f0e7;
  --ct-cream-soft: #fbf8f2;
  --ct-stone: #d8c7a6;
  --ct-stone-dark: #b89263;
  --ct-burgundy: #7e1f25;
  --ct-burgundy-dark: #5f171c;
  --ct-wood: #4b3324;
  --ct-gray: #6f685e;
  --ct-dark: #1f1a16;
  --ct-white: #ffffff;
  --ct-shadow: 0 22px 70px rgba(31, 26, 22, 0.14);
  --ct-radius: 28px;
  --ct-radius-sm: 18px;
  --ct-container: 1180px;
  --ct-header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ct-dark);
  background: var(--ct-cream-soft);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body.is-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--ct-burgundy);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ct-container {
  width: min(var(--ct-container), calc(100% - 40px));
  margin-inline: auto;
}

.ct-section {
  padding: clamp(72px, 9vw, 130px) 0;
  position: relative;
}

.ct-section--cream {
  background: var(--ct-cream);
}

.ct-section--light {
  background: var(--ct-cream-soft);
}

.ct-section--dark {
  background: var(--ct-dark);
  color: var(--ct-cream-soft);
}

.ct-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ct-burgundy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ct-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.ct-kicker {
  margin: 0 0 12px;
  color: var(--ct-burgundy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ct-title,
.entry-title {
  margin: 0;
  color: var(--ct-wood);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.ct-title--xl {
  font-size: clamp(4.2rem, 12vw, 8.8rem);
}

.ct-title--lg {
  font-size: clamp(3.1rem, 7vw, 6.4rem);
}

.ct-title--md,
.entry-title {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.ct-lead {
  margin: 24px 0 0;
  color: var(--ct-gray);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.75;
}

.ct-section--dark .ct-title,
.ct-section--dark .ct-lead {
  color: var(--ct-cream-soft);
}

.ct-text {
  color: var(--ct-gray);
}

.ct-text p {
  margin: 0 0 1.2rem;
}

.ct-text p:last-child {
  margin-bottom: 0;
}

.ct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.ct-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ct-button:hover {
  transform: translateY(-2px);
}

.ct-button--primary {
  color: var(--ct-white);
  background: var(--ct-burgundy);
  box-shadow: 0 18px 36px rgba(126, 31, 37, 0.22);
}

.ct-button--primary:hover {
  color: var(--ct-white);
  background: var(--ct-burgundy-dark);
}

.ct-button--secondary {
  color: var(--ct-wood);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(75, 51, 36, 0.14);
}

.ct-button--secondary:hover {
  color: var(--ct-wood);
  background: var(--ct-white);
  box-shadow: 0 14px 30px rgba(31, 26, 22, 0.1);
}

.ct-button--ghost {
  color: var(--ct-cream-soft);
  border-color: rgba(246, 240, 231, 0.4);
  background: transparent;
}

.ct-button--ghost:hover {
  color: var(--ct-dark);
  background: var(--ct-cream-soft);
}

.ct-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ct-header-bg, var(--ct-cream-soft));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(75, 51, 36, 0.08);
}

.ct-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--ct-header-height);
  gap: 28px;
}

.ct-logo {
  display: inline-flex;
  align-items: center;
  min-width: var(--ct-logo-width, 120px);
}

.ct-logo img {
  width: auto;
  max-width: var(--ct-logo-width, 120px);
  max-height: var(--ct-logo-max-height, 54px);
  object-fit: contain;
}

.ct-logo__fallback {
  display: grid;
  gap: 2px;
  color: var(--ct-wood);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.ct-logo__fallback span {
  color: var(--ct-burgundy);
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ct-main-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ct-main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ct-wood);
  font-size: 0.92rem;
  font-weight: 800;
}

.ct-main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--ct-burgundy);
  transition: transform 0.22s ease;
}

.ct-main-nav a:hover::after,
.ct-main-nav .current-menu-item > a::after {
  transform: scaleX(1);
}

.ct-header-cta {
  flex: 0 0 auto;
}

.ct-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.ct-language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(75, 51, 36, 0.14);
  border-radius: 999px;
  color: var(--ct-wood);
  background: rgba(255,255,255,0.58);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ct-language-switcher a:hover,
.ct-language-switcher a.is-active {
  color: var(--ct-white);
  background: var(--ct-burgundy);
  border-color: var(--ct-burgundy);
}

.ct-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(75, 51, 36, 0.14);
  border-radius: 999px;
  background: var(--ct-white);
  cursor: pointer;
}

.ct-menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: var(--ct-wood);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ct-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ct-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.ct-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.ct-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--ct-header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--ct-cream-soft);
  background: var(--ct-dark);
}

.ct-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.ct-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(31, 26, 22, 0.82) 0%, rgba(31, 26, 22, 0.58) 42%, rgba(31, 26, 22, 0.18) 100%),
    radial-gradient(circle at 12% 18%, rgba(126, 31, 37, 0.34), transparent 32%);
}

.ct-hero__inner {
  width: min(var(--ct-container), calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(90px, 12vw, 170px) 0;
}

.ct-hero__content {
  max-width: 780px;
}

.ct-hero .ct-title {
  color: var(--ct-cream-soft);
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.ct-hero .ct-lead {
  max-width: 690px;
  color: rgba(246, 240, 231, 0.9);
}

.ct-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 9px 14px;
  border: 1px solid rgba(246, 240, 231, 0.22);
  border-radius: 999px;
  background: rgba(31, 26, 22, 0.22);
  color: var(--ct-cream-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ct-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin-top: clamp(46px, 8vw, 86px);
}

.ct-hero-fact {
  padding: 18px;
  border: 1px solid rgba(246, 240, 231, 0.22);
  border-radius: var(--ct-radius-sm);
  background: rgba(246, 240, 231, 0.1);
  backdrop-filter: blur(14px);
}

.ct-hero-fact strong {
  display: block;
  color: var(--ct-white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
  line-height: 1;
}

.ct-hero-fact span {
  color: rgba(246, 240, 231, 0.82);
  font-size: 0.85rem;
}

.ct-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.ct-split--reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.ct-split--reverse .ct-split__media {
  order: -1;
}

.ct-image-stack {
  position: relative;
  min-height: 620px;
}

.ct-image-stack__main,
.ct-image-stack__small {
  position: absolute;
  overflow: hidden;
  border-radius: var(--ct-radius);
  box-shadow: var(--ct-shadow);
}

.ct-image-stack__main {
  top: 0;
  right: 0;
  width: 78%;
  height: 78%;
}

.ct-image-stack__small {
  left: 0;
  bottom: 0;
  width: 48%;
  height: 42%;
  border: 10px solid var(--ct-cream-soft);
}

.ct-image-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.ct-card {
  padding: 30px;
  border: 1px solid rgba(75, 51, 36, 0.09);
  border-radius: var(--ct-radius-sm);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(31, 26, 22, 0.06);
}

.ct-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(126, 31, 37, 0.09);
  color: var(--ct-burgundy);
  font-size: 1.45rem;
}

.ct-card h3 {
  margin: 0 0 10px;
  color: var(--ct-wood);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.1;
}

.ct-card p {
  margin: 0;
  color: var(--ct-gray);
  font-size: 0.98rem;
  line-height: 1.68;
}

.ct-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.ct-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(216, 199, 166, 0.24);
  color: var(--ct-wood);
  font-weight: 800;
  font-size: 0.94rem;
}

.ct-feature-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ct-burgundy);
  color: var(--ct-white);
  font-size: 0.78rem;
  flex: 0 0 auto;
}

.ct-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  grid-auto-rows: 260px;
  gap: 18px;
  margin-top: 48px;
}

.ct-gallery__item {
  overflow: hidden;
  border-radius: var(--ct-radius-sm);
  background: var(--ct-stone);
  box-shadow: 0 18px 50px rgba(31, 26, 22, 0.08);
}

.ct-gallery__item--tall {
  grid-row: span 2;
}

.ct-gallery__item--wide {
  grid-column: span 2;
}

.ct-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.ct-gallery__item:hover img {
  transform: scale(1.045);
}

.ct-service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.ct-service {
  min-height: 126px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1px solid rgba(246, 240, 231, 0.16);
  border-radius: var(--ct-radius-sm);
  background: rgba(246, 240, 231, 0.08);
  text-align: center;
}

.ct-service__icon {
  font-size: 1.55rem;
}

.ct-service span:last-child {
  font-size: 0.9rem;
  font-weight: 800;
}

.ct-location-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 48px;
}

.ct-location-card__content {
  padding: clamp(34px, 5vw, 56px);
  border-radius: var(--ct-radius);
  background: var(--ct-white);
  box-shadow: var(--ct-shadow);
}

.ct-location-card__map {
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--ct-radius);
  background: var(--ct-stone);
  box-shadow: var(--ct-shadow);
}

.ct-location-card__map iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

.ct-contact-aside {
  align-self: start;
  display: grid;
  gap: 18px;
}

.ct-contact-map {
  min-height: 320px;
}

.ct-contact-map iframe {
  min-height: 320px;
}

.ct-contact-map--link {
  position: relative;
  display: block;
  text-decoration: none;
}

.ct-contact-map--link img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.ct-contact-map--link span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 26, 22, 0.78);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
}

.ct-location-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ct-location-list li {
  display: flex;
  gap: 12px;
  color: var(--ct-gray);
}

.ct-location-list strong {
  color: var(--ct-wood);
}

.ct-story-box {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--ct-radius);
  background: var(--ct-white);
  box-shadow: var(--ct-shadow);
}

.ct-story-box__media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.ct-story-box__content {
  display: grid;
  align-content: center;
  padding: clamp(38px, 6vw, 76px);
}

.ct-cta-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: clamp(40px, 6vw, 76px);
  overflow: hidden;
  border-radius: var(--ct-radius);
  background:
    linear-gradient(135deg, rgba(126, 31, 37, 0.94), rgba(75, 51, 36, 0.92)),
    url("assets/img/casa-torallo-salone-arco.jpg") center / cover;
  color: var(--ct-cream-soft);
  box-shadow: var(--ct-shadow);
}

.ct-cta-panel .ct-title,
.ct-cta-panel .ct-lead {
  color: var(--ct-cream-soft);
}

.ct-cta-panel__note {
  padding: 28px;
  border: 1px solid rgba(246, 240, 231, 0.2);
  border-radius: var(--ct-radius-sm);
  background: rgba(246, 240, 231, 0.1);
}

.ct-availability-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.ct-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ct-form-field {
  display: grid;
  gap: 7px;
}

.ct-form-field--full {
  grid-column: 1 / -1;
}

.ct-form-field label {
  color: var(--ct-wood);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ct-form-field input,
.ct-form-field textarea,
.ct-form-field select {
  width: 100%;
  border: 1px solid rgba(75, 51, 36, 0.15);
  border-radius: 16px;
  background: var(--ct-white);
  color: var(--ct-dark);
  padding: 13px 15px;
  outline: none;
}

.ct-form-field input:focus,
.ct-form-field textarea:focus,
.ct-form-field select:focus {
  border-color: var(--ct-burgundy);
  box-shadow: 0 0 0 4px rgba(126, 31, 37, 0.08);
}

.ct-form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ct-gray);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ct-form-privacy input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex: 0 0 auto;
}

.ct-success-message {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(39, 121, 82, 0.1);
  color: #256a49;
  font-weight: 800;
}

.ct-page-hero {
  padding: clamp(72px, 9vw, 120px) 0;
  background:
    linear-gradient(135deg, rgba(246, 240, 231, 0.96), rgba(216, 199, 166, 0.7)),
    url("assets/img/casa-torallo-esterno-arco.jpg") center / cover;
}

.ct-page-content {
  padding: clamp(64px, 8vw, 110px) 0;
}

.ct-content-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.ct-content-wrap :where(h2, h3, h4) {
  color: var(--ct-wood);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.1;
}

.ct-content-wrap p {
  margin: 0 0 1rem;
  line-height: 1.78;
}

.ct-content-wrap p:last-child {
  margin-bottom: 0;
}

.ct-content-wrap h2 {
  margin: 1.35em 0 0.5em;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.ct-content-wrap h3 {
  margin: 1.15em 0 0.45em;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.ct-content-wrap h2:first-child,
.ct-content-wrap h3:first-child,
.ct-content-wrap h4:first-child {
  margin-top: 0;
}

.ct-content-wrap p + h2,
.ct-content-wrap ul + h2,
.ct-content-wrap ol + h2 {
  margin-top: 1.25em;
}

.ct-content-wrap p + h3,
.ct-content-wrap ul + h3,
.ct-content-wrap ol + h3 {
  margin-top: 1.05em;
}

.ct-content-wrap a {
  color: var(--ct-burgundy);
  font-weight: 800;
}

.ct-site-footer {
  padding: 72px 0 26px;
  background: var(--ct-dark);
  color: rgba(246, 240, 231, 0.8);
}

.ct-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr;
  gap: 34px;
}

.ct-footer-logo img {
  max-width: 180px;
  filter: none;
}

.ct-footer-title {
  margin: 0 0 18px;
  color: var(--ct-cream-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
}

.ct-footer-text {
  margin: 20px 0 0;
  max-width: 390px;
  font-size: 0.96rem;
}

.ct-footer-text p {
  margin: 0 0 1em;
}

.ct-footer-text p:last-child {
  margin-bottom: 0;
}

.ct-footer-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ct-footer-list a:hover {
  color: var(--ct-cream-soft);
}


.ct-footer-posts li a {
  line-height: 1.45;
}

.ct-footer-empty {
  margin: 0;
  color: var(--ct-footer-text);
  opacity: 0.82;
}

.ct-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 240, 231, 0.12);
  font-size: 0.88rem;
}


@media (max-width: 1080px) {
  .ct-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ct-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ct-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --ct-header-height: 76px;
  }

  .ct-menu-toggle {
    display: inline-block;
  }

  .ct-main-nav {
    position: fixed;
    top: var(--ct-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    padding: 22px 18px 32px;
    background: rgba(251, 248, 242, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow-y: auto;
  }

  .ct-main-nav.is-open {
    display: block;
  }

  .ct-main-nav ul {
    display: grid;
    gap: 0;
    width: min(440px, 100%);
    margin: 0 auto;
    padding: 8px;
    border: 1px solid rgba(75, 51, 36, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 70px rgba(31, 26, 22, 0.12);
  }

  .ct-main-nav li:not(:last-child) {
    border-bottom: 1px solid rgba(75, 51, 36, 0.09);
  }

  .ct-main-nav a {
    justify-content: flex-start;
    min-height: 54px;
    padding: 0 14px;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    font-size: 1rem;
    letter-spacing: 0.01em;
  }

  .ct-main-nav a:hover,
  .ct-main-nav a:focus-visible,
  .ct-main-nav .current-menu-item > a {
    color: var(--ct-burgundy);
    background: rgba(126, 31, 37, 0.07);
  }

  .ct-main-nav a::after {
    display: none;
  }

  .ct-header-cta {
    display: none;
  }

  .ct-split,
  .ct-split--reverse,
  .ct-location-card,
  .ct-story-box,
  .ct-cta-panel {
    grid-template-columns: 1fr;
  }

  .ct-split--reverse .ct-split__media {
    order: initial;
  }

  .ct-image-stack {
    min-height: 520px;
  }

  .ct-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .ct-gallery__item--wide {
    grid-column: span 1;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .ct-container,
  .ct-hero__inner {
    width: min(100% - 28px, var(--ct-container));
  }

  .ct-hero {
    min-height: 760px;
  }

  .ct-hero__facts,
  .ct-card-grid,
  .ct-feature-list,
  .ct-service-grid,
  .ct-form-grid,
  .ct-footer-grid {
    grid-template-columns: 1fr;
  }

  .ct-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ct-button {
    width: 100%;
  }

  .ct-image-stack {
    min-height: 430px;
  }

  .ct-image-stack__main {
    width: 88%;
    height: 74%;
  }

  .ct-image-stack__small {
    width: 58%;
    height: 36%;
    border-width: 7px;
  }

  .ct-gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }

  .ct-gallery__item--tall,
  .ct-gallery__item--wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  .ct-story-box__media img {
    min-height: 340px;
  }

  .ct-footer-bottom {
    flex-direction: column;
  }
}


/* Debug-safe logo sizing: keeps the v1.4 header structure, only reinforces image dimensions. */
.ct-logo img,
.ct-logo .custom-logo,
.ct-logo .custom-logo-link img {
  width: auto !important;
  height: auto !important;
  max-width: var(--ct-logo-width, 120px) !important;
  max-height: var(--ct-logo-max-height, 54px) !important;
  object-fit: contain;
}
@media (max-width: 900px) {
  .ct-logo img,
  .ct-logo .custom-logo,
  .ct-logo .custom-logo-link img {
    max-width: var(--ct-logo-mobile-width, 96px) !important;
  }
}

/* Pagina Servizi - sezioni aggiuntive */
.ct-info-grid .ct-card__icon {
  font-size: 1rem;
  font-weight: 900;
}

.ct-faq-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin-top: 44px;
}

.ct-faq-item {
  overflow: hidden;
  border: 1px solid rgba(75, 51, 36, 0.11);
  border-radius: var(--ct-radius-sm);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(31, 26, 22, 0.05);
}

.ct-faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 22px 58px 22px 24px;
  color: var(--ct-wood);
  font-weight: 900;
}

.ct-faq-item summary::-webkit-details-marker {
  display: none;
}

.ct-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  color: var(--ct-burgundy);
  font-size: 1.4rem;
  line-height: 1;
}

.ct-faq-item[open] summary::after {
  content: "−";
}

.ct-faq-item .ct-text {
  padding: 0 24px 24px;
}

/* Pagina Camere - layout racconto degli spazi */
.ct-page-hero--media {
  padding: clamp(54px, 7vw, 92px) 0;
}

.ct-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.ct-page-hero__content .ct-actions {
  margin-top: 28px;
}

.ct-page-hero__media {
  overflow: hidden;
  min-height: clamp(360px, 42vw, 560px);
  margin: 0;
  border-radius: var(--ct-radius);
  box-shadow: var(--ct-shadow);
  background: var(--ct-stone);
}

.ct-page-hero__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.ct-intro-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.68fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.ct-summary-card {
  position: sticky;
  top: calc(var(--ct-header-height) + 24px);
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(184, 146, 99, 0.32);
  border-radius: var(--ct-radius);
  background:
    radial-gradient(circle at top right, rgba(184, 146, 99, 0.22), transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #fbf8f2 68%, #f6f0e7 100%);
  box-shadow: 0 24px 70px rgba(31, 26, 22, 0.12);
}

.ct-summary-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px solid rgba(126, 31, 37, 0.08);
  border-radius: calc(var(--ct-radius) - 10px);
}

.ct-summary-card .ct-kicker,
.ct-summary-card h3,
.ct-summary-card .ct-location-list {
  position: relative;
  z-index: 1;
}

.ct-summary-card h3 {
  margin: 0 0 22px;
  color: var(--ct-wood);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.ct-summary-card .ct-location-list {
  margin-top: 20px;
  gap: 12px;
}

.ct-summary-card .ct-location-list li {
  position: relative;
  display: block;
  padding: 14px 16px 14px 46px;
  border: 1px solid rgba(75, 51, 36, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ct-gray);
  box-shadow: 0 12px 26px rgba(31, 26, 22, 0.045);
}

.ct-summary-card .ct-location-list li::before {
  content: "✦";
  position: absolute;
  left: 16px;
  top: 14px;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(126, 31, 37, 0.08);
  color: var(--ct-burgundy);
  font-size: 0.72rem;
}

.ct-summary-card .ct-location-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ct-wood);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ct-section-head {
  max-width: 860px;
  margin-bottom: clamp(34px, 5vw, 60px);
}

.ct-room-spaces {
  display: grid;
  gap: clamp(34px, 5vw, 58px);
}

.ct-room-space {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: stretch;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(75, 51, 36, 0.08);
  border-radius: var(--ct-radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 55px rgba(31, 26, 22, 0.08);
}

.ct-room-space--reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.ct-room-space--reverse .ct-room-space__media {
  order: 2;
}

.ct-room-space__media {
  overflow: hidden;
  min-height: clamp(320px, 40vw, 520px);
  margin: 0;
  border-radius: calc(var(--ct-radius) - 8px);
  background: var(--ct-stone);
}

.ct-room-space__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.ct-room-space:hover .ct-room-space__media img {
  transform: scale(1.035);
}

.ct-room-space__content {
  display: grid;
  align-content: center;
  padding: clamp(16px, 3vw, 36px);
}

.ct-room-space__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(126, 31, 37, 0.1);
  color: var(--ct-burgundy);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ct-room-space__content h3 {
  margin: 0 0 14px;
  color: var(--ct-wood);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.15rem, 4vw, 3.55rem);
  line-height: 1;
}

.ct-room-space__content .ct-feature-list {
  grid-template-columns: 1fr;
  margin-top: 24px;
}

.ct-service__content {
  display: grid;
  gap: 4px;
}

.ct-service__content strong {
  color: inherit;
  font-size: 0.96rem;
  line-height: 1.25;
}

.ct-service__content small {
  color: rgba(246, 240, 231, 0.75);
  font-size: 0.82rem;
  line-height: 1.4;
}

.ct-section--light .ct-service__content small,
.ct-section--cream .ct-service__content small {
  color: var(--ct-gray);
}

@media (max-width: 920px) {
  .ct-page-hero-grid,
  .ct-intro-summary,
  .ct-room-space,
  .ct-room-space--reverse {
    grid-template-columns: 1fr;
  }

  .ct-summary-card {
    position: static;
  }

  .ct-room-space--reverse .ct-room-space__media {
    order: initial;
  }
}

@media (max-width: 700px) {
  .ct-page-hero__media,
  .ct-room-space__media {
    min-height: 300px;
  }

  .ct-room-space {
    padding: 14px;
  }

  .ct-room-space__content {
    padding: 18px 6px 8px;
  }
}

/* Lightbox immagini */
.ct-lightbox-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  cursor: zoom-in;
}

.ct-lightbox-trigger::after {
  content: "+";
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(246, 240, 231, 0.65);
  border-radius: 999px;
  background: rgba(31, 26, 22, 0.56);
  color: var(--ct-cream-soft);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
  pointer-events: none;
}

.ct-lightbox-trigger:hover::after,
.ct-lightbox-trigger:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.ct-lightbox-trigger:focus-visible {
  outline: 3px solid rgba(126, 31, 37, 0.45);
  outline-offset: 4px;
}

.ct-lightbox-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(31, 26, 22, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ct-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

body.is-lightbox-open {
  overflow: hidden;
}

.ct-lightbox__figure {
  display: grid;
  gap: 14px;
  max-width: min(1120px, 92vw);
  max-height: 88vh;
  margin: 0;
}

.ct-lightbox__image {
  max-width: min(1120px, 92vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: calc(var(--ct-radius-sm) + 2px);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.ct-lightbox__caption {
  max-width: 900px;
  margin-inline: auto;
  color: rgba(246, 240, 231, 0.88);
  font-size: 0.95rem;
  text-align: center;
}

.ct-lightbox__close,
.ct-lightbox__nav {
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 240, 231, 0.24);
  border-radius: 999px;
  background: rgba(246, 240, 231, 0.12);
  color: var(--ct-cream-soft);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ct-lightbox__close:hover,
.ct-lightbox__nav:hover,
.ct-lightbox__close:focus-visible,
.ct-lightbox__nav:focus-visible {
  background: rgba(246, 240, 231, 0.22);
  transform: scale(1.04);
  outline: none;
}

.ct-lightbox__close {
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}

.ct-lightbox__nav {
  top: 50%;
  width: 54px;
  height: 54px;
  font-size: 2.75rem;
  line-height: 1;
  transform: translateY(-50%);
}

.ct-lightbox__nav:hover,
.ct-lightbox__nav:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.ct-lightbox__nav--prev {
  left: 22px;
}

.ct-lightbox__nav--next {
  right: 22px;
}

@media (max-width: 700px) {
  .ct-lightbox {
    padding: 16px;
  }

  .ct-lightbox__image {
    max-width: 94vw;
    max-height: 72vh;
  }

  .ct-lightbox__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .ct-lightbox__nav {
    top: auto;
    bottom: 18px;
    width: 46px;
    height: 46px;
    font-size: 2.2rem;
    transform: none;
  }

  .ct-lightbox__nav:hover,
  .ct-lightbox__nav:focus-visible {
    transform: scale(1.04);
  }

  .ct-lightbox__nav--prev {
    left: 18px;
  }

  .ct-lightbox__nav--next {
    right: 18px;
  }
}

/* Articoli e blog */
.ct-section-head--between {
  display: flex;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 60px);
  align-items: flex-end;
  max-width: none;
}

.ct-section-head--between > div:first-child {
  max-width: 820px;
}

.ct-section-head__actions {
  flex: 0 0 auto;
  padding-bottom: 8px;
}

.ct-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 48px;
}

.ct-article-card {
  overflow: hidden;
  border: 1px solid rgba(75, 51, 36, 0.09);
  border-radius: var(--ct-radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 55px rgba(31, 26, 22, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ct-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(31, 26, 22, 0.12);
}

.ct-article-card__media {
  display: block;
  height: 255px;
  overflow: hidden;
  background: var(--ct-stone);
}

.ct-article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.ct-article-card:hover .ct-article-card__media img {
  transform: scale(1.045);
}

.ct-article-card__body {
  padding: 28px;
}

.ct-article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ct-burgundy);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ct-article-card__meta span + span::before {
  content: "•";
  margin-right: 8px;
  color: rgba(126, 31, 37, 0.5);
}

.ct-article-card__title {
  margin: 0;
  color: var(--ct-wood);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.ct-article-card__title a:hover {
  color: var(--ct-burgundy);
}

.ct-article-card__excerpt {
  margin: 16px 0 0;
  color: var(--ct-gray);
  font-size: 0.98rem;
  line-height: 1.68;
}

.ct-pagination {
  margin-top: 46px;
}

.ct-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ct-pagination .page-numbers,
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(75, 51, 36, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ct-wood);
  font-weight: 800;
}

.ct-pagination .page-numbers.current,
.pagination .page-numbers.current,
.ct-pagination .page-numbers:hover,
.pagination .page-numbers:hover {
  color: var(--ct-white);
  background: var(--ct-burgundy);
  border-color: var(--ct-burgundy);
}

@media (max-width: 1080px) {
  .ct-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ct-section-head--between {
    display: grid;
    align-items: start;
  }

  .ct-section-head__actions {
    padding-bottom: 0;
  }

  .ct-article-grid {
    grid-template-columns: 1fr;
  }

  .ct-article-card__media {
    height: 230px;
  }
}


/* v3.4 - immagini articoli e micro-ottimizzazioni responsive */
.ct-content-wrap img,
.ct-content-wrap picture,
.ct-content-wrap video,
.ct-content-wrap iframe {
  max-width: 100%;
}

.ct-content-wrap img {
  height: auto;
  display: block;
  border-radius: 18px;
}

.ct-content-wrap figure,
.ct-content-wrap .wp-block-image,
.ct-content-wrap .wp-block-gallery {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.ct-content-wrap .alignwide,
.ct-content-wrap .alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.ct-content-wrap .wp-block-image img,
.ct-content-wrap figure img {
  width: auto;
  max-width: 100%;
}

.ct-content-wrap .wp-caption,
.ct-content-wrap .wp-caption img {
  max-width: 100%;
}

.ct-content-wrap figcaption,
.ct-content-wrap .wp-element-caption {
  margin-top: 10px;
  color: var(--ct-gray);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 760px) {
  .ct-content-wrap img {
    width: 100%;
  }

  .ct-content-wrap figure,
  .ct-content-wrap .wp-block-image {
    margin-top: 22px;
    margin-bottom: 22px;
  }
}
