/*
Theme Name:   Hotello Child — Casa a Mare Cetraro
Theme URI:    https://www.casamarecetraro.it
Description:  Child theme di Hotello personalizzato per Casa a Mare Cetraro. Aggiunge font Montserrat/Poppins, override stilistici e hook funzionali senza modificare il tema padre.
Author:       Casa a Mare Cetraro
Author URI:   https://www.casamarecetraro.it
Template:     hotello
Version:      1.2.9
Text Domain:  hotello-child
*/

/* ============================================================
   FONT — Montserrat per titoli/menu, Poppins per body
   I font vengono caricati da functions.php via wp_enqueue_scripts.
   Qui applichiamo solo gli stili.
   ============================================================ */

/* --- Body, paragrafi, contenuti correnti --- */
body,
p,
.stm-room__excerpt,
.stm-room__content,
.stm-room__occupancy,
.wpb_text_column,
.wpb_text_column p,
.vc_general,
input,
textarea,
select,
button,
.form-control,
.wpcf7-form,
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* --- Tutti i titoli --- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.heading_font,
.vc_custom_heading,
.stm-room__title h4,
.stm-room__title h3,
.stm-room__title h2,
.wpb_heading,
.stm-page-title__title,
.widget-title,
.widgettitle,
.entry-title,
.section-title,
.title_block h2,
.title_block h3 {
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* H1 e H2 leggermente più impattanti */
h1, .h1 { font-weight: 700; letter-spacing: -0.02em; }
h2, .h2 { font-weight: 600; letter-spacing: -0.015em; }

/* --- Menu navigazione --- */
.stm-header,
.stm-header__menu,
.menu,
.main-menu,
.main-menu li a,
.stm-header__menu li a,
nav.navigation a {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* --- Bottoni --- */
.btn,
.button,
.wpb_button,
.vc_btn3,
.stm-button,
button[type="submit"],
input[type="submit"] {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* --- Form labels --- */
label,
.wpcf7-form label,
.wpforms-field-label,
.form-label {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* --- Prezzo nelle card stanze (lo lasciamo Montserrat, è un dato) --- */
.stm-room__price,
.stm-room__price span,
.htl-price,
.amount {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 600;
}

/* ============================================================
   PICCOLI MIGLIORAMENTI DI LEGGIBILITA'
   Niente di invasivo, solo per il look "turistico moderno".
   ============================================================ */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Spaziatura paragrafi leggermente più aerata */
.wpb_text_column p {
    line-height: 1.7;
}

/* ============================================================
   SPAZIO PER OVERRIDE FUTURI (Blocco D, E, G)
   Aggiungere qui mano a mano. Non duplicare regole del padre.
   ============================================================ */


/* ============================================================
   BLOCCO F.1.a — FOOTER LUXURY (v1.1.3)
   ============================================================
   4 colonne footer rifinite. Tipografia Montserrat, accento gold
   #c19b76, link bianchi semi-trasparenti con hover gold.
   Le widget areas footer_1..footer_4 sono già a 4 colonne grazie a
   stm_theme_options[footer_cols]=4. Qui rifiniamo titoli, link,
   spaziature, social, blocco contatti.
   ============================================================ */

/* --- Logo/brand block (col 1) --- */
.stm-footer .cmc-footer-brand {
    margin-bottom: 18px;
}
.stm-footer .cmc-footer-brand__logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 18px;
    display: block;
}
.stm-footer .cmc-footer-brand__claim {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 18px;
}
.stm-footer .cmc-footer-brand__socials {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}
.stm-footer .cmc-footer-brand__socials li { margin: 0; }
.stm-footer .cmc-footer-brand__socials a {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all .25s ease;
}
.stm-footer .cmc-footer-brand__socials a:hover {
    background: #c19b76;
    border-color: #c19b76;
    color: #fff;
}

/* --- Titoli widget tutti uniformati --- */
.stm-footer .widget-title,
.stm-footer .widgettitle,
.stm-footer h2.widgettitle,
.stm-footer h3.widgettitle,
.stm-footer h4 {
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #fff !important;
    margin: 0 0 22px !important;
    padding: 0 0 14px !important;
    position: relative;
}
.stm-footer .widget-title::after,
.stm-footer .widgettitle::after,
.stm-footer h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: #c19b76;
}

/* --- Menu nav widget pulizia --- */
.stm-footer .widget_nav_menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.stm-footer .widget_nav_menu li {
    margin: 0 0 9px;
    padding: 0;
    border: none;
}
.stm-footer .widget_nav_menu li::before {
    content: "›";
    color: #c19b76;
    display: inline-block;
    width: 14px;
    margin-right: 4px;
    font-weight: 700;
}
.stm-footer .widget_nav_menu a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 13px;
    transition: color .2s ease;
}
.stm-footer .widget_nav_menu a:hover {
    color: #c19b76;
}

/* --- Blocco contatti (col 4) --- */
.stm-footer .cmc-footer-contacts {
    font-size: 13px;
    line-height: 1.7;
}
.stm-footer .cmc-footer-contacts__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.65);
}
.stm-footer .cmc-footer-contacts__icon {
    color: #c19b76;
    font-size: 16px;
    line-height: 1.4;
    width: 18px;
    flex-shrink: 0;
    text-align: center;
}
.stm-footer .cmc-footer-contacts__value { flex: 1; }
.stm-footer .cmc-footer-contacts a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color .2s ease;
}
.stm-footer .cmc-footer-contacts a:hover { color: #c19b76; }
.stm-footer .cmc-footer-contacts__newsletter {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stm-footer .cmc-footer-contacts__newsletter-label {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c19b76;
    margin-bottom: 10px;
}
.stm-footer .cmc-footer-contacts__newsletter form input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    border-radius: 2px;
    margin-bottom: 8px;
}
.stm-footer .cmc-footer-contacts__newsletter form input[type="email"]:focus {
    outline: none;
    border-color: #c19b76;
}
.stm-footer .cmc-footer-contacts__newsletter form input[type="submit"] {
    width: 100%;
    padding: 10px;
    background: #c19b76;
    border: none;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease;
}
.stm-footer .cmc-footer-contacts__newsletter form input[type="submit"]:hover {
    background: #ad8763;
}

/* --- Bottom copyright più discreto --- */
.stm-footer__bottom {
    margin-top: 50px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stm-footer__bottom,
.stm-footer__bottom a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}
.stm-footer__bottom a:hover { color: #c19b76; }

/* --- Spaziature colonne in tablet/mobile --- */
@media (max-width: 991px) {
    .stm-footer .row.stm-footer__widgets > [class*="col-"] {
        margin-bottom: 36px;
    }
}

/* ============================================================
   BLOCCO F.1.a — PAGINA "CHI SIAMO" — STILI DEDICATI
   ============================================================ */
.cmc-about-section {
    padding: 70px 0;
}
.cmc-about-section--cream {
    background: #faf7f2;
}
.cmc-about-eyebrow {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c19b76;
    margin-bottom: 12px;
    display: block;
}
.cmc-about-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}
.cmc-about-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .6s ease;
}
.cmc-about-image-wrap:hover img {
    transform: scale(1.04);
}
.cmc-about-divider {
    width: 50px;
    height: 2px;
    background: #c19b76;
    margin: 18px 0 24px;
}


