/*
Theme Name: HotelBooking Child
Template: hotelbooking
Version: 1.0
Text Domain: hotelbooking-child
*/

/* 0. FONT (in locale al posto di Google Fonts) */

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

/* 1. VARIABILI */

:root {
	--fr-header: 154px;
	--fr-footer: 182px;
	--fr-hero-padding: 60px;
}

/* 2. HOME */

.home .nicdark_site > .nd_options_height_50 { display: none; }

.home .frh-hero {
	min-height: calc(100vh - var(--fr-header) - var(--fr-footer));
	min-height: calc(100svh - var(--fr-header) - var(--fr-footer));
	padding-top: var(--fr-hero-padding);
	padding-bottom: var(--fr-hero-padding);
	box-sizing: border-box;
}

.frh-box { background: rgba(255,255,255,.85); max-width: 340px; padding: 40px 30px; text-align: center; }
.frh-box { margin-left: 17%; }
.frh-hero .wpb_content_element { margin-bottom: 0; }

@media (max-width: 767px) {
	.frh-box { margin-left: auto; margin-right: auto; }
}

.frh-titolo { font-size: 28px; letter-spacing: 2px; line-height: 1.3; margin: 0 0 20px; font-weight: 400; text-transform:uppercase; }
/* riga 36: .frh-btn { display: inline-block; padding: 10px 24px; background: #333; color: #fff !important; font-size: 13px; text-decoration: none; } */
.frh-btn { display: inline-block; padding: 10px 20px; background: #6b6978; color: #fff !important; font-family: Roboto, sans-serif; font-size: 15px; font-weight: 400; text-decoration: none; transition: background-color .3s ease; }
.frh-btn:hover, .frh-btn:focus { background: #4f4d5a; }
.fr-btn-richiesta { display: inline-block; padding: 10px 20px; background: #6b6978; color: #fff !important; font-family: Roboto, sans-serif; font-size: 15px; font-weight: 400; text-decoration: none; transition: background-color .3s ease; }
.fr-btn-richiesta:hover, .fr-btn-richiesta:focus { background: #4f4d5a; }
.frh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. FORM */

.nicdark_site input[type="submit"] { transition: background-color .3s ease; }
.nicdark_site input[type="submit"]:hover { background-color: #4f4d5a !important; }

.wpcf7 form > p { margin-bottom: 15px; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { display: block; margin: 0; }
.wpcf7 .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.wpcf7 .wpcf7-acceptance input[type="checkbox"] { width: auto !important; height: auto !important; padding: 0 !important; margin: 4px 0 0; flex: none; }

/* 4. MAPPA, RECAPTCHA, BANNER COOKIE */

.wpb_raw_html .cmplz-placeholder-parent { height: 250px !important; }

/* riga 63: .grecaptcha-badge { left: 4px !important; right: auto !important; width: 70px !important; overflow: hidden !important; transition: width .3s ease !important; } */
/* riga 64: .grecaptcha-badge:hover { width: 256px !important; } */
/* righe 66-68: @media (max-width: 767px) { .grecaptcha-badge { transform: scale(.7); transform-origin: left bottom; } } */

/* Google ammette di nascondere il badge se l'avviso è scritto accanto al modulo (.fr-recaptcha nei moduli CF7) */
.grecaptcha-badge { visibility: hidden; }
.fr-recaptcha { font-size: 12px; line-height: 18px; color: #a3a3a3; }
.fr-recaptcha a { color: inherit; text-decoration: underline; }

.cmplz-manage-consent { border: 1px solid #d0d0d0 !important; border-bottom: 0 !important; }

/* banner più basso su mobile: Accetta e Rifiuta affiancati, preferenze sotto */
@media (max-width: 767px) {
	.cmplz-cookiebanner { padding: 12px 15px !important; row-gap: 8px !important; }
	.cmplz-cookiebanner .cmplz-buttons { flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; }
	.cmplz-cookiebanner .cmplz-btn { flex: 1 1 40%; height: 38px !important; padding: 0 10px !important; }
	.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences { flex-basis: 100%; }
}

/* 5. HEADER */

.fr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.fr-skip { position: absolute; left: 10px; top: -100px; z-index: 1000; padding: 10px 20px; background: #fff; color: #000; }
.fr-skip:focus { top: 10px; }
#fr-contenuto:focus { outline: none; }

.fr-header { position: sticky; top: 0; z-index: 100; background: #fafafa; border-bottom: 1px solid #f1f1f1; }
.admin-bar .fr-header { top: var(--wp-admin--admin-bar--height, 32px); }
.fr-header__inner { max-width: 1170px; margin: 0 auto; padding: 8px 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.fr-logo { flex: none; line-height: 0; }
.fr-logo__img { width: 155px; height: auto; }

.fr-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: flex-end; gap: 0 44px; }
.fr-menu > li { position: relative; padding: 0; }
.fr-menu > li::before { content: "|"; position: absolute; left: -24px; color: #f1f1f1; line-height: 27px; }
/* riga 84: .fr-menu > .polylang-item + li::before { content: none; } */
.fr-menu > .polylang-item::before { content: none; }
.fr-menu a { font-family: Roboto, sans-serif; font-size: 16px; line-height: 27px; font-weight: 300; letter-spacing: 1px; color: #727475; text-decoration: none; }
.fr-menu a:hover { color: #000; }
.fr-menu img { display: block; }
.fr-menu .pll-switcher-flag { vertical-align: middle; }

/* riga 90: social e bandierina in fondo a destra, così non si spostano con la lunghezza delle voci */
/* riga 91: .fr-menu > .fr-social { order: 1; } */
/* riga 92: .fr-menu > .polylang-item { order: 2; } */

/* bandierina e voci di testo partono sempre dallo stesso punto accanto al logo, social fermi a destra */
.fr-nav { flex: 1; }
/* riga 96: .fr-menu > .polylang-item { order: -1; margin-right: auto; } */
.fr-menu > .polylang-item { order: -1; }
.fr-menu > .fr-social { order: 1; }
.fr-menu > li:not(.fr-social) + .fr-social { margin-left: auto; }

.fr-menu .sub-menu { display: none; position: absolute; top: 100%; left: -20px; z-index: 999; list-style: none; margin: 0; padding: 20px 0 0; width: 190px; }
.fr-menu li:hover > .sub-menu, .fr-menu li:focus-within > .sub-menu { display: block; }
.fr-menu .sub-menu li { padding: 15px 20px; background: #fff; border-bottom: 1px solid #f1f1f1; box-shadow: 0 2px 5px #f1f1f1; }
.fr-menu .sub-menu li:last-child { border-bottom: 0; }
.fr-menu .sub-menu li:hover { background: #f9f9f9; }
.fr-menu .sub-menu a { display: block; font-size: 14px; color: #444; }

.fr-burger, .fr-close { display: none; background: none; border: 0; padding: 5px; color: #727475; cursor: pointer; line-height: 0; }
.fr-overlay { position: fixed; inset: 0; z-index: 998; background: rgba(0,0,0,.3); }
.fr-overlay[hidden] { display: none; }

@media (max-width: 1199px) {
	.fr-header { position: relative; }
	/* riga 115: .fr-header__inner { flex-direction: column; justify-content: center; gap: 10px; padding: 20px 15px; } */
	.fr-header__inner { padding: 15px; }
	.fr-burger { display: block; }

	.fr-nav { position: fixed; top: 0; right: -300px; z-index: 999; width: 300px; max-width: 85vw; height: 100%; overflow-y: auto; padding: 70px 40px 40px; box-sizing: border-box; background: #fafafa; visibility: hidden; transition: right .4s ease, visibility 0s .4s; }
	.fr-menu-aperto .fr-nav { right: 0; visibility: visible; transition: right .4s ease; }
	.fr-close { display: block; position: absolute; top: 20px; right: 20px; }

	.fr-menu { flex-wrap: wrap; justify-content: flex-start; gap: 0; }
	.fr-menu > li { width: 100%; padding-bottom: 20px; }
	.fr-menu > li::before { content: none; }
	.fr-menu > li > a { display: inline-block; padding: 10px 0; font-size: 24px; text-transform: lowercase; }
	.fr-menu > li > a::first-letter { text-transform: uppercase; }
	.fr-menu > .fr-social, .fr-menu > .polylang-item { width: auto; margin-right: 25px; }
	.fr-menu > li:not(.fr-social) + .fr-social { margin-left: 0; }
	/* bandierine tutte su una riga */
	.fr-menu > .polylang-item { display: flex; align-items: center; gap: 25px; }
	.fr-menu > .polylang-item > a, .fr-menu .sub-menu li a { padding: 10px 0; }
	.fr-menu > .polylang-item .sub-menu { display: flex; gap: 25px; }
	.fr-menu .sub-menu li { padding: 0; }
	.fr-menu .sub-menu { display: block; position: static; width: auto; padding: 0; }
	.fr-menu .sub-menu li { display: inline-block; padding: 0 0 0 20px; background: none; border: 0; box-shadow: none; }
}

/* 6. FOOTER */

.fr-footer { background: #fafafa; padding: 10px 15px; text-align: center; }
.fr-footer p { margin: 0; color: #878787; font-size: 14px; line-height: 27px; letter-spacing: 1px; }
.fr-footer a { color: #878787; text-decoration: none; }
.fr-footer a:hover { color: #000; }
.fr-footer img { display: inline; width: 20px; height: 20px; margin-right: 3px; vertical-align: middle; }
.fr-footer span[aria-hidden] { margin: 0 6px; }
.fr-nowrap { white-space: nowrap; }

@media (max-width: 767px) {
	.fr-footer { padding: 15px; }
	.fr-footer p { font-size: 13px; line-height: 24px; letter-spacing: .5px; }
	.fr-footer__item { display: block; }
	.fr-footer__sep { display: none; }
}

/* 7. PAGINA APPARTAMENTI (titoli diventati h2/h3/p con lo stesso aspetto di prima) */

.fr-h1 { font-size: 30px; line-height: 30px; }
.fr-servizio { font-size: 25px; line-height: 25px; font-weight: 700; margin: 0 0 10px; }
.fr-nota { font-size: 17px; line-height: 17px; font-weight: 700; letter-spacing: 1px; margin: 0 0 10px; }

/* 8. TESTI */

/* indirizzi lunghi (es. www.florencerooftopapartments.com nelle privacy) vanno a capo invece di uscire dallo schermo */
.nd_options_container { overflow-wrap: break-word; }
