/*
Theme Name:   OraParto Child
Theme URI:    https://oraparto.it/
Description:  Child theme di GeneratePress per oraparto.it. Template custom per hub destinazione, articoli e catalogo guide.
Author:       Simone Serafini
Template:     generatepress
Version:      1.0.0
Text Domain:  oraparto
*/

/* =====================================================================
   Variabili
   ================================================================== */
:root {
	--op-ink: #1b1b1f;
	--op-muted: #5d6470;
	--op-line: #e5e7eb;
	--op-bg-soft: #f7f7f5;
	--op-accent: #b23a2e;      /* rosso terra, richiama il torii */
	--op-accent-dark: #8d2c22;
	--op-radius: 10px;
}

/* =====================================================================
   Breadcrumb
   ================================================================== */
.op-breadcrumb {
	font-size: 0.85rem;
	color: var(--op-muted);
	margin-bottom: 1.2rem;
}
.op-breadcrumb a { color: var(--op-muted); text-decoration: none; }
.op-breadcrumb a:hover { text-decoration: underline; }
.op-bc-current { color: var(--op-ink); }

/* =====================================================================
   Hub destinazione
   ================================================================== */
.op-hub-header { margin-bottom: 2rem; }
.op-hub-header h1 { margin-bottom: .4rem; }
.op-hub-desc { color: var(--op-muted); max-width: 68ch; }

.op-section-title {
	font-size: 1.25rem;
	margin: 2.5rem 0 1rem;
	padding-bottom: .4rem;
	border-bottom: 1px solid var(--op-line);
}

.op-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 1.2rem;
}

.op-card {
	border: 1px solid var(--op-line);
	border-radius: var(--op-radius);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.op-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.op-card-body { padding: .9rem 1rem 1.1rem; }
.op-card h3 { font-size: 1.02rem; margin: 0 0 .35rem; line-height: 1.3; }
.op-card h3 a { text-decoration: none; color: var(--op-ink); }
.op-card p { font-size: .88rem; color: var(--op-muted); margin: 0; }
.op-card-meta { font-size: .78rem; color: var(--op-muted); }

/* =====================================================================
   Articolo
   ================================================================== */
.op-article-meta {
	font-size: .85rem;
	color: var(--op-muted);
	margin-bottom: 1.5rem;
}

.op-toc {
	background: var(--op-bg-soft);
	border-left: 3px solid var(--op-accent);
	padding: 1rem 1.2rem;
	margin: 0 0 2rem;
	border-radius: 0 var(--op-radius) var(--op-radius) 0;
}
.op-toc strong { display: block; margin-bottom: .5rem; font-size: .9rem; }
.op-toc ol { margin: 0 0 0 1.1rem; padding: 0; font-size: .92rem; }
.op-toc a { text-decoration: none; }

.op-disclosure {
	font-size: .82rem;
	color: var(--op-muted);
	background: var(--op-bg-soft);
	padding: .75rem 1rem;
	border-radius: var(--op-radius);
	margin: 1.5rem 0;
}

/* =====================================================================
   Bottoni e box affiliazione
   ================================================================== */
.op-btn,
.op-aff-link.op-btn {
	display: inline-block;
	background: var(--op-accent);
	color: #fff !important;
	padding: .7rem 1.3rem;
	border-radius: var(--op-radius);
	text-decoration: none;
	font-weight: 600;
	line-height: 1.2;
}
.op-btn:hover { background: var(--op-accent-dark); }

.op-box-affiliato {
	border: 1px solid var(--op-line);
	border-radius: var(--op-radius);
	padding: 1.2rem 1.3rem;
	margin: 2rem 0;
	background: #fff;
}
.op-box-affiliato h3 { margin-top: 0; font-size: 1.05rem; }

/* =====================================================================
   Guide e audioguide
   ================================================================== */
.op-guide-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.4rem;
	margin: 2rem 0;
}
.op-guida {
	border: 1px solid var(--op-line);
	border-radius: var(--op-radius);
	padding: 1rem;
	background: #fff;
	text-align: center;
}
.op-guida img { border-radius: 6px; margin-bottom: .7rem; }
.op-guida h3 { font-size: 1rem; margin: 0 0 .4rem; }
.op-guida h3 a, .op-guida a { text-decoration: none; }
.op-guida-prezzo { font-weight: 700; margin: 0 0 .8rem; }

/* Checkout: la casella del recesso deve saltare all'occhio */
.op-consenso {
	background: var(--op-bg-soft);
	padding: .9rem 1rem;
	border-radius: var(--op-radius);
	margin-bottom: 1rem;
	font-size: .9rem;
}

/* =====================================================================
   Correlati
   ================================================================== */
.op-related ul { list-style: none; margin: 0; padding: 0; }
.op-related li { padding: .45rem 0; border-bottom: 1px solid var(--op-line); }
.op-related li:last-child { border-bottom: 0; }
.op-related a { text-decoration: none; }

/* Footer: pagine di servizio */
.op-footer-menu { padding: 1.2rem 0 .4rem; }
.op-footer-links { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; font-size: .85rem; }
.op-footer-links a { color: inherit; text-decoration: none; opacity: .8; }
.op-footer-links a:hover { opacity: 1; text-decoration: underline; }
