/*
Theme Name: A casa da Franz
Theme URI: https://www.acasadafranz.it/
Author: La Corte della Rosa
Description: Tema a blocchi per La Corte della Rosa – A casa da Franz, Manerba del Garda. Toni della pietra, del cotto e dell'ulivo.
Version: 1.0.3
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acasadafranz
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* Etichetta piccola sopra i titoli */
.franz-eyebrow {
	font-size: 0.8rem !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--wp--preset--color--cotto);
	margin-bottom: 0.5rem !important;
}

/* ---------- Header ---------- */
.franz-header { padding-block: 1.25rem; }
.franz-header .wp-block-site-title a { text-decoration: none; color: var(--wp--preset--color--oliva); }
.franz-header .franz-tagline {
	font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--wp--preset--color--testo-tenue); margin: 0;
}
.franz-header .wp-block-navigation a { text-decoration: none; font-weight: 500; }
.franz-header .wp-block-navigation a:hover { color: var(--wp--preset--color--cotto); }

/* ---------- Bottoni ---------- */
.wp-element-button, .wp-block-button__link { transition: background-color .2s ease, color .2s ease; }
.wp-block-button__link:hover { background-color: #8A3920 !important; }
.franz-btn-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--oliva) !important;
	border: 2px solid var(--wp--preset--color--oliva);
}
.franz-btn-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--oliva) !important;
	color: #fff !important;
}

/* ---------- Hero ---------- */
.franz-hero { border-radius: 12px; overflow: hidden; }
.franz-hero-card {
	background: rgba(46, 42, 36, 0.82);
	color: #fff;
	padding: 2rem 2.25rem;
	border-radius: 8px;
	max-width: 620px;
}
.franz-hero-card h1 { color: #fff; margin: 0; }
.franz-hero-card p { color: #EFE6D8; margin-bottom: 0; }

/* ---------- Card ---------- */
.franz-card {
	background: #fff;
	border-radius: 12px;
	padding: 2rem;
}
.franz-card h3 { margin-top: 0; }

.franz-apt figure { margin: 0 0 0.75rem; }
.franz-apt img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.franz-apt h3 { margin: 0 0 0.35rem; }
.franz-apt h3 a { text-decoration: none; color: var(--wp--preset--color--oliva); }
.franz-apt p { font-size: 0.95rem; margin: 0; }

.franz-feature { background: #fff; border-radius: 12px; overflow: hidden; }
.franz-feature figure { margin: 0; }
.franz-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.franz-feature .franz-feature-body { padding: 1.75rem; }
.franz-feature h3 { margin-top: 0; }

/* ---------- Uscite estive ---------- */
.franz-tours h2, .franz-tours h3 { color: #fff; }
.franz-tours .franz-eyebrow { color: #E9D9C2; }
.franz-tour {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 1.75rem;
}
.franz-tour p { color: #DDE3D2; }
.franz-tour .franz-tour-contact { color: #fff; font-weight: 700; }

/* ---------- Franz consiglia (pillole) ---------- */
.franz-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.franz-pills p { margin: 0 !important; }
.franz-pills a {
	display: inline-block;
	background: #fff;
	border-radius: 999px;
	padding: 0.7rem 1.25rem;
	text-decoration: none;
	font-weight: 500;
}
.franz-pills a:hover { background: var(--wp--preset--color--oliva); color: #fff; }

/* ---------- Footer ---------- */
.franz-footer a { color: #fff; }
.franz-footer .franz-footer-bottom { border-top: 1px solid #4A443B; font-size: 0.82rem; color: #B5AB9C; }

/* ---------- Contenuti delle pagine ---------- */
.franz-page-content .ngg-galleryoverview,
.franz-page-content .gallery { margin-block: 2rem; }

@media (max-width: 781px) {
	.franz-hero-card { padding: 1.5rem; }
	.franz-header .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--oliva); }
}

/* ---------- Homepage: sezioni attaccate ---------- */
.franz-home > * { margin-block-start: 0; }
.franz-home > .alignwide:first-child { margin-block-start: 0.5rem; }

/* Hero: foto grande con riquadro di testo in basso a sinistra */
.franz-hero { position: relative; }
.franz-hero > figure { margin: 0; }
.franz-hero > figure img { width: 100%; height: 560px; object-fit: cover; display: block; }
.franz-hero > .franz-hero-card { position: absolute; left: 3rem; bottom: 3rem; margin: 0; }
@media (max-width: 781px) {
	.franz-hero > figure img { height: 320px; }
	.franz-hero > .franz-hero-card { position: static; max-width: none; border-radius: 0; }
}

/* Header e footer */
.franz-header { background: var(--wp--preset--color--pietra); }
.franz-footer { margin-block-start: 0; }

/* Menu su una riga sotto logo e pulsante, sempre dentro la larghezza della pagina */
.franz-header .alignwide { max-width: var(--wp--style--global--wide-size); margin-inline: auto; box-sizing: border-box; }
.franz-header .franz-nav-row {
	margin-top: 1.1rem;
	padding-block: 0.85rem;
	border-top: 1px solid #DDD2C2;
	border-bottom: 1px solid #DDD2C2;
}
.franz-header .wp-block-navigation { font-size: 1rem; }
.franz-header .franz-tagline { white-space: normal; }
.franz-header .wp-block-buttons .wp-block-button__link { white-space: nowrap; }

/* Logo e nome centrati */
.franz-header .franz-brand { gap: 0.35rem; text-align: center; }
.franz-header .franz-brand .wp-block-site-logo { margin-inline: auto; }
.franz-header .franz-brand .franz-tagline { margin: 0; }
