/* CASATORRE DEI LEONI | Othala Child override | IT + EN */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');
:root{--ctl-black:#231f20;--ctl-navy:#010b23;--ctl-max:1150px;--ctl-head:72px}
body{font-family:'Raleway',Arial,sans-serif;color:var(--ctl-navy);font-size:14px;line-height:1.65}
h1,h2,h3,h4,h5,h6{font-family:'Raleway',Arial,sans-serif;color:var(--ctl-navy)}
/* Nascondi soltanto gli elementi standard GeneratePress, non il contenuto */
#masthead,.site-header,.main-navigation,.site-footer,.footer-widgets{display:none!important}
/* Header: bianco, logo nero sporgente come nel sito originale */
.ctl-header{height:var(--ctl-head);background:#fff;position:relative;z-index:1000;overflow:visible}
.ctl-header-inner{max-width:var(--ctl-max);height:100%;margin:auto;display:flex;align-items:center;justify-content:flex-end;padding:0 15px 0 155px;position:relative;box-sizing:border-box}
.ctl-logo{position:absolute;left:15px;top:0;width:118px;height:155px;display:flex;align-items:flex-start;z-index:1010;text-decoration:none}
.ctl-logo img{display:block;width:118px;height:auto;max-width:none;object-fit:contain}
.ctl-nav{height:100%;display:flex;align-items:center;min-width:0}
.ctl-menu,.ctl-menu ul{list-style:none;margin:0;padding:0}
.ctl-menu{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:0;height:100%}
.ctl-menu>li{position:relative;margin:0;padding:0}
.ctl-menu>li>a{display:flex;align-items:center;justify-content:center;white-space:nowrap;padding:5px 9px;font-family:'Raleway',Arial,sans-serif;font-size:18px;line-height:22px;font-weight:400;text-transform:uppercase;letter-spacing:0;color:#010b23;text-decoration:none;background:transparent}
/* Attivo: sfondo nero e scritta bianca, anche sulle pagine figlie */
.ctl-menu>li.current-menu-item>a,.ctl-menu>li.current_page_item>a,.ctl-menu>li.current-menu-ancestor>a,.ctl-menu>li.current_page_ancestor>a,.ctl-menu>li>a:hover,.ctl-menu>li>a:focus-visible{background:#000;color:#fff!important}
.ctl-menu>li>a[href*='prenota'],.ctl-menu>li>a[href*='book']{font-weight:700}
.ctl-menu .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:175px;background:#fff;box-shadow:0 8px 18px rgba(0,0,0,.14);z-index:1100}
.ctl-menu li:hover>.sub-menu,.ctl-menu li:focus-within>.sub-menu{display:block}
.ctl-menu .sub-menu li{position:relative}
.ctl-menu .sub-menu a{display:block;padding:9px 13px;color:#010b23;font-size:12px;line-height:1.4;text-decoration:none;white-space:nowrap}
.ctl-menu .sub-menu .sub-menu{top:0;left:100%}
.ctl-menu .sub-menu a:hover,.ctl-menu .sub-menu .current-menu-item>a,.ctl-menu .sub-menu .current-menu-ancestor>a{background:#000;color:#fff}
.ctl-menu-toggle{display:none}
/* Contenuto Gutenberg: non introdurre spazi sopra lo slider */
.home .site-content,.home .content-area,.home .inside-article,.home .entry-content{margin-top:0;padding-top:0}
/* Titoli sezioni: stessa presenza visiva dell'originale */
.ctl-section-title{font-size:32px;line-height:1.2;font-weight:700;text-align:center;text-transform:uppercase;letter-spacing:-.4px;margin:35px 0 32px}
.ctl-section-title:after{content:'';display:block;border-bottom:1px solid #eee;margin:28px auto 0;max-width:100%}
/* Suite / Apartments: immagini con etichetta sovrapposta */
.ctl-room-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ctl-room-card{position:relative;text-align:center;display:block;text-decoration:none}
.ctl-room-card img{width:100%;aspect-ratio:1.5;object-fit:cover;display:block}
.ctl-room-card .ctl-room-label{display:inline-block;position:relative;margin-top:-25px;min-width:60px;background:var(--ctl-black);color:#fff;padding:35px 10px 10px;font-family:'Playfair Display',Georgia,serif;font-size:13px}
/* Booking: conserva lo shortcode/widget originale */
.octobook16060{font-family:'Raleway',Arial,sans-serif!important;background:#fff!important;border:2px solid #000!important;margin-top:30px}
.octobook16060 .octobooktitle{background:#000!important;color:#fff!important;text-align:center;text-transform:uppercase;font-size:20px}
.octobook16060 .octobooksubmit input{background:#000!important;color:#fff!important;border:1px solid #000!important}
.bambini{display:none}
/* Footer fedele: fascia contatti chiara e copyright scuro */
.ctl-footer{margin-top:35px;font-family:'Raleway',Arial,sans-serif;font-size:12px;line-height:1.7}
.ctl-footer-main{background:#f6f7f8;padding:30px max(24px,calc((100% - var(--ctl-max))/2));min-height:115px;box-sizing:border-box}
.ctl-footer-main p{margin:0 0 18px}.ctl-footer-main a{color:inherit;text-decoration:none}.ctl-footer-main a:hover{text-decoration:underline}
.ctl-privacy{font-size:11px;font-weight:600;color:#277ca3!important}
.ctl-footer-bottom{background:var(--ctl-black);color:#fff;text-align:center;padding:16px 15px;font-size:11px}
/* Mobile / tablet */
@media(max-width:1100px){
 .ctl-header-inner{padding-left:130px;padding-right:15px}
 .ctl-logo{width:105px}.ctl-logo img{width:105px}
 .ctl-menu-toggle{display:flex;flex-direction:column;gap:5px;justify-content:center;align-items:center;background:transparent!important;border:0;box-shadow:none!important;padding:10px;cursor:pointer;margin:0}
 .ctl-menu-toggle span{display:block;width:25px;height:2px;background:#111}
 .ctl-nav{display:none;position:absolute;top:100%;left:0;right:0;height:auto;background:#fff;box-shadow:0 8px 18px rgba(0,0,0,.12);max-height:75vh;overflow:auto}
 .ctl-menu-open .ctl-nav{display:block}
 .ctl-menu{display:block;height:auto}
 .ctl-menu>li>a{justify-content:flex-start;padding:12px 20px;font-size:13px;border-bottom:1px solid #eee}
 .ctl-menu .sub-menu{position:static;box-shadow:none;padding-left:18px}
 .ctl-menu li:hover>.sub-menu{display:none}
 .ctl-menu li.ctl-sub-open>.sub-menu{display:block}
 .ctl-menu .sub-menu .sub-menu{position:static}
}
@media(max-width:650px){.ctl-header{height:65px}.ctl-logo{left:15px;width:92px}.ctl-logo img{width:92px}.ctl-room-grid{grid-template-columns:1fr;gap:25px}.ctl-section-title{font-size:28px}.ctl-footer-main{padding:28px 20px}}

/* ===== LAYOUT GENERALE ===== */

body.separate-containers .site-main { margin: 0 !important; }
body.page .site-content, body.page .content-area, body.page .site-main,
body.page .inside-article, body.page .entry-content,
body.page .grid-container { width: 100% !important; max-width: none !important; box-sizing: border-box; }
body.page .inside-article { padding: 40px !important; }
body.page .site-main .wp-block-group__inner-container {
    width: 100% !important; max-width: none !important;
    margin-left: 0 !important; margin-right: 0 !important;
    padding: 0 !important; box-sizing: border-box;
}
body.page .site-main .wp-block-group { max-width: none !important; }
body.page .site-main .is-layout-constrained {
    --wp--style--global--content-size: 100%;
    --wp--style--global--wide-size: 100%;
}
body.page .site-main .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: none !important; }
body.page .entry-content > .alignfull { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
body.page:has(.ct-home) .inside-article { padding: 0 !important; }
@media (max-width: 1024px) and (min-width: 768px) { body.page:not(:has(.ct-home)) .inside-article { padding: 30px !important; } }
@media (max-width: 767px) { body.page:not(:has(.ct-home)) .inside-article { padding: 20px !important; } }

/* ===== HOME: SEZIONI, CAMERE E SERVIZI ===== */
body:has(.ct-home){overflow-x:clip}
body:has(.ct-home) #page,
body:has(.ct-home) #content,
body:has(.ct-home) #primary,
body:has(.ct-home) #main,
body:has(.ct-home) .inside-article,
body:has(.ct-home) .entry-content{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box}
body:has(.ct-home) .ct-home,
body:has(.ct-home) .ct-home .wp-block-group__inner-container{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box}
.ct-home{font-family:Raleway,Arial,sans-serif;color:var(--ctl-navy);padding:0!important}
.ct-home .ct-section{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:55px 40px 25px!important;box-sizing:border-box}
.ct-home .ct-section>h2,.ct-home h2{font-family:Raleway,Arial,sans-serif;font-size:50px!important;line-height:1.2;font-weight:700;color:var(--ctl-navy);text-align:center;letter-spacing:normal;word-break:normal;overflow-wrap:normal;white-space:normal;margin:0 0 40px!important;padding:0 0 28px;border-bottom:1px solid #eee}
/* Camere: tre colonne Gutenberg */
.ct-home .ct-rooms{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px!important;margin:0 0 35px!important}
.ct-home .ct-rooms>.wp-block-column{width:auto!important;min-width:0!important;flex:none!important;margin:0!important}

.ct-home .ct-room { position: relative; display: block; text-align: center; text-decoration: none; padding-bottom: 0; color: inherit; }
.ct-home .ct-room > .ct-room-photo { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.ct-home .ct-room-badge { position: relative; width: 150px; height: 100px; margin: -50px auto 0; z-index: 2; }
.ct-home .ct-room-badge > img { display: block; width: 150px; height: 150px; max-width: none; object-fit: contain; }
.ct-home .ct-room-badge h4 { position: absolute; top: 65px; left: 0; width: 100%; margin: 0; padding: 0 5px; color: #fff !important; font-family: 'Playfair Display',Georgia,serif; font-size: 16px; font-weight: 400; line-height: 1.2; text-align: center; box-sizing: border-box; }
.ct-home .ct-room:hover .ct-room-badge { opacity: .9; }
.ct-home .wp-block-shortcode{width:100%;max-width:none;margin:30px 0!important;padding:0!important}
/* Servizi: la SEZIONE non deve essere una griglia */
.ct-home .ct-services{display:block!important;grid-template-columns:none!important;row-gap:normal!important;column-gap:normal!important}
.ct-home .ct-services>h2{grid-column:auto!important;width:100%!important}
/* Due colonne Gutenberg principali */
.ct-home .ct-services-columns{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:45px!important;align-items:start!important;width:100%!important;margin:0!important}
.ct-home .ct-services-columns>.wp-block-column{width:auto!important;min-width:0!important;flex:none!important;margin:0!important;display:block!important}
/* Ogni servizio: icona e testo, sempre affiancati */
.ct-home .ct-service-row{display:grid!important;grid-template-columns:60px minmax(0,1fr)!important;gap:18px!important;align-items:start!important;width:100%!important;margin:0 0 30px!important}
.ct-home .ct-service-row>.wp-block-column{min-width:0!important;margin:0!important;flex:none!important}
.ct-home .ct-service-row>.wp-block-column:first-child{width:60px!important;flex-basis:auto!important}
.ct-home .ct-service-row>.wp-block-column:last-child{width:100%!important;flex-basis:auto!important}
.ct-home .ct-service-row figure{margin:0!important}
.ct-home .ct-service-row img{display:block;width:46px!important;height:46px!important;object-fit:contain}
.ct-home .ct-service-row h3{font-family:Raleway,Arial,sans-serif;font-size:18px!important;line-height:1.3;font-weight:500;color:var(--ctl-navy);margin:0 0 8px!important}
.ct-home .ct-service-row p{font-family:Raleway,Arial,sans-serif;font-size:13px!important;line-height:1.6;margin:0!important}

@media (max-width: 767px) {
  .ct-home .ct-section { padding: 35px 20px 15px !important; }
  .ct-home h2 { font-size: 36px !important; }
  .ct-home .ct-rooms, .ct-home .ct-services-columns { grid-template-columns: minmax(0,1fr) !important; gap: 20px !important; }
  .ct-home .ct-service-row { grid-template-columns: 50px minmax(0,1fr) !important; gap: 12px !important; }
  .ct-home .ct-service-row > .wp-block-column:first-child { width: 50px !important; }
}

/* ===== HOME: SLIDER ===== */
/* Elimina sfondo grigio e spazi sotto il menu */
body:has(.ct-home) .site,
body:has(.ct-home) .site-content,
body:has(.ct-home) .content-area,
body:has(.ct-home) .site-main,
body:has(.ct-home) .inside-article,
body:has(.ct-home) .entry-content {
    background: #fff !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Rimuove eventuali margini dei blocchi Gutenberg */
body:has(.ct-home) .entry-content > *:first-child,
body:has(.ct-home) .ct-home > *:first-child {
    margin-top: 0 !important;
}

/* Contenitore slider a tutta larghezza */
body:has(.ct-home) .ct-home > .wp-block-shortcode:first-child,
body:has(.ct-home) .ct-home > .wp-block-group:first-child,
body:has(.ct-home) .ct-home > .wp-block-html:first-child {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 0 0 calc(50% - 50vw) !important;
    padding: 0 !important;
}

/* Slider GP Site Kit */
body:has(.ct-home) .gpsk-slider,
body:has(.ct-home) .gpsk-slider-wrapper,
body:has(.ct-home) .gpsk-slider-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Elimina lo spazio tra header e contenuto */
body:has(.ct-home) .ctl-header + *,
body:has(.ct-home) #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Rimuove il padding interno di GeneratePress */
body:has(.ct-home) .site-main .wp-block-group__inner-container {
    padding: 0 !important;
}
/* Slider - Frecce nere e rotonde */
.gpsk-prev,
.gpsk-next {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease;
}

.gpsk-prev:hover,
.gpsk-next:hover {
    background: #333 !important;
}

/* ===== HOME: OCTORATE ===== */
.ct-home .octobook.octobook16060 {
    width: 100% !important;
    max-width: none !important;
    margin: 30px auto 40px !important;
    padding: 0 0 25px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 2px solid #000 !important;
    font-family: 'Raleway', Arial, sans-serif !important;
    overflow: visible !important;
}

/* Titolo nero a tutta larghezza */
.ct-home .octobook16060 .octobooktitle {
    display: block !important;
    width: 100% !important;
    background: #000 !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    padding: 10px 15px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.ct-home .octobook16060 .octobooktitle span {
    color: #fff !important;
    font-size: inherit !important;
}

/* Form centrato e verticale */
.ct-home .octobook16060 form {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 25px 15px 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    gap: 15px !important;
}

/* Ogni campo occupa una riga */
.ct-home .octobook16060 form > .octobook-date,
.ct-home .octobook16060 form > .octobookpax,
.ct-home .octobook16060 form > .octobooksubmit {
    display: grid !important;
    grid-template-columns: 135px 140px !important;
    align-items: center !important;
    column-gap: 20px !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
    width: 295px !important;
    max-width: 100% !important;
    min-height: 55px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Etichette a sinistra */
.ct-home .octobook16060 .octobook-date > label,
.ct-home .octobook16060 .octobookpax > label {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: right !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

/* Calendari */
.ct-home .octobook16060 .octobook-date > .textdate {
    display: block !important;
    float: none !important;
    width: 140px !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.ct-home .octobook16060 .textdate > div {
    width: 100% !important;
    margin: 0 !important;
}

.ct-home .octobook16060 .textdate table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
}

/* Numero adulti */
.ct-home .octobook16060 .octobookpax > div {
    width: 65px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ct-home .octobook16060 .octobookpax select {
    width: 65px !important;
    min-width: 65px !important;
    height: 48px !important;
    padding: 8px 12px !important;
    background: #fff !important;
    color: #777 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    font-size: 16px !important;
}

/* Pulsante sulla riga finale, centrato */
.ct-home .octobook16060 .octobooksubmit {
    display: flex !important;
    justify-content: center !important;
    min-height: 40px !important;
    margin-top: 5px !important;
}

.ct-home .octobook16060 .octobooksubmit > label {
    display: none !important;
}

.ct-home .octobook16060 .octobooksubmit > div {
    width: auto !important;
    margin: 0 !important;
}

.ct-home .octobook16060 .octobooksubmit input[type="submit"] {
    display: block !important;
    width: 130px !important;
    min-width: 130px !important;
    height: 34px !important;
    padding: 5px 15px !important;
    background: #000 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-family: 'Raleway', Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.ct-home .octobook16060 .octobooksubmit input[type="submit"]:hover {
    background: #333 !important;
}

/* Evita che gli stili del widget allarghino il form */
.ct-home .octobook16060 form > .octobook-date *,
.ct-home .octobook16060 form > .octobookpax *,
.ct-home .octobook16060 form > .octobooksubmit * {
    box-sizing: border-box;
}

/* Impostazione finale: campi centrati, etichette allineate a sinistra */
.ct-home .octobook16060 form { justify-content: center !important; }
.ct-home .octobook16060 form > .octobook-date,
.ct-home .octobook16060 form > .octobookpax { margin: 0 auto !important; }
.ct-home .octobook16060 .octobook-date > label,
.ct-home .octobook16060 .octobookpax > label { width: 140px !important; margin: 0 auto !important; text-align: left !important; }
.ct-home .octobook16060 .textdate,
.ct-home .octobook16060 .octobookpax > div { justify-self: start !important; }
.ct-home .octobook16060 form > .octobooksubmit { align-items: center !important; margin: 10px auto 0 !important; }
.ct-home .octobook16060 .octobooksubmit > div { margin: 0 auto !important; }
@media (max-width: 480px) {
  .ct-home .octobook16060 form { padding: 20px 10px !important; gap: 15px !important; }
  .ct-home .octobook16060 form > .octobook-date,
  .ct-home .octobook16060 form > .octobookpax { grid-template-columns: 95px minmax(0,140px) !important; column-gap: 12px !important; width: 247px !important; }
  .ct-home .octobook16060 .octobook-date > label,
  .ct-home .octobook16060 .octobookpax > label { font-size: 13px !important; }
}

/* ===== PAGINA SUITE ===== */
.ct-suite-page { width: 100%; max-width: none !important; margin: 0 !important; padding: 0 !important; font-family: 'Raleway',Arial,sans-serif; color: #07132d; }
.ct-suite-heading { padding: 65px 40px 70px !important; text-align: center; border-bottom: 1px solid #eee; }
.ct-suite-heading h1 { font-size: 50px !important; line-height: 1.2; font-weight: 800; margin: 0 !important; color: #07132d; }
.ct-suite-intro { padding: 25px 40px 30px !important; max-width: none !important; }
.ct-suite-intro h2 { font-size: 24px !important; line-height: 1.4; font-weight: 700; margin: 0 0 25px !important; color: #07132d; }
.ct-suite-intro p { font-size: 16px; line-height: 1.7; margin: 0 0 8px !important; }
.ct-suite-page .ct-suite-list { width: 100%; max-width: none !important; padding: 40px 0 60px !important; box-sizing: border-box; }
.ct-suite-page .ct-suite-row { display: flex !important; flex-wrap: nowrap !important; width: 100% !important; max-width: none !important; margin: 0 auto 90px !important; padding: 0 !important; align-items: center !important; justify-content: center !important; gap: 40px !important; box-sizing: border-box; }
.ct-suite-page .ct-suite-row:last-child { margin-bottom: 0 !important; }
.ct-suite-page .ct-suite-row > .ct-suite-name { flex: 0 0 20% !important; width: 20% !important; max-width: none !important; display: flex !important; align-items: center !important; justify-content: center !important; align-self: center !important; }
.ct-suite-page .ct-suite-row > .ct-suite-photo { flex: 0 0 70% !important; width: 70% !important; max-width: none !important; min-width: 0 !important; }
.ct-suite-page .ct-suite-logo { position: relative; width: 170px !important; max-width: 100%; margin: 0 auto !important; }
.ct-suite-page .ct-suite-logo img { display: block; width: 100% !important; height: auto !important; }
.ct-suite-page .ct-suite-logo span { position: absolute; left: 0; bottom: 10%; width: 100%; text-align: center; color: #fff !important; font-family: 'Playfair Display',Georgia,serif; font-size: 23px !important; line-height: 1.2; }
.ct-suite-page .ct-suite-photo figure, .ct-suite-page .ct-suite-photo a { display: block; width: 100%; margin: 0 !important; }
.ct-suite-page .ct-suite-photo img { display: block; width: 100% !important; height: auto !important; transition: opacity .25s ease; }
.ct-suite-page .ct-suite-photo a:hover img { opacity: .85; }
@media (max-width: 1024px) and (min-width: 768px) {
  .ct-suite-page .ct-suite-row { gap: 25px !important; margin-bottom: 65px !important; }
}
@media (max-width: 767px) {
  .ct-suite-heading { padding: 45px 20px !important; }
  .ct-suite-heading h1 { font-size: 38px !important; }
  .ct-suite-intro { padding: 25px 20px !important; }
  .ct-suite-intro h2 { font-size: 21px !important; }
  .ct-suite-page .ct-suite-list { padding: 20px 0 45px !important; }
  .ct-suite-page .ct-suite-row { flex-direction: column !important; gap: 20px !important; margin-bottom: 55px !important; }
  .ct-suite-page .ct-suite-row > .ct-suite-name,
  .ct-suite-page .ct-suite-row > .ct-suite-photo { flex: 0 0 auto !important; width: 100% !important; max-width: 100% !important; }
  .ct-suite-page .ct-suite-logo { width: 140px !important; }
  .ct-suite-page .ct-suite-logo span { font-size: 20px !important; }
}


/* CASATORRE - Pagine dettaglio suite e appartamenti */
body.page:has(.ct-room-page) .inside-article {padding:0!important;}
body.page:has(.ct-room-page) .entry-content {margin-top:0!important;}
.ct-room-page,.ct-room-slider {width:100%!important;max-width:none!important;margin:0!important;padding:0!important;}
.ct-room-slider .wp-block-shortcode,.ct-room-slider .gpsk-slider {margin:0!important;}
.ct-room-content {width:100%!important;max-width:none!important;padding:0 40px 85px!important;box-sizing:border-box;}
.ct-room-switcher {justify-content:space-around;gap:20px;max-width:1100px;}
.ct-room-tab {position:relative;display:flex;align-items:flex-end;justify-content:center;box-sizing:border-box;width:100px;height:125px;padding:0 6px 9px;background:#929292;color:#fff!important;text-decoration:none!important;font-family:'Playfair Display',Georgia,serif;font-size:20px;line-height:1.2;text-align:center;clip-path:polygon(0 15%,50% 0,100% 15%,100% 100%,0 100%);transition:background .2s;}
.ct-room-tab.is-active {background:#231f20;cursor:default;}
.ct-room-tab:not(.is-active):hover {background:#555;}
.ct-room-details {gap:6%!important;align-items:flex-start!important;margin:0!important;}
.ct-room-description {flex:1 1 60%!important;min-width:0;}
.ct-room-description h1 {font-family:'Playfair Display',Georgia,serif;font-weight:400;font-size:38px;line-height:1.2;margin:0 0 16px;}
.ct-room-description p {margin:0 0 10px;font-size:15px;line-height:1.55;}
.ct-room-features {flex:0 1 34%!important;min-width:0;background:#fff;padding:20px!important;box-sizing:border-box;}
.ct-room-features h2 {font-size:24px;font-weight:400;line-height:1.3;margin:0 0 14px;}
.ct-room-amenities {list-style:none!important;padding:0!important;margin:0 0 20px!important;}
.ct-room-amenities li {list-style:none!important;border:1px solid #aaa;margin:0 0 3px!important;padding:3px 5px;font-size:12px;line-height:1.2;text-transform:uppercase;}
.ct-room-amenities li:last-child {font-weight:700;}
.ct-room-booking {display:inline-block;background:#000;color:#fff!important;text-decoration:none!important;padding:13px 17px;font-size:11px;line-height:1.2;}
.ct-room-booking:hover {background:#444;}
@media(max-width:767px){
.ct-room-content {padding:0 20px 50px!important;}
.ct-room-switcher {gap:12px;margin:-22px auto 30px;}
.ct-room-tab {width:85px;height:105px;font-size:17px;}
.ct-room-details {flex-direction:column!important;gap:28px!important;}
.ct-room-description,.ct-room-features {width:100%!important;flex-basis:100%!important;}
.ct-room-description h1 {font-size:32px;}
}




/* CAMERE - TARGHETTE (regole consolidate) */
.ct-room-switcher {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 40px !important;
    margin: -65px auto 50px !important;
    position: relative !important;
    z-index: 10 !important;
    overflow: visible !important;
}
.ct-room-switcher .ct-room-tab {
    position: relative !important;
    display: block !important;
    width: 190px !important;
    flex: 0 0 190px !important;
    height: auto !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    text-decoration: none !important;
}
.ct-room-switcher .ct-room-tab img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
}
.ct-room-switcher .ct-room-tab span {
    position: absolute !important;
    left: 0 !important;
    bottom: 9% !important;
    width: 100% !important;
    text-align: center !important;
    color: #fff !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 23px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    z-index: 2 !important;
    pointer-events: none;
}
.ct-room-switcher a.ct-room-tab:hover { opacity: .8; }
.ct-room-page, .ct-room-content { overflow: visible !important; }
@media (max-width: 767px) {
    .ct-room-switcher {
        padding: 0 10px !important;
        margin: -35px auto 40px !important;
        gap: 12px !important;
    }
    .ct-room-switcher .ct-room-tab {
        width: 105px !important;
        flex: 0 0 105px !important;
    }
    .ct-room-switcher .ct-room-tab span { font-size: 15px !important; }
}

/* DOVE SIAMO / WHERE WE ARE */

.ct-location-page {
    width: 100%;
}

.ct-location-map {
    width: 100%;
    margin: 0;
}

.ct-location-directions {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px 70px;
}

.ct-location-directions h1 {
    text-align: center;
    margin-bottom: 35px;
}

.ct-location-directions .wp-block-image {
    text-align: center;
}

.ct-location-directions .wp-block-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .ct-location-directions {
        padding: 35px 15px 45px;
    }
}



/* CONTATTI / CONTACT */

.ct-contact-page {
    max-width: 1150px;
    margin: 0 auto;
    padding: 50px 25px 80px;
}

.ct-contact-title {
    text-align: center;
    margin-bottom: 55px;
}

.ct-contact-columns {
    gap: 65px;
    align-items: flex-start;
}

.ct-contact-info h3 {
    margin: 0 0 12px;
}

.ct-contact-info p {
    margin-bottom: 30px;
    line-height: 1.8;
}

.ct-contact-info a {
    color: inherit;
}

.ct-contact-form h2 {
    margin-bottom: 30px;
}

.ct-contact-form input,
.ct-contact-form textarea,
.ct-contact-form select {
    max-width: 100%;
}

@media (max-width: 767px) {
    .ct-contact-page {
        padding: 35px 20px 50px;
    }

    .ct-contact-columns {
        gap: 30px;
    }

    .ct-contact-title {
        margin-bottom: 35px;
    }
}


/* ==========================================================
   TITOLI PRINCIPALI - STILE UNIFICATO IT / EN
   Homepage, Suite, Contatti, Dove siamo
   ========================================================== */
:root {
    --ctl-title-size: 50px;
    --ctl-title-gap: 40px;
    --ctl-title-rule-space: 28px;
    --ctl-title-rule-color: #eee;
}

.ct-home .ct-section > h2,
.ct-suite-heading h1,
.ct-contact-title h1,
.ct-location-directions h1,
body.page .ctl-servizi-title {
    width: 100% !important;
    font-family: 'Raleway', Arial, sans-serif !important;
    font-size: var(--ctl-title-size) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: var(--ctl-navy) !important;
    text-align: center !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 0 var(--ctl-title-gap) !important;
    padding: 0 0 var(--ctl-title-rule-space) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ctl-title-rule-color) !important;
    box-sizing: border-box !important;
}

/* Evita linee decorative duplicate sui titoli. */
.ct-home .ct-section > h2::after,
.ct-suite-heading h1::after,
.ct-contact-title h1::after,
.ct-location-directions h1::after,
body.page .ctl-servizi-title::after { display: none !important; }

/* La sezione Suite aveva anche un bordo sul contenitore. */
.ct-suite-heading { border-bottom: 0 !important; }

@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --ctl-title-size: 42px;
        --ctl-title-gap: 35px;
        --ctl-title-rule-space: 24px;
    }
}
@media (max-width: 767px) {
    :root {
        --ctl-title-size: 36px;
        --ctl-title-gap: 30px;
        --ctl-title-rule-space: 20px;
    }
}



/* CASATORRE - Titolo Servizi: distanza superiore dedicata.
   Font, dimensione, bordo e margine inferiore sono condivisi con la homepage. */
body.page .ctl-servizi-title {
    margin-top: 60px !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
    body.page .ctl-servizi-title {
        margin-top: 45px !important;
    }
}

@media (max-width: 767px) {
    body.page .ctl-servizi-title {
        margin-top: 35px !important;
    }
}


/* DOVE SIAMO - Spazio sopra la sezione grigia */
.ct-location-page {
    margin-top: 60px !important;
}

@media (max-width: 1024px) {
    .ct-location-page {
        margin-top: 45px !important;
    }
}

@media (max-width: 767px) {
    .ct-location-page {
        margin-top: 30px !important;
    }
}



/* CASATORRE - GALLERY ID 282
   Riduzione barra grigia sotto l'header */

body.page-id-282 .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-id-282 .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Mantiene una distanza ordinata dalle fotografie */
body.page-id-282 .entry-content {
    margin-top: 30px !important;
}

@media (max-width: 767px) {
    body.page-id-282 .entry-content {
        margin-top: 20px !important;
    }
}

/* CASATORRE - Logo ridotto SOLO con hamburger aperto */
@media (max-width: 1100px) {
    .ctl-header.ctl-menu-open .ctl-logo {
        width: 60px !important;
        height: auto !important;
        z-index: 1010 !important;
    }
    .ctl-header.ctl-menu-open .ctl-logo img {
        width: 60px !important;
        height: auto !important;
        max-width: none !important;
    }
}


/* HOME - Spazio tra le camere su smartphone */
@media (max-width: 767px) {
    .ct-home .ct-rooms {
        row-gap: 100px !important;
    }
}


/* CASATORRE - Privacy e Back to Top */

.ctl-footer-main {
    position: relative;
}

.ctl-footer-main .ctl-privacy {
    white-space: nowrap !important;
    display: inline-block !important;
    padding-right: 0 !important;
}

/* Pulsante sul bordo destro */
.ctl-footer-main .ctl-back-to-top {
    position: absolute;
    right: 24px;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #231f20;
    color: #fff;
    border: 1px solid #231f20;
    border-radius: 3px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.ctl-footer-main .ctl-back-to-top:hover {
    background: #555;
    color: #fff;
}

/* Smartphone */
@media (max-width: 767px) {
    .ctl-footer-main .ctl-back-to-top {
        right: 20px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .ctl-footer-main .ctl-privacy {
        font-size: 10px;
    }
}

/* FOOTER - Privacy Policy come Cookie Policy */
.ctl-footer-main a[href*="privacy-policy"] {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    font-style: inherit !important;
    text-decoration: inherit !important;
}


/* FOOTER - Sottolineatura Privacy Policy al passaggio del mouse */
.ctl-footer-main a[href*="privacy-policy"]:hover {
    text-decoration: underline !important;
}


/* PRIVACY E COOKIE POLICY - IT + EN */
/* Stesso metodo utilizzato per Gallery */

body.page-id-742 .site-main,
body.page-id-743 .site-main,
body.page-id-751 .site-main,
body.page-id-752 .site-main,
body.page-id-742 .site-content,
body.page-id-743 .site-content,
body.page-id-751 .site-content,
body.page-id-752 .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Spazio sopra il contenuto */
body.page-id-742 .entry-content,
body.page-id-743 .entry-content,
body.page-id-751 .entry-content,
body.page-id-752 .entry-content {
    margin-top: 60px !important;
}

/* Tablet */
@media (max-width: 1024px) {
    body.page-id-742 .entry-content,
    body.page-id-743 .entry-content,
    body.page-id-751 .entry-content,
    body.page-id-752 .entry-content {
        margin-top: 45px !important;
    }
}

/* Smartphone */
@media (max-width: 767px) {
    body.page-id-742 .entry-content,
    body.page-id-743 .entry-content,
    body.page-id-751 .entry-content,
    body.page-id-752 .entry-content {
        margin-top: 30px !important;
    }
}



/* ALLINEAMENTO TESTI E TITOLI CAMERE AL FOOTER - SOLO DESKTOP */
@media (min-width: 1025px) {
    body.page .entry-content p,
    body.page .entry-content > ul,
    body.page .entry-content > ol,
    body.page .entry-content > h2,
    body.page .entry-content > h3,
    body.page .ct-room-description h1 {
        padding-left: max(0px, calc((100vw - 1150px) / 2 - 40px)) !important;
        box-sizing: border-box !important;
    }
}

/* CASATORRE - Elimina lo scroll orizzontale solo su desktop */
@media (min-width: 1025px) {
    html, body { overflow-x: clip !important; }
}


/* CASATORRE - Allineamento descrizioni dei servizi
   Homepage e pagina Servizi - solo desktop */
@media (min-width: 1025px) {
    body.page .ct-service-row p {
        padding-left: 0 !important;
    }
}

