/*
Theme Name: Carterìa ai Frari - Moderno
Theme URI: https://www.carteriaaifrari.it
Description: Variante moderna del tema "Carterìa ai Frari". Non lo sostituisce: è un tema figlio che si può provare con "Anteprima dal vivo" o attivare al posto dell'originale, senza perdere nulla (contenuti, menu, slide, creazioni restano gli stessi). Mantiene la barra a tessere di carta colorate, l'oro delle scritte, il verde petrolio dei titoli e gli sfondi di pagina; aggiunge menu in barra su desktop, tipografia con grazie per i titoli, riquadri più morbidi e movimento più discreto.
Author: Carterìa ai Frari
Template: carteria-ai-frari
Version: 0.1
Text Domain: carteria-ai-frari-moderno
*/

/* ------------------------------------------------------------------
   Valori di base (si cambiano qui, in un punto solo)
   ------------------------------------------------------------------ */
:root {
	--oro: #e0b967;
	--oro-scuro: #b8923f;
	--petrolio: #0a7389;
	--petrolio-scuro: #075a6b;
	--notte: #0b1d26;
	--inchiostro: #2a3238;
	--carta: #fbf8f2;
	--raggio: 14px;
	--ombra: 0 12px 32px -14px rgba(11, 29, 38, 0.45);
	--ombra-lieve: 0 4px 14px -6px rgba(11, 29, 38, 0.35);
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--altezza-barra: 3.25rem;
}

/* ------------------------------------------------------------------
   Testo
   ------------------------------------------------------------------ */
body { color: var(--inchiostro); font-size: 1.0625rem; line-height: 1.72; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 500; font-variant: normal; letter-spacing: 0.005em; color: #26323a; }
h2 { font-size: 1.9rem; line-height: 1.3; }
h3 { font-size: 1.4rem; line-height: 1.35; }
h4 { font-size: 1.15rem; }
.boxa header h2, .boxb header h2, .boxr header h2 { color: var(--petrolio); }
a { color: var(--petrolio); }
.boxa a:hover, .boxb a:hover, .boxr a:hover, .content a:hover { color: var(--petrolio-scuro); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--oro); color: #1b1b1b; }

/* ------------------------------------------------------------------
   Barra superiore: tessere di carta colorate, appena attenuate perché
   le scritte si leggano; menu a fianco del logo (da 1200px in su)
   ------------------------------------------------------------------ */
#header { height: var(--altezza-barra); box-shadow: 0 2px 18px rgba(0, 0, 0, 0.28); }
#header:before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(7, 24, 35, 0.42), rgba(7, 24, 35, 0.58)); pointer-events: none; }
#header > * { position: relative; z-index: 1; }
#header > .logo { position: absolute; }
#header > a[href="#menu"] { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; }
.nav-principale { display: none; }

@media screen and (min-width: 1200px) {
	:root { --altezza-barra: 3.9rem; }
	#header { display: flex; align-items: center; justify-content: space-between; line-height: var(--altezza-barra); padding: 0 1.6rem 0 0.4rem; text-align: left; }
	#header > .logo { position: static; flex: 0 0 auto; top: auto; left: auto; }
	#header > .logo img { width: 4.2em; height: 3em; margin: 0 0.5em 0 0.9em; vertical-align: middle; }
	#header > a[href="#menu"] { display: none; }

	.nav-principale { display: block; margin-left: auto; }
	.nav-principale ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.15rem; }
	.nav-principale li { margin: 0; padding: 0; }
	.nav-principale a { display: block; position: relative; padding: 0 0.85rem; color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55); line-height: var(--altezza-barra); transition: color 0.2s ease; }
	.nav-principale a:after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.95rem; height: 2px; background: var(--oro); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
	.nav-principale a:hover { color: var(--oro); }
	.nav-principale a:hover:after, .nav-principale .current-menu-item > a:after, .nav-principale .current-page-ancestor > a:after { transform: scaleX(1); }
	.nav-principale .current-menu-item > a, .nav-principale .current-page-ancestor > a { color: var(--oro); }
	.nav-principale img { width: auto !important; height: 0.9rem; vertical-align: -0.12rem; margin-right: 0.35rem; }
	.nav-principale li:last-child a { border-left: 1px solid rgba(255, 255, 255, 0.28); margin-left: 0.5rem; padding-left: 1.1rem; }

	.wrapper { padding-top: 7rem; }
}

/* ------------------------------------------------------------------
   Riquadri delle pagine e delle schede
   ------------------------------------------------------------------ */
