/* ==========================================================================
   HOMEPAGE (template "Home Pelotology", home-pelotology.php)
   Caricato solo su quel template (functions.php, sezione 1).
   Colori: viola del tema (#905977) e scuri delle testate.
   ========================================================================== */

.vol-home {
	--vol-accent: #905977;
	--vol-accent-dark: #6f3f5a;
	--vol-ink: #222;
	--vol-muted: #666;
	--vol-line: #e6e3e5;
	--vol-dark: #17131a;
	font-size: 16px;
	line-height: 1.6;
	color: var(--vol-ink);
}
.vol-home h2 {font-size: 1.75em; line-height: 1.25; font-weight: 600; margin: 0; color: var(--vol-ink);}
.vol-home h3 {font-weight: 600;}
.vol-home *, .vol-home *::before, .vol-home *::after {box-sizing: border-box;}
.vol-home img {max-width: 100%; height: auto; display: block;}
.vol-home ul {list-style: none; margin: 0; padding: 0;}

/* Pulsanti */
.vol-btn {display: inline-block; padding: 12px 22px; border-radius: 4px; font-weight: 600; line-height: 1.2; text-decoration: none !important; text-align: center; transition: background-color .15s, color .15s;}
.vol-btn--primary {background: var(--vol-accent); color: #fff !important;}
.vol-btn--primary:hover {background: var(--vol-accent-dark);}
.vol-btn--light {background: #fff; color: var(--vol-ink) !important;}
.vol-btn--light:hover {background: #f0e8ed;}
.vol-btn--block {display: block; width: 100%;}
.vol-btn.added::after {content: " ✓";}
.vol-home a.added_to_cart {display: block; text-align: center; margin-top: 6px; font-size: .9em;}

/* Titoli di sezione */
.vol-home-section {padding: 48px 0 8px;}
.vol-why {padding-top: 40px;}
.vol-section-head {display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 24px;}
.vol-section-head__link {font-weight: 600; color: var(--vol-accent);}

/* 1. Hero ------------------------------------------------------------------ */
.vol-hero {position: relative; overflow: hidden; background: var(--vol-dark); color: #fff; min-height: 460px; display: flex; align-items: center;}
.vol-hero__bg {position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: 70% center; opacity: .75;}
.vol-hero::after {content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,19,26,.92) 0%, rgba(23,19,26,.6) 55%, rgba(23,19,26,.15) 100%);}
.vol-hero__inner {position: relative; z-index: 1; max-width: 640px; padding: 56px 40px;}
.vol-hero__kicker {text-transform: uppercase; letter-spacing: .12em; font-size: .8em; font-weight: 700; color: #d9a9c3; margin: 0 0 10px;}
.vol-hero__title {font-size: 2.4em; line-height: 1.15; font-weight: 700; margin: 0 0 16px; color: #fff;}
.vol-hero__text {font-size: 1.1em; color: rgba(255,255,255,.88); margin: 0 0 26px;}
.vol-hero__actions {display: flex; flex-wrap: wrap; gap: 12px; margin: 0;}

/* 2. Prodotti in evidenza -------------------------------------------------- */
.vol-products {display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;}
.vol-product {display: flex; flex-direction: column; background: #fff;}
.vol-product__image {position: relative; display: block; margin-bottom: 12px;}
.vol-product__image img {width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px;}
.vol-badge {position: absolute; top: 8px; left: 8px; z-index: 1; background: #c0392b; color: #fff; font-size: .75em; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 3px;}
.vol-product__title {font-size: 1.05em; line-height: 1.3; margin: 0 0 6px;}
.vol-product__title a {color: var(--vol-ink);}
.vol-product__price {font-size: 1.15em; font-weight: 700; color: var(--vol-accent); margin: 0 0 12px; margin-top: auto;}
.vol-product__price del {color: var(--vol-muted); font-weight: 400; font-size: .85em; margin-right: 6px;}
.vol-product__price ins {text-decoration: none;}
.vol-product__soldout {display: block; text-align: center; color: var(--vol-muted); padding: 10px 0;}

/* 3. Digitale -------------------------------------------------------------- */
.vol-digital {background: linear-gradient(135deg, #2a1c2b 0%, #4a2a41 100%); color: #fff; margin: 48px 0 0;}
.vol-digital__inner {display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding-top: 48px !important; padding-bottom: 48px !important;}
.vol-digital h2 {color: #fff; margin-bottom: 12px;}
.vol-digital p {color: rgba(255,255,255,.88);}
.vol-points {margin: 20px 0 !important;}
.vol-points li {display: flex; gap: 12px; margin-bottom: 12px; line-height: 1.45;}
.vol-points .bi {font-size: 1.4em; color: #d9a9c3; margin: 0;}
.vol-points strong {color: #fff;}
.vol-digital__list {margin: 0 0 24px !important; border-top: 1px solid rgba(255,255,255,.15);}
.vol-digital__list li {display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.15);}
.vol-digital__list a {color: #fff;}
.vol-digital__list span {white-space: nowrap; font-weight: 700; color: #f3d7e6;}
.vol-digital__list .vol-digital__free span {background: #2e9e57; color: #fff; padding: 1px 8px; border-radius: 3px; letter-spacing: .05em;}

/* 4. Perché Pelotology ---------------------------------------------------- */
.vol-why__grid {display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;}
.vol-why__item {padding: 22px; background: #faf7f9; border-radius: 6px;}
.vol-why__item .bi {font-size: 1.8em; color: var(--vol-accent); margin: 0 0 10px; display: inline-block;}
.vol-why__item h3 {font-size: 1.05em; margin: 0 0 6px;}
.vol-why__item p {margin: 0; color: var(--vol-muted); font-size: .95em;}
.vol-why__links {margin: 18px 0 0; text-align: center; color: var(--vol-muted);}
.vol-why__links a {color: var(--vol-accent);}

/* 5. Notizie --------------------------------------------------------------- */
.vol-news {padding-bottom: 48px;}
.vol-news__grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;}
.vol-news__image {display: block; margin-bottom: 12px;}
.vol-news__image img {width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px;}
.vol-news__date {margin: 0 0 4px; font-size: .8em; text-transform: uppercase; letter-spacing: .05em; color: var(--vol-muted);}
.vol-news__title {font-size: 1.15em; line-height: 1.3; margin: 0 0 6px;}
.vol-news__title a {color: var(--vol-ink);}
.vol-news__excerpt {margin: 0; color: var(--vol-muted); font-size: .95em;}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1024px) {
	.vol-products, .vol-why__grid {grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 760px) {
	.vol-hero {min-height: var(--vol-mhero, 0px);} /* vedi script in home-pelotology.php */
	.vol-hero__inner {padding: 40px 20px;}
	.vol-hero__title {font-size: 1.75em;}
	.vol-hero::after {background: rgba(23,19,26,.75);}
	.vol-digital__inner {grid-template-columns: 1fr; gap: 24px;}
	.vol-news__grid {grid-template-columns: 1fr;}
	.vol-home h2 {font-size: 1.45em;}
	/* Perché Pelotology: icona a sinistra del titolo */
	.vol-why__item {display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;}
	.vol-why__item .bi {margin: 0; font-size: 1.6em;}
	.vol-why__item h3 {margin: 0;}
	.vol-why__item p {grid-column: 1 / -1; margin-top: 8px;}
}
@media (max-width: 480px) {
	.vol-products, .vol-why__grid {grid-template-columns: 1fr 1fr; gap: 12px;}
	.vol-why__grid {grid-template-columns: 1fr;}
	.vol-hero__actions .vol-btn {flex: 1 1 100%;}
}

/* Link interni della home (es. "Explore digital products" → #digital): scorrimento morbido.
   scroll-margin-top lascia spazio alla barra in alto fissa, così il titolo non finisce sotto. */
html {scroll-behavior: smooth;}
.vol-home [id] {scroll-margin-top: 70px;}
@media (prefers-reduced-motion: reduce) {html {scroll-behavior: auto;}}
