/*
Theme Name:  ARAL Child
Theme URI:   https://www.aralonline.org/
Description: Tema figlio di GeneratePress per ARAL. Header, barra superiore e footer scritti a mano (template-parts/), nessun builder.
Author:      ARAL
Template:    generatepress
Version:     1.0.0
Text Domain: aral-child
*/

/* ---------- Variabili ---------- */
:root {
	--aral-oro: #dd9933;
	--aral-oro-scuro: #b8862b;
	--aral-oro-titoli: #d39730;
	--aral-miele-chiaro: #f7eee6;
	--aral-testo: #333a3f;
	--aral-menu: #222222;
	--aral-bianco: #ffffff;
	--aral-max: 1200px;
	--aral-font: "Roboto", Helvetica, Arial, sans-serif;
	--aral-font-titoli: "Roboto Condensed", Helvetica, Arial, sans-serif;
}

body {
	font-family: var(--aral-font);
	color: var(--aral-testo);
	font-size: 16px;
	line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--aral-font-titoli); }
a { color: #c9841c; }
a:hover, a:focus { color: var(--aral-oro); }

.aral-wrap {
	max-width: var(--aral-max);
	margin: 0 auto;
	padding: 0 20px;
}
.screen-reader-text:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

/* ---------- Barra superiore ---------- */
.aral-topbar {
	background: var(--aral-oro-scuro);
	color: var(--aral-bianco);
	font-size: 14px;
}
.aral-topbar .aral-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
}
.aral-topbar a { color: var(--aral-bianco); text-decoration: none; }
.aral-topbar a:hover { text-decoration: underline; color: var(--aral-bianco); }
.aral-topbar__info { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.aral-topbar__info li { display: flex; align-items: center; gap: 6px; }
.aral-topbar__social { display: flex; align-items: center; gap: 14px; }
.aral-ico { width: 15px; height: 15px; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.aral-header {
	background: var(--aral-bianco);
	border-bottom: 1px solid #eee3d6;
	position: relative;
	z-index: 50;
}
.aral-header .aral-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 96px;
}
.aral-logo img { display: block; height: 64px; width: auto; }

.aral-nav ul { list-style: none; margin: 0; padding: 0; }
.aral-nav > ul { display: flex; align-items: center; gap: 4px; }
.aral-nav li { position: relative; }
.aral-nav a {
	display: block;
	padding: 10px 14px;
	font-family: var(--aral-font-titoli);
	font-weight: 700;
	font-size: 17px;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--aral-menu);
	text-decoration: none;
}
.aral-nav a:hover,
.aral-nav .current-menu-item > a,
.aral-nav .current-menu-ancestor > a { color: var(--aral-oro); }

/* sottomenu */
.aral-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	background: var(--aral-bianco);
	box-shadow: 0 10px 30px rgba(0,0,0,.12);
	border-top: 3px solid var(--aral-oro);
	padding: 6px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.aral-nav li:hover > .sub-menu,
.aral-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.aral-nav .sub-menu a { font-size: 15px; text-transform: none; font-weight: 600; padding: 9px 18px; }
.aral-nav .menu-item-has-children > a::after { content: " ▾"; font-size: .8em; }

.aral-header__tools { display: flex; align-items: center; gap: 6px; }
.aral-iconbtn {
	display: inline-flex; align-items: center; justify-content: center;
	position: relative;
	width: 42px; height: 42px;
	border-radius: 50%;
	color: var(--aral-menu);
	background: none; border: 0; cursor: pointer; padding: 0;
}
.aral-iconbtn:hover { background: var(--aral-miele-chiaro); color: var(--aral-oro-scuro); }
.aral-iconbtn .aral-ico { width: 20px; height: 20px; }
.aral-cart-count {
	position: absolute; top: 3px; right: 1px;
	min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 9px;
	background: var(--aral-oro); color: var(--aral-bianco);
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.aral-menu-toggle { display: none; }

/* ricerca a comparsa */
.aral-search { display: none; background: var(--aral-miele-chiaro); }
.aral-search.is-open { display: block; }
.aral-search form { display: flex; gap: 8px; padding: 14px 0; }
.aral-search input[type="search"] { flex: 1; padding: 10px 14px; border: 1px solid #e3d3bd; border-radius: 4px; }
.aral-search button { background: var(--aral-oro-scuro); color: #fff; border: 0; border-radius: 4px; padding: 10px 18px; cursor: pointer; }

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
	.aral-topbar__info li.aral-hide-mobile { display: none; }
	.aral-header .aral-wrap { min-height: 76px; }
	.aral-logo img { height: 52px; }
	.aral-menu-toggle { display: inline-flex; }
	.aral-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--aral-bianco);
		box-shadow: 0 12px 24px rgba(0,0,0,.12);
		max-height: calc(100vh - 120px);
		overflow-y: auto;
	}
	.aral-nav.is-open { display: block; }
	.aral-nav > ul { display: block; padding: 8px 0; }
	.aral-nav a { padding: 12px 20px; border-bottom: 1px solid #f2ebe2; }
	.aral-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border-top: 0; padding: 0; min-width: 0;
		background: #fbf7f2;
	}
	.aral-nav .sub-menu a { padding-left: 36px; }
	.aral-nav .menu-item-has-children > a::after { content: ""; }
}

/* ---------- Footer ---------- */
.aral-footer {
	background: var(--aral-miele-chiaro);
	color: var(--aral-testo);
	font-size: 15px;
	margin-top: 40px;
}
.aral-footer__cols {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 40px;
	padding-top: 50px;
	padding-bottom: 36px;
}
.aral-footer h2 {
	font-family: var(--aral-font-titoli);
	font-size: 20px;
	font-weight: 700;
	color: var(--aral-oro-titoli);
	margin: 0 0 16px;
}
.aral-footer ul { list-style: none; margin: 0; padding: 0; }
.aral-footer li { margin-bottom: 10px; }
.aral-footer dl { margin: 0; }
.aral-footer dt { font-weight: 700; margin-top: 10px; }
.aral-footer dt:first-child { margin-top: 0; }
.aral-footer dd { margin: 0; }
.aral-footer a { color: var(--aral-testo); }
.aral-footer a:hover { color: #c9841c; }
.aral-footer__fiscale { margin-top: 14px; font-size: 14px; }
.aral-footer__social { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; text-decoration: none; }
.aral-footer__social .aral-ico { width: 18px; height: 18px; }
.aral-footer__bottom {
	border-top: 1px solid #e8d9c6;
	padding: 16px 0;
	font-size: 13px;
	text-align: center;
}
.aral-footer__bottom p { margin: 0; }
.aral-footer__legal { margin-top: 6px !important; }

@media (max-width: 900px) {
	.aral-footer__cols { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 24px; }
}

/* ---------- Ritocchi a GeneratePress ---------- */
body { background-color: var(--aral-bianco); }
.site-footer { background: transparent; }
.site-content { padding-top: 30px; }
.separate-containers .inside-article,
.separate-containers .widget { padding: 30px; }
.sidebar .widget-title { font-family: var(--aral-font-titoli); color: var(--aral-oro-titoli); font-size: 19px; }
.home .entry-header { display: none; }
.page .page-header-image { display: none; }
