/*
Theme Name: Parrocchia Terme Vigliatore
Theme URI: http://www.parrocchiatermevigliatore.it
Author: Parrocchia di Terme Vigliatore
Description: Tema responsive in bordeaux e oro per il sito della Parrocchia di Terme Vigliatore.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: parrocchia
*/

:root {
	--bordeaux: #7a1f2b;
	--bordeaux-dark: #5a1520;
	--gold: #b8893a;
	--cream: #faf6ee;
	--paper: #ffffff;
	--ink: #2b2623;
	--muted: #6f665f;
	--line: #e6dfd3;
	--radius: 10px;
	--shadow: 0 2px 10px rgba(60, 30, 20, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; background: var(--cream); color: var(--ink);
	font: 17px/1.65 Georgia, "Times New Roman", serif; -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--bordeaux); text-underline-offset: 2px; }
a:hover, a:focus { color: var(--gold); }
h1, h2, h3, h4 { color: var(--bordeaux-dark); line-height: 1.25; }
table { max-width: 100%; border-collapse: collapse; }
iframe, video { max-width: 100%; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }

/* Header */
#site-header { background: linear-gradient(135deg, var(--bordeaux-dark), var(--bordeaux)); color: #fff; box-shadow: var(--shadow); }
#site-header::after { content: ""; display: block; height: 4px; background: var(--gold); }
.header-in { display: flex; align-items: center; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold); font-size: 28px; color: var(--gold); flex: none; }
.brand-text strong { display: block; font-size: 1.5rem; line-height: 1.15; font-weight: normal; }
.brand-text small { display: block; font-size: .8rem; opacity: .8; font-family: Arial, sans-serif; }
.custom-logo { max-height: 56px; width: auto; }
#search .search-field { padding: 8px 12px; border-radius: 20px; border: 0; font: 15px Arial, sans-serif; }
#search .search-submit { display: none; }
#search label span { display: none; }

/* Navigation */
#mainnav { background: rgba(0,0,0,.18); font-family: Arial, Helvetica, sans-serif; }
#mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
#mainnav li { position: relative; margin: 0; }
#mainnav a { display: block; padding: 13px 16px; color: #fff; text-decoration: none; font-size: .95rem; }
#mainnav a:hover, #mainnav .current-menu-item > a, #mainnav .current-menu-ancestor > a { background: rgba(255,255,255,.14); color: var(--gold); }
#mainnav ul ul { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--bordeaux-dark); flex-direction: column; box-shadow: var(--shadow); z-index: 20; border-radius: 0 0 var(--radius) var(--radius); }
#mainnav li:hover > ul, #mainnav li:focus-within > ul { display: flex; }
#mainnav ul ul a { padding: 10px 16px; }
#nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; padding: 10px; cursor: pointer; }
#nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* Layout */
.layout { display: grid; gap: 28px; padding: 32px 0; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
.layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
#content { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; min-width: 0; }
.breadcrumb { font: .85rem Arial, sans-serif; color: var(--muted); margin-bottom: 14px; }
.entry-title, .page-title { font-size: 1.8rem; border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin-top: 0; }
.entry-title a { text-decoration: none; }
.entry-meta { font: .85rem Arial, sans-serif; color: var(--muted); margin: -4px 0 14px; }
.entry-content h2 { font-size: 1.45rem; }
.entry-content td, .entry-content th { padding: 6px; vertical-align: top; }
.entry-content .alignleft { float: left; margin: 4px 18px 10px 0; }
.entry-content .alignright { float: right; margin: 4px 0 10px 18px; }
.entry-content .aligncenter { display: block; margin: 0 auto; }
.post-card { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.post-card:last-child { border-bottom: 0; }
.post-card .entry-title { font-size: 1.4rem; }
.button, .wp-block-button__link, input[type=submit], .more-link {
	display: inline-block; background: var(--bordeaux); color: #fff; border: 0; border-radius: 6px; padding: 9px 18px; cursor: pointer; font: 15px Arial, sans-serif; text-decoration: none;
}
.search-submit, .wp-element-button { background: var(--bordeaux); color: #fff; border: 0; border-radius: 6px; padding: 9px 18px; cursor: pointer; font: 15px Arial, sans-serif; }
.search-submit:hover { background: var(--gold); }
.button:hover, input[type=submit]:hover, .more-link:hover { background: var(--gold); color: #fff; }
input[type=text], input[type=search], input[type=email], textarea, select { max-width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; font: 15px Arial, sans-serif; }
.navigation.pagination, .post-navigation { font-family: Arial, sans-serif; margin-top: 20px; }
.page-numbers { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; margin-right: 4px; }
.page-numbers.current { background: var(--bordeaux); color: #fff; border-color: var(--bordeaux); }

/* Sidebar */
.widget { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 22px; font-size: .95rem; }
.widget-title { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); font-size: 1.1rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }

/* Footer */
#footer-widgets { background: #efe7d7; border-top: 1px solid var(--line); padding: 28px 0 8px; }
.footer-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
#site-footer { background: var(--bordeaux-dark); color: #e9dccd; padding: 26px 0; font: .9rem Arial, sans-serif; text-align: center; border-top: 4px solid var(--gold); }
#site-footer a { color: #fff; }
#footnav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 0 0 10px; padding: 0; }

/* Responsive */
@media (max-width: 960px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	#nav-toggle { display: block; }
	#mainnav { display: none; }
	#mainnav.open { display: block; }
	#mainnav ul { flex-direction: column; }
	#mainnav ul ul { display: flex; position: static; background: rgba(0,0,0,.2); box-shadow: none; border-radius: 0; }
	#mainnav ul ul a { padding-left: 30px; }
	#content { padding: 20px 16px; }
	.layout { padding: 18px 0; }
	.brand-text strong { font-size: 1.2rem; }
	.brand-text small { display: none; }
	.brand-mark { width: 44px; height: 44px; font-size: 22px; }
	#search { display: none; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 0 12px; }
}
@media print {
	#site-header, #sidebar, #footer-widgets, #site-footer { display: none; }
	body { background: #fff; }
	#content { box-shadow: none; padding: 0; }
}
