/*
 Theme Name:   Passacor (GeneratePress Child)
 Theme URI:    https://www.hotelpassacor.it/
 Description:  Child theme di GeneratePress per Hotel Passacör. Palette crema/verde/oro, titoli Cormorant, testo Lora (font ospitati in locale).
 Author:       Hotel Passacör
 Template:     generatepress
 Version:      1.0.0
 Requires at least: 6.5
 Requires PHP: 7.4
 Text Domain:  passacor
*/

/* ==========================================================
   1. FONT LOCALI (nessuna chiamata a Google)
   ========================================================== */
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/cormorant-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/lora-latin-wght-normal.woff2") format("woff2"); }

/* ==========================================================
   2. VARIABILI
   ========================================================== */
:root {
	--pc-bg: #F7F6F2;
	--pc-surface: #FFFFFF;
	--pc-sand: #EDE6D8;
	--pc-ink: #272727;
	--pc-muted: #4A4A4A;
	--pc-deep: #16403C;
	--pc-deep-dark: #0E2C29;
	--pc-gold: #C29D68;
	--pc-gold-hover: #B08A55;
	--pc-gold-dark: #7A5A2E;
	--pc-footer: #14201F;
	--pc-line: #DDD8CC;
	--pc-radius: 12px;
	--pc-shadow: 0 8px 28px rgba(0, 0, 0, .06);
	--pc-serif: "Cormorant", Georgia, serif;
	--pc-text: "Lora", Georgia, serif;
	--pc-max: 1280px;
}

/* ==========================================================
   3. BASE
   ========================================================== */
body {
	background-color: var(--pc-bg);
	color: var(--pc-ink);
	font-family: var(--pc-text);
	font-size: 17px;
	line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--pc-serif); color: #111; line-height: 1.1; }
h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 700; margin-bottom: 24px; }
h2 { font-size: clamp(34px, 4vw, 50px); font-weight: 600; margin-bottom: 20px; }
h3 { font-size: 28px; font-weight: 600; margin-bottom: 10px; }
a { color: var(--pc-gold-dark); }
a:hover, a:focus { color: var(--pc-deep); }
img { border-radius: 0; }

/* Contenuto a tutta larghezza: le sezioni gestiscono da sole la larghezza */
.pc-full .site.grid-container, .pc-full .site.container { max-width: none; }
.pc-full .site-content { padding: 0; display: block; }
.pc-full .site-main { margin: 0 !important; }
.pc-full .inside-article { padding: 0 !important; background: transparent !important; }
.pc-full .entry-content:not(:first-child) { margin-top: 0; }
.pc-full .entry-content > * { margin-top: 0; margin-bottom: 0; }
.separate-containers .inside-article, .one-container .container { background: transparent; }

/* ==========================================================
   4. TOP BAR (area widget "Top Bar")
   ========================================================== */
.top-bar { background: var(--pc-deep); color: #F2EFE6; font-size: 14px; }
.top-bar .inside-top-bar { padding: 8px 32px; max-width: var(--pc-max); margin: 0 auto; display: block; }
.top-bar .widget { margin: 0; width: 100%; }
.top-bar p { margin: 0; }
.top-bar a { color: #F2EFE6; text-decoration: none; }
.top-bar a:hover { color: var(--pc-gold); }
.pc-topbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; }
.pc-topbar-items { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.pc-topbar-items strong { color: var(--pc-gold); font-weight: 600; letter-spacing: .04em; }

/* ==========================================================
   5. HEADER + MENU
   ========================================================== */
.site-header, .main-navigation, .main-navigation ul ul { background: var(--pc-bg); }
.inside-header { padding-top: 16px; padding-bottom: 16px; }
.site-logo img, .header-image { max-height: 64px; width: auto; }
.main-title a { color: var(--pc-deep); font-family: var(--pc-serif); font-size: 34px; font-weight: 700; }
.main-navigation .main-nav ul li a { font-family: var(--pc-text); font-size: 16px; color: var(--pc-ink); }
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--pc-gold-dark); background: transparent; }
.main-navigation .main-nav ul ul li a { font-size: 15px; }
.main-navigation .menu-toggle { color: var(--pc-ink); }

