/*
Theme Name: Sempre Sole
Theme URI: https://sempresole.it
Author: Sempre Sole
Author URI: https://sempresole.it
Description: Tema WordPress per il Bed & Breakfast "Sempre Sole" a Salerno. Vetrina multi-pagina con Custom Post Types per Strutture, Servizi e Ristoranti. Stile minimale ed elegante.
Version: 0.1.13
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sempresole
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
    --color-bg: #FCFBF8;
    --color-ink: #2E2A24;
    --color-ink-hover: #4A443B;
    --color-text: #6E675C;
    --color-text-on-photo: #57514A;
    --color-muted: #8A7F69;
    --color-lemon: #C9C04D;
    --color-lemon-light: #D6CE6E;
    --color-sand: #F7F5E4;
    --color-sand-border: #E2DDB6;
    --color-sand-border-dark: #CDC8A2;
    --color-azure: #6B93A8;
    --color-azure-dark: #5B8195;
    --color-azure-bg: #EFF4F6;
    --color-card-border: #E8E3D9;
    --color-input-border: #D8D2C4;
    --color-error: #B0584A;
    --color-white: #FFFFFF;
    --color-hairline: #EFEAE0;

    --ph-sand: repeating-linear-gradient(45deg, #F4F1DC, #F4F1DC 10px, #FAF8EA 10px, #FAF8EA 20px);
    --ph-sky: repeating-linear-gradient(45deg, #E9EFF2, #E9EFF2 10px, #F1F5F7 10px, #F1F5F7 20px);

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-card: 18px;
    --radius-card-sm: 14px;
    --radius-thumb: 12px;
    --radius-pill: 999px;

    --page-pad: clamp(20px, 5vw, 48px);
    --maxw: 1200px;
    --maxw-wide: 1296px;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
}

body {
    font-family: var(--font-sans);
    color: var(--color-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; }

em { font-style: italic; color: var(--color-lemon); }

.u-wrap { max-width: var(--maxw); margin: 0 auto; }
.u-wrap--wide { max-width: var(--maxw-wide); margin: 0 auto; }

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px; overflow: hidden;
}

/* Striped photo placeholders ------------------------------------------------*/
.ph {
    background: var(--ph-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.ph--sky { background: var(--ph-sky); }
.ph__label {
    font-family: monospace;
    font-size: 11px;
    color: var(--color-muted);
    text-align: center;
    padding: 0 8px;
}
.ph--sky .ph__label { color: #7C95A3; }
.ph__img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Site header / nav
   ========================================================================== */
.site-header {
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px var(--page-pad);
    background: var(--color-bg);
    border-bottom: 1px solid #ECE9DD;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header--solid {
    position: relative;
}
.site-header--overlay {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(252, 251, 248, 0);
    border-bottom: 1px solid rgba(236, 233, 221, 0);
}
.site-header--overlay.is-scrolled,
.site-header--overlay.is-menu-open {
    background: rgba(248, 246, 236, 0.92);
    border-bottom: 1px solid #ECE9DD;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.site-header--overlay.is-scrolled:not(.is-menu-open) {
    box-shadow: 0 4px 18px rgba(46, 42, 36, 0.06);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-ink);
}
.site-brand__logo {
    width: 90px; 
    background: repeating-linear-gradient(45deg, #ECE8C8, #ECE8C8 4px, #F7F5E4 4px, #F7F5E4 8px);
    display: flex; align-items: center; justify-content: center;
    font-family: monospace; font-size: 9px; color: var(--color-muted);
    object-fit: cover; overflow: hidden;
}
/* When a real logo (incl. SVG) is set, drop the placeholder fill and fit the image. */
.site-brand__logo--has-img,
.site-footer__logo--has-img { background: none; }
.site-brand__logo-img,
.site-footer__logo-img {
    width: 100%; height: 100%;
    object-fit: contain; display: block;
}
/* Topbar logo swap: static logo at the top, sticky logo once the header
   is in its filled state (scrolled on the homepage, or solid inner pages). */
.site-brand__logo-img--sticky { display: none; }
.site-header.is-scrolled .site-brand__logo-img--static,
.site-header.is-menu-open .site-brand__logo-img--static,
.site-header--solid .site-brand__logo-img--static { display: none; }
.site-header.is-scrolled .site-brand__logo-img--sticky,
.site-header.is-menu-open .site-brand__logo-img--sticky,
.site-header--solid .site-brand__logo-img--sticky { display: block; }
.site-brand__name {
    font-family: var(--font-serif);
    font-size: 19px; font-weight: 600;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    gap: clamp(16px, 3vw, 28px);
    font-size: 14px;
}
.site-nav a { color: var(--color-text-on-photo); font-weight: 400; transition: color 0.15s ease; }
.site-nav a:hover { color: var(--color-ink); }
.site-nav a.is-active { color: var(--color-ink); font-weight: 600; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }

.btn-cta {
    background: var(--color-ink);
    color: var(--color-bg);
    font-size: 13px; font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    transition: background 0.2s ease;
}
.btn-cta:hover { background: var(--color-ink-hover); }

/* Hamburger */
.nav-toggle {
    position: relative;
    width: 40px; height: 40px;
    border: none; background: none; cursor: pointer; padding: 0;
    display: none;
}
.nav-toggle__bar {
    position: absolute; left: 10px;
    width: 20px; height: 2px; border-radius: 2px;
    background: var(--color-ink);
}
.nav-toggle__bar--top { top: 13px; transition: transform 0.3s ease; }
.nav-toggle__bar--mid { top: 19px; transition: opacity 0.25s ease; }
.nav-toggle__bar--bot { top: 25px; transition: transform 0.3s ease; }
.is-menu-open .nav-toggle__bar--top { transform: translateY(6px) rotate(45deg); }
.is-menu-open .nav-toggle__bar--mid { opacity: 0; }
.is-menu-open .nav-toggle__bar--bot { transform: translateY(-6px) rotate(-45deg); }

/* Mobile fullscreen menu */
.mobile-menu {
    position: fixed; inset: 0;
    z-index: 150;
    background: var(--color-bg);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 36px;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.mobile-menu.is-open { pointer-events: auto; transform: translateY(0); }
.mobile-menu a {
    font-size: 15px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--color-ink);
}
.mobile-menu a.is-active { color: var(--color-lemon); }

/* Progressive blur strip (front page) */
.blur-strip {
    position: fixed; top: 0; left: 0; right: 0;
    height: 170px; z-index: 90; pointer-events: none;
}
.blur-strip__layer { position: absolute; inset: 0; }
.blur-strip__layer--1 { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%); }
.blur-strip__layer--2 { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 78%); mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 78%); }
.blur-strip__layer--3 { backdrop-filter: blur(11px); -webkit-backdrop-filter: blur(11px); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 26%, transparent 56%); mask-image: linear-gradient(to bottom, #000 0%, #000 26%, transparent 56%); }
.blur-strip__layer--4 { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 12%, transparent 34%); mask-image: linear-gradient(to bottom, #000 0%, #000 12%, transparent 34%); }
.blur-strip__veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(252,251,248,0.65) 0%, rgba(252,251,248,0.25) 45%, rgba(252,251,248,0) 100%); }

