/*
 * COMPONENTI DEL TEMA ORIGINALE (Rosa): copertine con parallasse, titoli doppi, fiore, griglia,
 * pulsanti, bordi a onda, freccia giu', pallini di navigazione a destra.
 * Misure prese dal sito vivo (1920 e 390 px). Mobile sotto 900px come l'originale.
 */

/* ---------- Copertina ---------- */
.alb-hero { position: relative; z-index: 10; min-height: 66.666666vh; overflow: hidden; background: var(--alb-color-dark-2); color: var(--alb-color-on-dark); }
.alb-hero--full { min-height: 100vh; }
.alb-hero--half { min-height: 50vh; }
.alb-hero__bg { position: absolute; inset: 0; overflow: hidden; }
.alb-hero__img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; max-width: none; object-fit: cover; will-change: transform; }
.alb-hero__wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 5vw; text-align: center; }
.alb-hero__headline { display: inline-block; position: relative; }
.alb-hero .alb-headline__title { display: inline-block; color: var(--alb-color-on-dark); }
.alb-hero__desc { font-family: var(--alb-font-heading); }
.alb-hero__desc p { margin: 0 0 30px; }
.alb-hero__logo img { display: inline-block; vertical-align: baseline; width: auto; max-width: 100%; height: auto; }
.alb-hero__desc a { color: inherit; text-decoration: none; }

/* Entrata dei titoli in copertina (come Rosa/GSAP): spaziatura che si stringe + dissolvenza */
.js .alb-hero [data-alb-headline] > * { opacity: 0; }
.js .alb-hero [data-alb-headline].is-in > * { opacity: 1; }

/* ---------- Titolo doppio ---------- */
.alb-headline { text-align: center; }
.alb-headline__title { position: relative; z-index: 1; margin: 0 -.1em 0 0; font-family: var(--alb-font-heading); font-weight: var(--alb-weight-heading); font-size: var(--alb-fs-h1); line-height: var(--alb-lh-heading); letter-spacing: .2em; text-transform: uppercase; color: var(--alb-color-heading); overflow-wrap: break-word; hyphens: auto; }
.alb-headline__sub { position: relative; margin: 0 -72px -38px; padding: 0 72px; font-family: var(--alb-font-script); font-weight: 400; font-size: var(--alb-fs-script); line-height: 1.135; letter-spacing: 0; text-transform: none; color: var(--alb-color-primary); }
.alb-headline__first { position: relative; top: 9px; margin: 0 -72px; padding-left: 72px; font-size: 1.22em; letter-spacing: 72px; }
@media (max-width: 899px) {
	.alb-headline__sub { margin: 0 -36px -24px; padding: 0 36px; }
}

/* ---------- Fiore separatore ---------- */
.alb-flower { display: block; margin: 24px 0; font-family: serif; font-size: 17px; line-height: 1; text-align: center; color: var(--alb-color-text); opacity: .8; }
.alb-flower--gold { color: var(--alb-color-primary); }

/* ---------- Contenuto tra le copertine ---------- */
.alb-article { position: relative; z-index: 20; padding: var(--alb-space-xl) 0; background: var(--alb-color-bg); }
.alb-center { text-align: center; }
.alb-grid { display: flex; flex-wrap: wrap; margin-left: calc(-1 * var(--alb-gap)); }
.alb-col { width: 100%; padding-left: var(--alb-gap); }
.alb-col > :last-child { margin-bottom: 0; }
.alb-island { padding: 0 0 24px var(--alb-gap); }
@media (min-width: 900px) {
	.alb-col--6 { width: 50%; }
	.alb-col--3 { width: 25%; }
	.alb-island { padding: 30px 30px 30px 78px; }
}
.alb-photo { display: block; margin-inline: auto; }
.alb-photo img { display: block; width: 100%; height: auto; }

/* ---------- Pulsanti ---------- */
.alb-btn-text { display: inline-block; padding: 3px 0; border-bottom: 2px solid var(--alb-color-primary); font-family: var(--alb-font-body); font-size: var(--alb-fs-btn-text); line-height: 15px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--alb-color-primary); transition: all .15s; }
.alb-btn-text:hover { color: var(--alb-color-primary-dark); border-color: var(--alb-color-primary-dark); }
.alb-link-under { border-bottom: 2px solid var(--alb-color-primary); color: var(--alb-color-primary); text-decoration: none; }
.alb-link-under:hover { color: var(--alb-color-primary); }
.alb-book { margin: 0 0 30px; text-align: center; }
.alb-btn-book { padding: 8px 16px; border: 1px solid var(--alb-color-accent); background-color: var(--alb-color-accent); font-size: var(--alb-fs-btn-book); line-height: 1.7; color: #fff; text-decoration: none; }
.alb-hero .alb-btn-book { color: #fff; }
.alb-btn-book:hover, .alb-hero .alb-btn-book:hover { color: var(--alb-color-accent); background-color: #fff; }
.alb-btn-book--alt { font-family: var(--alb-font-body); }
.alb-btn-book--alt:hover { background-color: transparent; }
.alb-article .alb-book { margin-bottom: 0; }

/* ---------- Bordi a onda (sopra e sotto i blocchi bianchi) ---------- */
.alb-waves::before, .alb-waves::after { content: ""; position: absolute; left: 0; width: 100%; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 28' width='19' height='14'%3E%3Cpath fill='%23fff' d='M0 0v28c9 0 13-12 19-12s10 12 19 12V0c-9 0-13 12-19 12S9 0 0 0z'/%3E%3C/svg%3E") center top / 19px 14px repeat-x; pointer-events: none; }
.alb-waves::before { top: -7px; z-index: 20; }
.alb-waves::after { bottom: -7px; z-index: 21; }

/* ---------- Freccia giu' (sulla prima copertina) ---------- */
.alb-down-arrow { position: absolute; left: 50%; bottom: 105%; z-index: 100; width: 80px; height: 80px; margin-left: -40px; opacity: .7; cursor: pointer; }
.alb-down-arrow span { position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); }

/* ---------- Pallini di navigazione a destra (creati da rosa.js) ---------- */
.alb-bully { position: fixed; top: 50%; right: 48px; z-index: 9000; font-size: 12px; color: #000; transform: translateY(-50%); }
.alb-bully.is-light { color: #fff; }
.alb-bully__dot { display: block; position: relative; padding: .5em; border: 0; background: none; color: inherit; cursor: pointer; }
.alb-bully__dot::after { content: ""; display: block; width: 1em; height: 1em; border: 2px solid currentColor; border-radius: 50%; box-sizing: border-box; }
.alb-bully__dot.is-active::before { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: currentColor; transform: translate(-50%, -50%); }
.alb-bully__dot.is-active::after { border-color: transparent; }
@media (max-width: 899px) {
	.alb-bully { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.js .alb-hero [data-alb-headline] > * { opacity: 1; }
}

/* Mobile (fase 7): aree di tocco >= 40px per link testuali e link del footer */
@media (max-width: 899px) {
	.alb-btn-text, .alb-link-under { display: inline-flex; align-items: center; min-height: 40px; padding-top: 0; padding-bottom: 0; }
	.alb-footer__copy a { display: inline-block; padding: 11px 4px; }
}