/* Voce di menu "Prenota" come pulsante (classe CSS: pc-menu-btn) */
.main-navigation .main-nav ul li.pc-menu-btn > a {
	background: var(--pc-gold);
	color: #1E1E1E;
	border-radius: var(--pc-radius);
	line-height: 46px;
	padding: 0 26px;
	margin-left: 12px;
	font-weight: 600;
}
.main-navigation .main-nav ul li.pc-menu-btn > a:hover { background: var(--pc-gold-hover); color: #111; }

/* ==========================================================
   6. PULSANTI
   ========================================================== */
.wp-block-button__link,
.site a.wp-block-button__link:not(.has-background),
button, input[type="submit"], .button, .wpcf7-submit {
	background: var(--pc-gold);
	color: #1E1E1E;
	border-radius: var(--pc-radius);
	font-family: var(--pc-text);
	font-weight: 600;
	font-size: 16px;
	padding: 13px 26px;
	border: 0;
}
.wp-block-button__link:hover, .wp-block-button__link:focus,
.site a.wp-block-button__link:not(.has-background):hover, .site a.wp-block-button__link:not(.has-background):focus,
button:hover, input[type="submit"]:hover, .button:hover, .wpcf7-submit:hover { background: var(--pc-gold-hover); color: #111; }

.site .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--pc-ink); border: 1px solid var(--pc-ink); }
.site .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--pc-ink); color: #fff; }
.site .wp-block-button.pc-btn-deep .wp-block-button__link { background: var(--pc-deep); color: #fff; }
.site .wp-block-button.pc-btn-deep .wp-block-button__link:hover { background: var(--pc-deep-dark); color: #fff; }
.site .pc-dark .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }

/* ==========================================================
   7. SEZIONI (classi usate nelle pagine)
   ========================================================== */
.pc-section { max-width: var(--pc-max); margin-left: auto !important; margin-right: auto !important; padding: 96px 32px; box-sizing: border-box; }
.pc-section--wide { max-width: 1376px; }
.pc-section--tight { padding-top: 0; }
.pc-center { text-align: center; }
.pc-center .wp-block-buttons { justify-content: center; }

.pc-eyebrow { color: var(--pc-deep); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px !important; }
.pc-eyebrow::before, .pc-eyebrow::after { content: " — "; color: var(--pc-gold); }
.pc-lead { color: var(--pc-muted); max-width: 720px; }
.pc-center .pc-lead { margin-left: auto; margin-right: auto; }
.pc-accent { color: var(--pc-gold-dark); }
.pc-small { font-size: 15px; color: #555; }

/* Hero home */
.pc-hero { padding-top: 64px; padding-bottom: 48px; }
.pc-hero h1 { max-width: 980px; margin: 0 auto 20px; }
.pc-hero-img { margin: 0 !important; }
.pc-hero-img img { width: 100%; height: clamp(320px, 42vw, 600px); object-fit: cover; border-radius: 28px; display: block; }

/* Intestazione pagine interne */
.pc-pagehead { background: var(--pc-sand); padding: 80px 32px 72px; text-align: center; }
.pc-pagehead h1 { margin: 0 auto 16px; max-width: 900px; }
.pc-pagehead .pc-lead { margin: 0 auto; }

/* Immagini arrotondate */
.pc-img { margin: 0 !important; }
.pc-img img { border-radius: 24px; width: 100%; height: 100%; max-height: 560px; object-fit: cover; display: block; }

/* Colonne con più respiro */
.wp-block-columns.pc-cols-gap { gap: 64px; }
.wp-block-columns { margin-bottom: 0; }

/* Numeri */
.pc-stats { border-top: 1px solid var(--pc-line); padding-top: 24px; margin-top: 24px !important; }
.pc-stat-num { font-family: var(--pc-serif); font-size: 50px; font-weight: 700; color: var(--pc-deep); line-height: 1; margin: 0 0 4px !important; }
.pc-stat-label { font-size: 15px; color: #555; margin: 0 !important; }

/* Card con immagine di sfondo (camere / foresteria) */
.pc-cover { border-radius: 24px; overflow: hidden; }
.pc-cover .wp-block-cover__inner-container { text-align: left; }
.pc-cover p { color: #fff; margin: 0 0 6px; }
.pc-cover h3 { color: #fff; font-size: 40px; margin: 0 0 20px; }

/* Sezione scura */
.pc-dark { background: var(--pc-deep); color: #F2EFE6; border-radius: 32px; padding: 88px 64px !important; }
.pc-dark h2, .pc-dark h3 { color: #fff; }
.pc-dark .pc-eyebrow { color: var(--pc-gold); }
.pc-dark .pc-eyebrow::before, .pc-dark .pc-eyebrow::after { color: #F2EFE6; }
.pc-dark .wp-block-columns { margin-top: 22px; gap: 22px; }
.pc-dark-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 32px; }
.pc-dark-card p { color: #D6D2C6; font-size: 15px; margin: 0; }
.pc-dark-card h3 { margin: 0 0 8px; font-size: 26px; }

/* Card bianche (camere, servizi, attività) */
.pc-card { background: var(--pc-surface); border-radius: 20px; overflow: hidden; box-shadow: var(--pc-shadow); display: flex; flex-direction: column; }
.pc-card > .wp-block-image { margin: 0; }
.pc-card > .wp-block-image img { width: 100%; height: 230px; object-fit: cover; display: block; }
.pc-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.pc-card-body h3 { margin: 0 0 6px; }
.pc-card-body p { font-size: 15px; color: #555; margin: 0 0 12px; }
.pc-card-body .wp-block-list { font-size: 15px; color: #444; margin: 0 0 16px; padding-left: 18px; }
.pc-card-body .wp-block-buttons { margin-top: auto; }
.pc-grid-gap { gap: 22px; }

/* Riquadro sabbia */
.pc-sand { background: var(--pc-sand); border-radius: 32px; padding: 64px !important; }

/* Box form e contatti */
.pc-formbox { background: var(--pc-surface); border-radius: 24px; padding: 40px !important; box-shadow: var(--pc-shadow); }
.pc-formbox input[type="text"], .pc-formbox input[type="email"], .pc-formbox input[type="tel"], .pc-formbox textarea {
	width: 100%; border: 1px solid var(--pc-line); border-radius: 10px; background: #FBFAF7; padding: 12px 14px; font-family: var(--pc-text); font-size: 16px; color: var(--pc-ink);
}
.pc-formbox .wpcf7-form p { margin-bottom: 14px; }
.pc-info p { margin: 0 0 14px; }
.pc-info strong { font-family: var(--pc-serif); font-size: 22px; color: #111; display: block; }

/* Testi legali */
.pc-legal { max-width: 900px; }
.pc-legal h2 { font-size: 30px; border-bottom: 1px solid var(--pc-line); padding-bottom: 8px; margin-top: 40px; }
.pc-note { background: #FDF8F3; border-left: 4px solid var(--pc-gold); padding: 16px 20px; }

/* ==========================================================
   8. FOOTER
   ========================================================== */
.site-footer { background: var(--pc-footer); }
.site-footer .footer-widgets { background: var(--pc-footer); color: #CFCBBF; font-size: 15px; }
.site-footer .footer-widgets h2, .site-footer .footer-widgets h3, .site-footer .footer-widgets .widget-title { font-family: var(--pc-serif); color: #fff; font-size: 24px; }
.site-footer .footer-widgets .widget { background: transparent; }
.site-footer a { color: #CFCBBF; }
.site-footer a:hover { color: var(--pc-gold); }
.site-info { background: var(--pc-footer); color: #CFCBBF; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.site-info a { color: #CFCBBF; }

/* ==========================================================
   9. RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
	.pc-section { padding: 72px 24px; }
	.pc-dark, .pc-sand { padding: 48px 24px !important; }
	.wp-block-columns.pc-cols-gap { gap: 40px; }
}
@media (max-width: 768px) {
	.top-bar .inside-top-bar { padding: 8px 16px; }
	.pc-topbar { font-size: 13px; }
	.pc-section { padding: 56px 18px; }
	.pc-pagehead { padding: 56px 18px 48px; }
	.pc-formbox { padding: 24px !important; }
	.main-navigation .main-nav ul li.pc-menu-btn > a { margin: 8px 0 8px 16px; display: inline-block; line-height: 44px; }
	.pc-cover h3 { font-size: 32px; }
}

/* ==========================================================
   10. GRUPPI CON CONTENITORE INTERNO (temi classici)
   ========================================================== */
.pc-topbar > .wp-block-group__inner-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; width: 100%; }
.pc-card-body > .wp-block-group__inner-container { display: flex; flex-direction: column; flex: 1; }
.pc-card-body > .wp-block-group__inner-container > .wp-block-buttons { margin-top: auto; }
.wp-block-group__inner-container { padding: 0 !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; width: 100%; }
.pc-card-body .wp-block-button, .pc-card-body .wp-block-button__link { width: 100%; text-align: center; }