/* ==========================================================================
   Buttons (shared)
   ========================================================================== */
.btn {
    display: inline-block;
    font-size: 14px; font-weight: 500;
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    border: none; cursor: pointer;
    font-family: var(--font-sans);
    transition: background 0.2s ease;
}
.btn--primary { background: var(--color-ink); color: var(--color-bg); }
.btn--primary:hover { background: var(--color-ink-hover); }
.btn--glass {
    background: rgba(252,251,248,0.75);
    border: 1px solid rgba(46,42,36,0.18);
    color: var(--color-ink);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn--glass:hover { background: rgba(252,251,248,0.95); }
.btn--outline { background: none; border: 1px solid var(--color-input-border); color: var(--color-ink); font-size: 13px; padding: 10px 22px; }
.btn--block { display: block; text-align: center; width: 100%; }

.eyebrow {
    font-size: 12px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--color-azure-dark);
    font-weight: 600;
}

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--color-text-on-photo);
}
.link-arrow:hover { color: var(--color-ink); }

/* ==========================================================================
   Page intro (archives / contatti)
   ========================================================================== */
.page-intro {
    padding: clamp(40px, 6vw, 64px) var(--page-pad) clamp(24px, 4vw, 40px);
    text-align: center;
}
.page-intro .eyebrow { color: var(--color-azure); display: block; margin-bottom: 16px; }
.page-intro__title {
    font-size: clamp(32px, 4.5vw, 46px);
    line-height: 1.15; margin: 0 auto 16px; max-width: 560px;
}
.page-intro__text {
    font-size: 15px; line-height: 1.7; color: var(--color-text);
    margin: 0 auto; max-width: 500px; text-wrap: pretty;
}

