/* =========================================================
   giampaolocoral.org – refresh grafico 2026 (Divulgando)
   Si carica DOPO style.css: sovrascrive il tema del 2011
   senza toccare markup e contenuti.
   Nero · Bianco · Rosso (Three Colours – nigredo, albedo, rubedo)
   ========================================================= */

:root {
	--ink: #151413;
	--ink-2: #2b2926;
	--paper: #f6f3ee;
	--paper-2: #ece7df;
	--rule: #dcd5ca;
	--text: #3b3936;
	--muted: #77726b;
	--red: #8f1d17;
	--red-dark: #6e140f;
	--serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
	--sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
	--w: 1040px;
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
	min-width: 0;
	-webkit-font-smoothing: antialiased;
}
p { padding-bottom: 1.1em; }
a { color: var(--red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4, h5, h6,
.sidebar h1, .sidebar h2, .sidebar h3, .sidebar h4, .sidebar h5 {
	font-family: var(--serif);
	font-weight: 600;
	color: var(--ink);
	letter-spacing: .005em;
}
h1 { font-size: 40px; line-height: 1.15; }
h2 { font-size: 30px; line-height: 1.2; }
h3 { font-size: 26px; line-height: 1.25; margin: .2em 0 .45em; }
h4 { font-size: 21px; line-height: 1.3; margin-bottom: .3em; }
h5 { font-size: 19px; line-height: 1.3; }
h6 { font-size: 13px; font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover { color: var(--red); }
b, strong { color: var(--ink-2); font-weight: 600; }

/* ---------- header ---------- */
#header-nav-position { min-width: 0; }
#header-nav-bg { background: rgba(21, 20, 19, .94); top: 0; border-bottom: 3px solid var(--red); }
#header-nav { background: none; max-width: var(--w); width: auto; padding: 20px 32px 22px; bottom: 0; box-sizing: border-box; display: flow-root; }
#header-nav-base { display: none; }
#header-container { border-bottom: 0; background-color: var(--ink); }

#navigation { bottom: 22px; right: 32px; }
#navigation a, .sf-menu a { font-family: var(--sans); }
.sf-menu li { margin-right: 2px; }
.sf-menu a {
	font-size: 13px; font-weight: 600; letter-spacing: .12em;
	padding: 10px 14px; text-shadow: none;
	border-radius: 0 !important;
	transition: color .2s ease, box-shadow .2s ease;
}
.sf-menu a, .sf-menu a:visited { color: #cfcac2; }
/* voce corrente: niente box rosso, sottolineatura sottile */
.sf-menu li.current a, .sf-menu li:hover, .sf-menu li.sfHover a,
.sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active {
	background: transparent !important;
	color: #fff !important;
}
.sf-menu > li.current > a, .sf-menu > li > a:hover, .sf-menu > li.sfHover > a { box-shadow: inset 0 -2px 0 var(--red); }
/* sottomenu */
#navigation ul ul {
	background: var(--ink) !important;
	border: 1px solid #33302c; border-top: 2px solid var(--red);
	border-radius: 0 !important; padding: 8px 0 !important;
	box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
#navigation ul ul a, .sf-menu li li a {
	font-family: var(--sans) !important; font-size: 14px !important; font-weight: 400 !important;
	letter-spacing: 0; text-transform: none; padding: 8px 18px; color: #cfcac2 !important;
	box-shadow: none !important;
}
.sf-menu li li, .sf-menu li.sfHover li a { background: transparent !important; }
.sf-menu li li a:hover, .sf-menu li.sfHover li a:hover { color: #fff !important; background: rgba(143, 29, 23, .35) !important; }
.sf-menu li#facebook-media a, .sf-menu li#e-mail-media a { opacity: .7; transition: opacity .2s; box-shadow: none !important; }
.sf-menu li#facebook-media a:hover, .sf-menu li#e-mail-media a:hover { opacity: 1; }

/* titolo di pagina sulla fascia rossa */
#page-title { max-width: var(--w); width: auto; padding: 0 32px; box-sizing: border-box; height: 250px; }
#page-title h2 {
	font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1;
	color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.45); top: 160px;
}

/* ---------- contenuto ---------- */
#main-container-bg { background: none; }
#main-container, #main-container-base, #show-case-text, #footer-base, #footer {
	max-width: var(--w); width: auto; box-sizing: border-box;
	padding-left: 32px; padding-right: 32px;
}
#main-container { padding-top: 44px; padding-bottom: 72px; }
.container { width: auto; overflow: hidden; }

.bread-crumbs {
	border-bottom: 1px solid var(--rule); color: var(--muted);
	font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
	padding-bottom: 14px; margin-bottom: 34px; top: 0;
}
.bread-crumbs a { color: var(--muted); text-decoration: none; }
.bread-crumbs a:hover { color: var(--red); }

/* griglie: proporzioni invariate, larghezze fluide */
.grid2column { width: calc((100% - 48px) / 2); margin-right: 48px; }
.grid3column { width: calc((100% - 96px) / 3); margin-right: 48px; }
.grid4column { width: calc((100% - 144px) / 4); margin-right: 48px; }
.grid4columnbig { width: calc(75% - 12px); margin-right: 48px; }
.grid3columnbigcolumn { width: calc(66.66% - 16px); margin-right: 48px; }
.lastcolumn { margin-right: 0 !important; }
.grid2column .grid2column { width: 100%; margin-right: 0; }

/* immagini: via cornice grigia anni 2010 */
#main-container img { border: 0; padding: 0; background: transparent; max-width: 100%; height: auto; }
#main-container a img { transition: opacity .25s ease, transform .35s ease; }
#main-container a:hover img { opacity: .9; }
#carousel img, .jcarousel-skin-tango img { box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.divider, .divider_opere { border-bottom: 1px solid var(--rule); }
blockquote { color: var(--ink-2); font-family: var(--serif); font-size: 22px; line-height: 1.45; border-left: 2px solid var(--red); background: none; padding-left: 22px; }

iframe { max-width: 100%; }
audio { display: block; width: 100%; max-width: 560px; margin: 8px 0 18px; }

/* bottoni */
.button, input.button, a.button {
	font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: #fff; background: var(--ink); border: 0; border-radius: 0; padding: 10px 18px; text-shadow: none; box-shadow: none;
}
.button:hover, a.button:hover { background: var(--red); color: #fff; }

/* home: banner, carosello, libri */
#main-container > p a img { display: block; margin: 0 auto; }
#carousel { margin: 36px 0 8px; font-size: 14px; color: var(--muted); }

/* ---------- testo a piè di home ---------- */
#show-case-text-container { background: var(--paper-2); border-top: 1px solid var(--rule); padding: 0; }
#show-case-text { padding-top: 40px; padding-bottom: 36px; font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink-2); }
#show-case-text b { color: var(--red); font-weight: 600; }
#show-case-text .divider_opere { display: none; }

/* ---------- footer ---------- */
#footer-container { background: var(--ink); border-top: 3px solid var(--red); }
#footer-base-container { background: none; }
#footer-base { text-shadow: none; color: #9c968d; font-size: 13px; letter-spacing: .02em; padding-top: 28px; padding-bottom: 28px; }
#footer-container a { color: #fff; }
#footer-container a:hover { color: #e8b4af; }

/* moduli */
input[type=text], input[type=email], textarea, select {
	font-family: var(--sans); font-size: 15px; border: 1px solid var(--rule); background: #fff; padding: 8px 10px; border-radius: 0;
}
input[type=text]:focus, textarea:focus { outline: 2px solid rgba(143,29,23,.25); border-color: var(--red); }

/* ---------- tablet / mobile ---------- */
@media (max-width: 900px) {
	#header-nav-position { position: relative; }
	#header-nav { padding: 16px 20px 0; }
	#header-nav #logo { float: none; }
	#navigation { position: static; float: none; margin: 10px -6px 0; }
	.sf-menu { float: none; margin: 0; display: flex; flex-wrap: wrap; }
	.sf-menu li { float: none; }
	.sf-menu a { padding: 10px 10px; font-size: 12px; }
	#navigation ul ul { display: none !important; }      /* i sottomenu si aprono dalla pagina principale */
	#featured-slider-outside, #featured-slider-outside2 { overflow: hidden; }
	#page-title { height: 150px; padding: 0 20px; }
	#page-title h2 { top: 92px; font-size: 38px; }
	#main-container, #show-case-text, #footer-base, #footer { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.grid2column, .grid3column, .grid4column, .grid4columnbig, .grid3columnbigcolumn {
		float: none; width: 100% !important; margin-right: 0 !important;
	}
	h3 { font-size: 24px; }
	#featured-main-slider, .exposureTarget { height: 260px !important; }
	iframe { height: auto; aspect-ratio: 16 / 9; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* =========================================================
   Refresh – livello 2
   ========================================================= */

/* --- Home: titolo sulla fascia bianca (albedo) --- */
#header-container { position: relative; }
.hero-caption {
	position: absolute; left: 0; right: 0; top: 188px; z-index: 5;
	max-width: var(--w); margin: 0 auto; padding: 0 32px; box-sizing: border-box;
	color: var(--ink); pointer-events: none;
}
.hero-caption .eyebrow {
	display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 600;
	letter-spacing: .28em; text-transform: uppercase; color: var(--red);
	padding-top: 12px; border-top: 2px solid var(--red); margin-bottom: 10px;
}
.hero-caption h2 {
	font-family: var(--serif); font-weight: 500; color: var(--ink);
	font-size: clamp(40px, 6vw, 74px); line-height: 1; letter-spacing: -.01em; margin: 0;
}
.hero-caption p {
	font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.8vw, 22px);
	color: var(--ink-2); padding: 8px 0 0;
}
#featured-main-slider, .exposureTarget { height: 560px; }

/* --- Fascia titolo pagine interne --- */
#featured-slider-outside { position: relative; }
#featured-slider-outside::after {
	content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
	background: linear-gradient(90deg, rgba(21,20,19,.55) 0%, rgba(21,20,19,.15) 55%, rgba(21,20,19,0) 100%);
}
#page-title h2::before {
	content: ""; display: block; width: 44px; height: 2px; background: #fff; margin-bottom: 16px; opacity: .85;
}
#page-title h2 { top: 140px; }