.boxa, .boxb, .boxr { background: rgba(251, 248, 242, 0.88); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); border-radius: calc(var(--raggio) + 4px); box-shadow: var(--ombra); border: 1px solid rgba(255, 255, 255, 0.6); }
.boxc { border-radius: var(--raggio); box-shadow: var(--ombra); overflow: hidden; }
.boxc header h2 { font-size: 1.45rem; }
.boxc header p { letter-spacing: 0.18em; }

.scheda { border-radius: var(--raggio); box-shadow: var(--ombra-lieve); transition: transform 0.28s ease, box-shadow 0.28s ease; }
.scheda:hover { transform: translateY(-4px); box-shadow: var(--ombra); }
.scheda-corpo h3 { font-family: var(--serif); font-size: 1.12rem; }
.scheda-prezzo { color: var(--petrolio-scuro); }
.schede-titolo { color: var(--petrolio); border-bottom: 1px solid rgba(10, 115, 137, 0.25); padding-bottom: 0.35em; }
.schede-indice a { border-color: rgba(10, 115, 137, 0.4); color: var(--petrolio); }
.schede-indice a:hover { background: var(--petrolio); color: #fff; text-decoration: none; }
.albo .image img, .image.fit img { border-radius: 10px; }
.galleria-carteria figure.wp-block-image { border-radius: 6px; box-shadow: var(--ombra-lieve); transition: transform 0.2s ease; }
.galleria-carteria figure.wp-block-image:hover { transform: translateY(-2px); }

/* ------------------------------------------------------------------
   Home: banner, riquadri delle categorie, testo di presentazione
   ------------------------------------------------------------------ */
.banner > article:after { background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0.22)); opacity: 1; }
.banner > article p { font-size: 1.05rem; letter-spacing: 0.3em; }
.banner > article h2 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.5rem; letter-spacing: 0.04em; }

.tiles article > .image, .tiles article > a { border-radius: var(--raggio); }
.tiles article { filter: drop-shadow(0 10px 18px rgba(11, 29, 38, 0.25)); }
.tiles article > a h2 { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.04em; font-variant: normal; }

#two.wrapper p { font-size: 1.1rem; overflow-wrap: anywhere; }
#two.wrapper p a { overflow-wrap: anywhere; word-break: break-word; }

/* ------------------------------------------------------------------
   Piè di pagina
   ------------------------------------------------------------------ */
#footer { background: var(--notte); }
#footer .copyright { line-height: 1.8; }
#footer a { color: rgba(255, 255, 255, 0.7); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
#footer a:hover { color: var(--oro); }
#footer .icons a { text-decoration: none; }

/* ------------------------------------------------------------------
   Chi preferisce meno movimento
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*, *:before, *:after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------
   Cellulare e tablet: i riquadri usano tutta la larghezza disponibile
   ------------------------------------------------------------------ */
@media screen and (max-width: 980px) {
	.boxa, .boxb, .boxr { padding: 2.2rem 1.6rem !important; }
	h2 { font-size: 1.65rem; }
	body { font-size: 1.02rem; }
}
@media screen and (max-width: 480px) {
	.boxa, .boxb, .boxr { padding: 1.8rem 1.25rem !important; border-radius: var(--raggio); }
	.schede { grid-template-columns: 1fr; }
}

/* Banner sul cellulare: testi piccoli, in basso e meno larghi, velo scuro solo nella parte bassa */
@media screen and (max-width: 736px) {
	.banner > article:after { background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 32%); }
	.banner > article .innerh { max-width: 94%; }
	.banner > article p { font-size: 0.62rem; letter-spacing: 0.16em; padding-bottom: 0.45rem; }
	.banner > article h2 { font-size: 0.9rem; line-height: 1.35; letter-spacing: 0.02em; margin-bottom: 2.3em; }
	.banner .indicators { bottom: 0.7em; }
	#header > a[href="#menu"] { font-size: 0.72rem; letter-spacing: 0.08em; }
}

/* Home, testo di presentazione: stesso carattere con le grazie dei titoli, in corsivo;
   il titolo "Carterìa ai Frari" resta in Lato (bastoni), un po' più grande */
#two.wrapper.style3 p { font-family: var(--serif); font-style: italic; font-size: 1.2rem; letter-spacing: 0; line-height: 1.75; }
#two.wrapper.style3 h4 { font-family: Lato, Poppins, sans-serif; font-size: 1.3rem; margin-bottom: 1.2rem; }