/* ==========================================================================
   Homepage
   ========================================================================== */
.hero {
    position: relative;
    min-height: clamp(440px, 64vh, 580px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 120px var(--page-pad) 64px;
    background: var(--ph-sky);
    overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 52%, rgba(252,251,248,0.78) 0%, rgba(252,251,248,0.35) 55%, rgba(252,251,248,0) 100%);
}
.hero__inner { position: relative; max-width: 720px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero__title {
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1; margin: 0 auto 18px; max-width: 640px;
    letter-spacing: -0.01em;
}
.hero__subtitle {
    font-size: clamp(15px, 1.6vw, 17px); line-height: 1.7;
    color: var(--color-text-on-photo); margin: 0 auto 34px; max-width: 480px;
    text-wrap: pretty;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.preview-section {
    padding: clamp(48px, 7vw, 80px) var(--page-pad) clamp(56px, 8vw, 88px);
    max-width: var(--maxw-wide); margin: 0 auto;
}
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.preview-card {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    height: 360px;
    border-radius: var(--radius-card);
    overflow: hidden;
    color: var(--color-ink);
    background: var(--ph-sand);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.preview-card--sky { background: var(--ph-sky); }
.preview-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(46,42,36,0.1); }
.preview-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-bottom-left-radius: 100px; border-bottom-right-radius: 100px; }
.preview-card__tag {
    position: absolute; top: 16px; right: 18px;
    font-family: monospace; font-size: 11px; color: var(--color-muted);
}
.preview-card__blur {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 265px; pointer-events: none;
}
.preview-card__blur > div { position: absolute; inset: 0; }
.preview-card__blur .b1 { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(to top, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(to top, #000 0%, #000 55%, transparent 100%); }
.preview-card__blur .b2 { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); -webkit-mask-image: linear-gradient(to top, #000 0%, #000 40%, transparent 78%); mask-image: linear-gradient(to top, #000 0%, #000 40%, transparent 78%); }
.preview-card__blur .b3 { backdrop-filter: blur(11px); -webkit-backdrop-filter: blur(11px); -webkit-mask-image: linear-gradient(to top, #000 0%, #000 26%, transparent 56%); mask-image: linear-gradient(to top, #000 0%, #000 26%, transparent 56%); }
.preview-card__blur .b4 { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); -webkit-mask-image: linear-gradient(to top, #000 0%, #000 12%, transparent 34%); mask-image: linear-gradient(to top, #000 0%, #000 12%, transparent 34%); }
.preview-card__blur .veil { background: linear-gradient(to top, rgba(252,251,248,0.92) 0%, rgba(252,251,248,0.5) 50%, rgba(252,251,248,0) 100%); }
.preview-card__body { position: relative; padding: 22px 24px 24px; }
.preview-card__title { font-size: 22px; margin: 0 0 8px; }
.preview-card__text { font-size: 14px; line-height: 1.6; color: var(--color-text-on-photo); margin: 0 0 14px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--color-sand);
    padding: clamp(40px, 6vw, 64px) var(--page-pad) 28px;
}
.site-footer__grid {
    max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px; padding-bottom: 36px;
    border-bottom: 1px solid var(--color-sand-border);
}
.site-footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.site-footer__logo {
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 8px;
    color: var(--color-muted);
    overflow: hidden; 
}
.site-footer__name { font-family: var(--font-serif); font-size: 18px; font-weight: 600; white-space: nowrap; }
.site-footer__claim { font-size: 13px; line-height: 1.7; color: var(--color-text); margin: 0; max-width: 260px; }
.site-footer__heading {
    font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    font-weight: 600; color: var(--color-muted); margin-bottom: 14px;
}
.site-footer__col-list { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--color-text); line-height: 1.6; }
.site-footer__col-list a { color: var(--color-text); }
.site-footer__col-list a:hover { color: var(--color-ink); }
.site-footer__social { display: flex; gap: 10px; }
.social-icon {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--color-sand-border-dark);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-muted);
}
.social-icon:hover { background: var(--color-bg); }
.site-footer__bottom {
    max-width: var(--maxw); margin: 0 auto; padding-top: 20px;
    font-size: 12px; color: var(--color-muted);
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}

/* ==========================================================================
   Generic archive grids + CPT cards
   ========================================================================== */
.archive-section {
    padding: 0 var(--page-pad) clamp(56px, 8vw, 88px);
    max-width: var(--maxw-wide); margin: 0 auto;
}
.archive-grid { display: grid; gap: 24px; }
.archive-grid--struttura { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.archive-grid--servizio,
.archive-grid--ristorante { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Struttura card */
.cpt-struttura-card {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-card);
    overflow: hidden; color: var(--color-ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.cpt-struttura-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(46,42,36,0.1); }
.cpt-struttura-card__photo { height: 280px; }
.cpt-struttura-card__badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--color-bg); font-size: 12px; font-weight: 600;
    color: var(--color-azure-dark); padding: 6px 14px;
    border-radius: var(--radius-pill); white-space: nowrap;
}
.cpt-struttura-card__badge--lemon { color: var(--color-lemon); }
.cpt-struttura-card__badge--dark { background: var(--color-ink); color: var(--color-bg); }
.cpt-struttura-card__body { padding: 26px 28px 28px; }
.cpt-struttura-card__head {
    display: flex; flex-wrap: wrap; align-items: baseline;
    justify-content: space-between; gap: 8px; margin-bottom: 10px;
}
.cpt-struttura-card__title { font-size: 26px; margin: 0; }
.cpt-struttura-card__price { font-size: 14px; color: var(--color-text); }
.cpt-struttura-card__price strong { font-family: var(--font-serif); font-size: 20px; color: var(--color-ink); font-weight: 600; }
.cpt-struttura-card__excerpt { font-size: 14px; line-height: 1.65; color: var(--color-text); margin: 0 0 18px; }
.cpt-struttura-card--soon { position: relative; background: var(--color-white); border: 1px dashed var(--color-input-border); }
.cpt-struttura-card--soon .cpt-struttura-card__photo { opacity: 0.65; }
.cpt-struttura-card--soon .cpt-struttura-card__title { color: var(--color-text); }
.cpt-struttura-card--soon .cpt-struttura-card__excerpt { color: var(--color-muted); margin: 0; }

/* Servizio card */
.cpt-service {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-card);
    overflow: hidden; color: var(--color-ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.cpt-service:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(46,42,36,0.1); }
.cpt-service__photo { height: 190px; }
.cpt-service__body { padding: 22px 24px 24px; }
.cpt-service__title { font-size: 21px; margin: 0 0 8px; }
.cpt-service__excerpt { font-size: 14px; line-height: 1.6; color: var(--color-text); margin: 0 0 16px; }

/* Ristorante card */
.cpt-restaurant {
    background: var(--color-white);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex; flex-direction: column;
}
.cpt-restaurant__photo { height: 190px; }
.cpt-restaurant__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cpt-restaurant__cuisine {
    align-self: flex-start;
    background: var(--color-azure-bg); color: var(--color-azure-dark);
    font-size: 12px; font-weight: 600; padding: 5px 12px;
    border-radius: var(--radius-pill); white-space: nowrap;
}
.cpt-restaurant__cuisine--lemon { background: var(--color-sand); color: var(--color-lemon); }
.cpt-restaurant__title { font-size: 21px; margin: 0; }
.cpt-restaurant__excerpt { font-size: 14px; line-height: 1.6; color: var(--color-text); margin: 0; flex: 1; }
.cpt-restaurant__meta {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 12.5px; color: var(--color-muted);
    border-top: 1px solid var(--color-hairline); padding-top: 12px;
}
.cpt-restaurant__meta span { display: flex; align-items: center; gap: 8px; }
.cpt-restaurant__meta-glyph { color: var(--color-lemon); }
.cpt-restaurant__link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--color-azure); }
.cpt-restaurant__link:hover { color: var(--color-ink); }

/* ==========================================================================
   Single struttura
   ========================================================================== */
.single-wrap {
    max-width: var(--maxw); margin: 0 auto;
    padding: clamp(24px, 4vw, 40px) var(--page-pad) clamp(56px, 8vw, 88px);
}
.single-wrap--narrow { max-width: 1000px; }

.breadcrumb {
    font-size: 13px; color: var(--color-muted);
    margin-bottom: 24px; display: flex; gap: 8px; align-items: center;
}
.breadcrumb a { color: var(--color-azure); font-weight: 500; }

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--color-azure-bg); color: var(--color-azure-dark);
    font-size: 12px; font-weight: 600; padding: 6px 14px;
    border-radius: var(--radius-pill); white-space: nowrap; margin-bottom: 16px;
}