/* --- Tipografia dei contenuti --- */
#main-container h3 { position: relative; padding-top: 18px; }
#main-container h3::before {
	content: ""; position: absolute; top: 0; left: 0; width: 32px; height: 2px; background: var(--red);
}
#main-container .grid2column > p:first-of-type, #main-container h3 + br + p { color: var(--ink-2); }
#main-container p a, #main-container li a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(143,29,23,.35); }
#main-container p a:hover, #main-container li a:hover { text-decoration-color: var(--red); }

/* --- Copertine e foto: leggero sollevamento al passaggio --- */
#main-container a img, #carousel img { transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s ease, filter .35s ease; }
#main-container a:hover img { transform: translateY(-4px); opacity: 1; }
#carousel img { filter: grayscale(.35) contrast(1.02); }
#carousel a:hover img { filter: none; }
.lastcolumn .container { padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 26px; }
.lastcolumn .container:last-child { border-bottom: 0; }
.lastcolumn .container p { font-size: 14px; line-height: 1.55; color: var(--muted); padding-top: 4px; }

/* --- Comparsa morbida durante lo scorrimento (js/refresh.js) --- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* --- Torna su --- */
.to-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 44px; height: 44px;
	display: grid; place-items: center; background: var(--ink); color: #fff; text-decoration: none !important;
	font-size: 18px; line-height: 1; opacity: 0; transform: translateY(8px); pointer-events: none;
	transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.to-top.show { opacity: .9; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red); color: #fff; }

@media (max-width: 900px) {
	.hero-caption { top: auto; bottom: 18px; padding: 16px 20px; background: rgba(246,243,238,.92); }
	#page-title h2 { top: 78px; }
	#featured-main-slider, .exposureTarget { height: 380px !important; }
}
@media (max-width: 720px) {
	#featured-main-slider, .exposureTarget { height: 300px !important; }
	.hero-caption .eyebrow { font-size: 10px; letter-spacing: .2em; }
}
@media (prefers-reduced-motion: reduce) {
	.js-reveal .reveal { opacity: 1 !important; transform: none !important; }
}