/* ============================================================
   v1.8.0 — Fix overflow descrizione single-room
   ============================================================
   Hotello stampa la descrizione del room nel layout principale, ma
   il paragrafo si espande fino al bordo destro della pagina, andando
   oltre la colonna principale (sidebar booking a destra).
   Vincoliamo larghezza e word-break.
   ============================================================ */
.single-room .room__content,
.single-room .room__description,
.single-room .room__main,
.single-room .room-section--description,
.single-room .room-section--description p,
.single-room article.type-room > .entry-content,
.single-room article.type-room > .entry-content > p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

/* Container generico per testi descrittivi sotto le amenities */
.single-room .stm_room_facilities + p,
.single-room .room__facilities--single + p,
.single-room .room_facilities + p,
.single-room .stm-room__excerpt {
    max-width: 730px;
    margin-right: auto;
}

/* La descrizione lunga occupa solo la colonna centrale */
.single-room .vc_row .wpb_text_column .wpb_wrapper > p,
.single-room .vc_row .wpb_text_column .wpb_wrapper {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Stretch container fluido (col padding) per evitare che la prosa esca */
.single-room .container > .row > .col-md-12,
.single-room .container > .row > .col-sm-12 {
    overflow-x: hidden;
}

/* ============================================================
   v1.2.9 — Patch 2.8: fix doppia linea nei widget footer
   ============================================================
   Sotto i titoli "ESPLORA" e "INFO UTILI" comparivano DUE linee
   dorate impilate: una del nostro .widget-title::after (corretta),
   l'altra ereditata dal tema padre Hotello (border/::before sul
   widget nav o sulla ul). Azzeriamo tutto ciò che il parent aggiunge
   sopra la lista, mantenendo solo la nostra underline del titolo.
   ============================================================ */
.stm-footer .widget_nav_menu::before,
.stm-footer .widget_nav_menu::after,
.stm-footer .widget_nav_menu ul::before,
.stm-footer .widget_nav_menu ul::after,
.stm-footer .menu::before,
.stm-footer .menu::after {
    display: none !important;
    content: none !important;
    border: 0 !important;
}
.stm-footer .widget_nav_menu,
.stm-footer .widget_nav_menu ul,
.stm-footer .widget_nav_menu .menu {
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}
/* Il tema padre a volte mette una linea come primo figlio pseudo
   della prima voce; la annulliamo esplicitamente (manteniamo però
   il nostro "›" gold su ::before del li, definito sopra). */
.stm-footer .widget_nav_menu li:first-child {
    border-top: 0 !important;
}