.cpt-struttura__gallery { margin-bottom: clamp(32px, 5vw, 48px); }
.cpt-struttura__main {
    position: relative; height: clamp(260px, 42vw, 600px);
    border-radius: var(--radius-card);
    margin-bottom: 14px; overflow: hidden;
}
.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    border: none; background: rgba(252,251,248,0.85);
    color: var(--color-ink); font-size: 18px; cursor: pointer;
    box-shadow: 0 2px 10px rgba(46,42,36,0.14);
    display: flex; align-items: center; justify-content: center;
}
.gallery-arrow:hover { background: var(--color-bg); }
.gallery-arrow--prev { left: 16px; }
.gallery-arrow--next { right: 16px; }
.gallery-counter {
    position: absolute; bottom: 14px; right: 16px;
    background: rgba(252,251,248,0.85);
    font-size: 12px; font-weight: 600; color: var(--color-text-on-photo);
    padding: 5px 12px; border-radius: var(--radius-pill);
}
/* Active-photo label, bottom-left over the main image */
.cpt-struttura__caption {
    position: absolute; bottom: 14px; left: 16px;
    max-width: calc(100% - 130px);
    background: rgba(46,42,36,0.72);
    color: #FCFBF8;
    font-size: 12.5px; font-weight: 500;
    padding: 6px 14px; border-radius: var(--radius-pill);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Thumbnails as a horizontal photo slider under the main image */
.cpt-struttura__thumbs {
    display: flex; gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--color-sand-border-dark) transparent;
}
.cpt-struttura__thumbs::-webkit-scrollbar { height: 6px; }
.cpt-struttura__thumbs::-webkit-scrollbar-thumb { background: var(--color-sand-border-dark); border-radius: 999px; }
.cpt-struttura__thumb {
    flex: 0 0 clamp(104px, 16vw, 150px);
    height: clamp(72px, 10vw, 104px);
    border-radius: var(--radius-thumb);
    cursor: pointer; border: 2px solid transparent;
    transition: border-color 0.15s ease;
    scroll-snap-align: start;
}
.cpt-struttura__thumb.is-active { border-color: var(--color-azure); }

