/*
Theme Name: Albosaggia Giovane
Theme URI: https://albosaggiagiovane.it/
Author: Albosaggia Giovane ODV
Author URI: https://albosaggiagiovane.it/
Description: Tema a blocchi (Full Site Editing) pulito e personalizzabile per l'Associazione Ricreativa Culturale Albosaggia Giovane ODV. Markup dei blocchi volutamente semplice e stabile tra le versioni di WordPress (niente blocchi che cambiano forma), per evitare gli errori di "tenta il recupero". Hero a tutta larghezza tramite template dedicati.
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: albosaggia-giovane
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* Colori e tipografia principali sono in theme.json (Aspetto > Editor > Stili).
   Qui ci sono le regole che danno forma a hero, centrature, footer e segnaposti. */

/* ---- Centratura tramite classi (stabile in ogni versione di WordPress) ---- */
.txt-center { text-align: center; }

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	font-size: 0.82rem;
	text-align: center;
	color: var(--wp--preset--color--accent);
	margin-bottom: 0.4rem;
}

/* ---- HERO a tutta larghezza (immagine + velo scuro + testo bianco centrato) ---- */
.page-hero {
	position: relative;
	min-height: 460px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4rem 1.5rem;
	background-size: cover;
	background-position: center;
	color: #ffffff;
	overflow: hidden;
}
.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(27, 42, 37, 0.6);
	z-index: 0;
}
.page-hero > * {
	position: relative;
	z-index: 1;
	max-width: 820px;
	width: 100%;
}
.page-hero :where(h1, h2, p) { color: #ffffff; }
.page-hero .eyebrow { color: var(--wp--preset--color--accent); }

.hero-home {
	background-image: url('https://albosaggiagiovane.it/wp-content/uploads/2025/06/fotooooo.jpg');
	min-height: 560px;
}
.hero-chisiamo {
	background-image: url('https://albosaggiagiovane.it/wp-content/uploads/2025/05/IMG-20241211-WA0012.jpg');
}
.hero-eventi {
	background-image: url('https://albosaggiagiovane.it/wp-content/uploads/2025/06/fotooooo.jpg');
}

/* ---- LOGO tondo (cerchio) e dimensione ---- */
.site-header .site-logo-img img {
	width: 66px;
	height: 66px;
	object-fit: cover;
	border-radius: 50%;
}
.site-footer .site-logo-img img {
	width: 78px;
	height: 78px;
	object-fit: cover;
	border-radius: 50%;
}

/* ---- FOOTER scuro: testo e link bianchi, link in grassetto, icone bianche ---- */
.site-footer,
.site-footer a { color: #ffffff; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .wp-block-social-links .wp-block-social-link svg { fill: #ffffff; }

/* ---- Segnaposto modulo (riquadro tratteggiato) ---- */
.form-placeholder {
	border: 2px dashed var(--wp--preset--color--primary);
	border-radius: 16px;
	background: #ffffff;
	padding: 2rem;
}

/* ---- Mappe responsive ---- */
.map-embed {
	position: relative;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	border-radius: 16px;
	overflow: hidden;
}
.map-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---- Immagini dei contenuti con angoli morbidi (non social/logo) ---- */
.wp-block-image img { border-radius: 12px; }
.site-logo-img img,
.wp-block-social-links img { border-radius: 0; }

/* ---- Micro-interazione sui pulsanti ---- */
.wp-block-button__link { transition: background-color 0.15s ease, transform 0.15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }

html { scroll-behavior: smooth; }

/* Menu mobile (overlay): voci di navigazione centrate */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: center;
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: center;
	text-align: center;
}