.single-layout {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(28px, 5vw, 56px); align-items: start;
}
.single-layout--narrow { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.single-main { min-width: 0; }
.cpt-struttura__title, .cpt-service-single__title {
    font-size: clamp(32px, 4.5vw, 44px); line-height: 1.15; margin: 0 0 14px;
}
.cpt-service-single__title { font-size: clamp(30px, 4.2vw, 42px); margin: 0 0 18px; }
.cpt-struttura__details {
    display: flex; flex-wrap: wrap; gap: 18px;
    font-size: 13px; color: var(--color-text); margin-bottom: 24px;
}
.cpt-struttura__details span { display: inline-flex; align-items: center; gap: 6px; }
.cpt-struttura__details .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--color-lemon-light); }
.cpt-struttura__description, .single-main p {
    font-size: 15px; line-height: 1.75; color: var(--color-text);
    margin: 0 0 16px; text-wrap: pretty;
}
.single-subtitle { font-size: 24px; margin: 28px 0 18px; }
.cpt-struttura__amenities {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
}
.cpt-struttura__amenity {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--color-ink);
    background: var(--color-white); border: 1px solid var(--color-card-border);
    border-radius: var(--radius-thumb); padding: 12px 16px;
}
.cpt-struttura__amenity .check { color: var(--color-azure); font-size: 13px; }

/* Sticky side panel (booking / info) */
.side-panel {
    background: var(--color-sand);
    border-radius: var(--radius-card);
    padding: 28px;
    position: sticky; top: 24px;
    max-width: 380px;
}
.cpt-struttura__price-big { margin-bottom: 6px; }
.cpt-struttura__price-big .amount { font-family: var(--font-serif); font-size: 38px; font-weight: 600; }
.cpt-struttura__price-big .per { font-size: 14px; color: var(--color-muted); }
.side-panel__note { font-size: 13px; line-height: 1.6; color: var(--color-muted); margin: 0 0 22px; }
.side-panel__phone { text-align: center; font-size: 13px; color: var(--color-text); }
.side-panel__phone strong { color: var(--color-ink); }
.side-panel__cross {
    border-top: 1px solid var(--color-sand-border); margin-top: 22px; padding-top: 18px;
    font-size: 13px; color: var(--color-text); line-height: 1.6;
}
.side-panel__cross a { color: var(--color-azure); font-weight: 600; }

/* ==========================================================================
   Single servizio
   ========================================================================== */
.cpt-service-single__cover {
    height: clamp(240px, 38vw, 400px); border-radius: var(--radius-card);
    margin-bottom: clamp(28px, 5vw, 44px);
}
.side-panel__title { font-size: 21px; margin: 0 0 18px; }
.info-row {
    display: flex; justify-content: space-between; gap: 16px;
    font-size: 14px; padding: 11px 0; border-bottom: 1px solid var(--color-sand-border);
}
.info-row__label { color: var(--color-muted); }
.info-row__value { color: var(--color-ink); font-weight: 500; text-align: right; }
.cpt-service-single__cta { margin-top: 22px; }
.cpt-service-single__social {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    border-top: 1px solid var(--color-sand-border); margin-top: 22px; padding-top: 18px;
}
.cpt-service-single__social-label {
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 600; color: var(--color-muted);
}
.cpt-service-single__social a { color: var(--color-text); }

.other-services { margin-top: clamp(48px, 7vw, 72px); border-top: 1px solid var(--color-hairline); padding-top: 32px; }
.other-services__head {
    display: flex; flex-wrap: wrap; align-items: baseline;
    justify-content: space-between; gap: 12px; margin-bottom: 20px;
}
.other-services__title { font-size: 24px; margin: 0; }
.other-services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.mini-card {
    display: block; background: var(--color-white);
    border: 1px solid var(--color-card-border); border-radius: var(--radius-card-sm);
    padding: 18px 20px; color: var(--color-ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mini-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(46,42,36,0.09); }
.mini-card__title { font-family: var(--font-serif); font-size: 17px; font-weight: 600; margin-bottom: 6px; }

/* ==========================================================================
   Contatti
   ========================================================================== */
.contatti-section {
    padding: 0 var(--page-pad) clamp(56px, 8vw, 88px);
    max-width: 1100px; margin: 0 auto;
}
.contatti-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(28px, 5vw, 48px); align-items: start;
}
.contact-form-card {
    background: var(--color-white); border: 1px solid var(--color-card-border);
    border-radius: var(--radius-card); padding: clamp(24px, 4vw, 36px);
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: var(--color-error); }
.field label .opt { font-weight: 400; color: var(--color-muted); }
.field input, .field textarea {
    width: 100%; padding: 13px 16px;
    border: 1px solid var(--color-input-border); border-radius: var(--radius-thumb);
    font-size: 14px; background: var(--color-bg); color: var(--color-ink);
    font-family: var(--font-sans);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-azure); outline-offset: -1px; }
.field__error { font-size: 12px; color: var(--color-error); margin-top: 5px; min-height: 0; }
.form-disclaimer { font-size: 12px; color: var(--color-muted); line-height: 1.6; margin: 0; }

.contact-success { text-align: center; padding: 40px 16px; }
.contact-success__check {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--color-azure-bg); color: var(--color-azure);
    font-size: 24px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.contact-success__title { font-size: 26px; margin: 0 0 10px; }
.contact-success__text { font-size: 14px; line-height: 1.7; color: var(--color-text); margin: 0 0 24px; }

.contact-aside { display: flex; flex-direction: column; gap: 20px; }
.contact-card { background: var(--color-sand); border-radius: var(--radius-card); padding: 28px; }
.contact-card__title { font-size: 21px; margin: 0 0 18px; }
.contact-card__list { display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--color-text); line-height: 1.6; }
.contact-card__list > div { display: flex; gap: 12px; }
.contact-card__glyph { color: var(--color-lemon); }
.contact-card__social { display: flex; gap: 10px; margin-top: 22px; }
.contact-map {
    height: 260px; border-radius: var(--radius-card);
    overflow: hidden; background: var(--ph-sky);
    display: flex; align-items: center; justify-content: center;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }
.contact-hours {
    border: 1px solid var(--color-card-border); border-radius: var(--radius-card);
    padding: 22px 24px; font-size: 13px; color: var(--color-text); line-height: 1.7;
}
.contact-hours strong { color: var(--color-ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .site-nav { display: none; }
    .nav-toggle { display: block; }
}

@media (min-width: 769px) {
    .mobile-menu { display: none; }
}
