/*
	Theme Name: Mauro Garcia Fotografia
	Theme URI: https://example.com
	Author: Custom
	Description: Tema per Mauro Garcia Fotografo. Antonio Carbone developer.
	Version: 1.0.0
	Requires at least: 6.0
	Requires PHP: 7.4
	Text Domain: mauro-garcia
*/

/* ==========================================================================
	0. FONT (Manrope, self-hosted)
	Font variabile: un solo file copre tutti i pesi da 200 a 800.
	Auto-ospitato nel tema (assets/fonts) invece che da Google Fonts CDN,
	per performance migliori e nessuna richiesta esterna (privacy/GDPR).
========================================================================== */
@font-face {
	font-family: 'Manrope';
	src: url('assets/fonts/Manrope-Variable.woff2') format('woff2-variations'),
	url('assets/fonts/Manrope-Variable.woff2') format('woff2');
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Cormorant Garamond';
	src: url('assets/fonts/CormorantGaramond-Variable.woff2') format('woff2-variations'),
	url('assets/fonts/CormorantGaramond-Variable.woff2') format('woff2');
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Cormorant Garamond';
	src: url('assets/fonts/CormorantGaramond-Italic-Variable.woff2') format('woff2-variations'),
	url('assets/fonts/CormorantGaramond-Italic-Variable.woff2') format('woff2');
	font-weight: 300 700;
	font-style: italic;
	font-display: swap;
}

/* ==========================================================================
	1. VARIABILI GLOBALI (:root)
	Modifica qui i colori/font per aggiornare l'intero sito.
========================================================================== */
:root {
	/* Colori */
	--color-bg:  #f9f9f9;        /* sfondo generale, crema */
	--color-bg-alt: #efe9dc;        /* sezioni alternate leggermente più scure */
	--color-surface: #14140f;       /* header, card, superfici chiare */
	--color-accent: #7d8267;        /* verde oliva (bottoni, sezione contatti) */
	--color-accent-dark: #666b52;   /* hover/stati attivi dell'accento */
	--color-text: #2b2b26;          /* testo principale */
	--color-text-muted: #3c3c3c;    /* testo secondario */
	--color-text-on-accent: #f6f2ea;/* testo su sfondo verde oliva */
	--color-border: #ddd6c4;        /* linee divisorie, bordi input */
	--color-overlay: rgba(20, 20, 15, 0.45); /* overlay scuro su foto hero */
	
	/* Tipografia */
	--font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	
	--fs-xs: 0.8rem;
	--fs-sm: 0.9rem;
	--fs-base: 1rem;
	--fs-lg: clamp(1.15rem, 1rem + 0.6vw, 1.8rem);
	--fs-xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
	--fs-hero: clamp(2.2rem, 1.6rem + 3vw, 4.5rem);
	
	--lh-tight: 1.2;
	--lh-normal: 1.6;
	
	/* Spaziatura (scala 8px) */
	--space-1: 0.5rem;
	--space-2: 1rem;
	--space-3: 1.5rem;
	--space-4: 2rem;
	--space-5: 3rem;
	--space-6: 4.5rem;
	--space-7: 6rem;
	
	/* Layout */
	--container-width: 1160px;
	--container-padding: var(--space-3);
	--radius-sm: 2px;
	--header-height: 84px;
	--header-height-scrolled: 60px;
	
	/* Transizioni */
	--transition-fast: 180ms ease;
	--transition-smooth: 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
	2. RESET DI BASE
========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-normal);
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 400;
	line-height: var(--lh-tight);
	margin: 0 0 var(--space-2);
	letter-spacing: 0.01em;
}

p { margin: 0 0 var(--space-2); color: var(--color-text-muted); }

a { color: #fff; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

button, input, textarea { font-family: inherit; font-size: inherit; }

/* Skip link per accessibilità da tastiera */
.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--color-text);
	color: #fff;
	padding: var(--space-1) var(--space-2);
	z-index: 1000;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* Focus visibile ovunque, per accessibilità */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	border:1px solid #000;
	transition:.5s;
}

/* ==========================================================================
	3. LAYOUT / UTILITY
========================================================================== */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.section_block { padding-block: var(--space-6); }
#main-content .section { padding-block: 0; padding-bottom: var(--space-6); }
.section--alt { background: var(--color-bg-alt); }
.section--accent { background: var(--color-accent); color: var(--color-text-on-accent); }
.section--accent p { color: rgba(246, 242, 234, 0.85); }

.section-title {
    text-align: center;
    margin-bottom: var(--space-4);
    font-weight: 600;
    font-size: var(--fs-xl);
}
.section-title::after {
	content: "";
	display: block;
	width: 42px;
	height: 2px;
	background: currentColor;
	opacity: 0.5;
	margin: var(--space-2) auto 0;
}

.underline-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	font-size: var(--fs-sm);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding-bottom: 3px;
}

.underline-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 20%;
	height: 1px;
	background: currentColor;
	transition: width var(--transition-fast);
}

.underline-link:hover::after {
	width: 100%;
}

.btn {
	display: inline-block;
	background: var(--color-accent-dark);
	color: var(--color-text-on-accent);
	border: none;
	padding: var(--space-2) var(--space-4);
	font-size: var(--fs-sm);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: var(--radius-sm);
	transition: background var(--transition-fast), transform var(--transition-fast);
}
.btn:hover { background: var(--color-accent-dark); }
.btn:active { transform: translateY(1px); }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ==========================================================================
	4. HEADER (sticky + effetto smooth allo scroll)
========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-surface);
	
	transition: padding var(--transition-smooth), box-shadow var(--transition-smooth),
	border-color var(--transition-smooth);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-height);
	transition: min-height var(--transition-smooth);
}

/* Classe aggiunta via JS quando si scrolla oltre una soglia */
.site-header.is-scrolled .container {
	min-height: var(--header-height-scrolled);
}
.site-header.is-scrolled {
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
	border-color: var(--color-border);
}

/* In homepage: header trasparente sopra la hero, nero una volta scrollato */
body.has-hero .site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: transparent;
	border-color: transparent;
}

body.has-hero .site-header.is-scrolled {
	background: #14140f;
	border-color: transparent;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

body.has-hero .site-branding a,
body.has-hero .primary-nav a {
	color: #fff;
}

body.has-hero .primary-nav a::after {
	background: #fff;
}

body.has-hero .menu-toggle .bar {
	background: #fff;
}

.site-branding {margin:0;}

.site-branding a {
	font-family: var(--font-heading);
	font-size: var(--fs-lg);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-branding img {
	display: block;
	height: 35px;  
	width: auto;
	transition: height var(--transition-smooth);
}

/* Il logo si rimpicciolisce insieme all'header quando si scrolla */
.site-header.is-scrolled .site-branding img {
	height: 34px;
}

.primary-nav ul {
	display: flex;
	gap: var(--space-4);
}

.primary-nav a {
	font-size: var(--fs-sm);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	position: relative;
	padding-bottom: 4px;
	font-weight: 400;
}

.primary-nav a::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 0%;
	height: 1px;
	background: #fff;
	transition: width var(--transition-fast);
}
.primary-nav a:hover::after,
.primary-nav li.current-menu-item > a::after,
.primary-nav li.current_page_item > a::after,
.primary-nav li.current-menu-ancestor > a::after { width: 100%; }

/* Toggle menu mobile */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: var(--space-1);
	z-index: 110;
}
.menu-toggle .bar {
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
	margin: 5px 0;
	transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
	5. HERO
========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background-size: contain;
    background-position: center;
    color: #fff;
    overflow: hidden;
    background-repeat: no-repeat;
    background-color: #000;
}

  

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--color-overlay) 0%, rgba(20,20,15,0.15) 55%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-block: var(--space-6);
  max-width: 640px;
}

/* Una volta che il JS ha calcolato i confini reali della foto,
   assume il controllo completo del posizionamento. */
.hero-content.is-positioned {
  position: absolute;
  padding-block: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
	font-size: var(--fs-hero);
	color: #000;
	font-weight:600;
	
}

.hero-content p {
	color: rgba(255,255,255,0.9);
	font-size: var(--fs-lg);
	font-family: var(--font-heading);
	font-style: italic;
	font-weight: 500;
	letter-spacing: 1px;
	line-height:1.2;
}

.hero-content .underline-link { color: #fff; }

.hero-scroll-cue {
	position: absolute;
	left: 50%;
	bottom: var(--space-4);
	transform: translateX(-50%);
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.3rem;
	z-index: 2;
	animation: mg-bounce 2.2s ease-in-out infinite;
	transition: background var(--transition-fast);
}
.hero-scroll-cue:hover { background: rgba(255, 255, 255, 0.3); }

@keyframes mg-bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
	40% { transform: translateX(-50%) translateY(-10px); }
	60% { transform: translateX(-50%) translateY(-5px); }
}


/* ==========================================================================
	6. SEZIONE "CHI SONO" (preview in home)
========================================================================== */

#chi-sono-home {
    background-color: #000;
}

.about-preview {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-5);
	align-items: center;
	
}

.about-preview__image img {
    width: 85%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.about-preview__text {text-align:left;padding: 0 30px;}

.about-preview__text h2 { font-size: 60px; font-weight:600;margin-bottom: 40px;font-style:italic;color:#fff;}

.about-preview__text p:first-of-type { 
	margin-bottom: 40px;
    font-size: 25px;
    color: #c3c3c3;
}

/* ==========================================================================
	7. GRIGLIA PROGETTI
========================================================================== */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-4);
}

.project-card { text-align: center; }

.project-card__thumb {
	overflow: hidden;
	margin-bottom: var(--space-2);
	border-radius:5px; 
}

.project-card__thumb img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform var(--transition-smooth);
	border-radius: 5px;
}

.project-card a  {     color: var(--color-text-muted);}

.project-card a:hover .project-card__thumb img { transform: scale(1.04);border-radius:5px; }

.project-card h3 {
	font-size: 22px;
    font-weight: 900;
}

.project-card h3::after {
	content: "";
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
	opacity: 0.5;
	margin: var(--space-1) auto 0;
}

.projects-more { text-align: center; margin-top: var(--space-5); }

/* Archivio / singolo progetto */
.project-hero {
	margin-bottom: var(--space-4);
}
.project-hero img { width: 100%; max-height: 70vh; object-fit: cover; }

.project-gallery {
	display: grid;
	gap: var(--space-2);
	margin-top: 20px;
}
.project-gallery--cols-2 { grid-template-columns: repeat(2, 1fr); }
.project-gallery--cols-3 { grid-template-columns: repeat(3, 1fr); }
.project-gallery--cols-4 { grid-template-columns: repeat(4, 1fr); }
.project-gallery--cols-5 { grid-template-columns: repeat(5, 1fr); }

.project-gallery__item {
	display: block;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	overflow: hidden;
	border-radius: 5px;
}
.project-gallery__item img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform var(--transition-smooth);
	border-radius: 5px;
}
.project-gallery__item:hover img { transform: scale(1.05); }

@media (max-width: 900px) {
	.project-gallery--cols-3,
	.project-gallery--cols-4,
	.project-gallery--cols-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
	.project-gallery--cols-2,
	.project-gallery--cols-3,
	.project-gallery--cols-4,
	.project-gallery--cols-5 { grid-template-columns: 1fr 1fr; gap: var(--space-1); }
}

/* --------------------------------------------------------------------------
	Lightbox: overlay a schermo intero, immagine grande + striscia miniature
-------------------------------------------------------------------------- */
.mg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(15, 14, 10, 0.94);
	padding: var(--space-2);
}
.mg-lightbox.is-open { display: flex; }

.mg-lightbox__close {
	position: absolute;
	top: var(--space-2);
	right: var(--space-2);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	transition: background var(--transition-fast);
	z-index: 2;
}
.mg-lightbox__close:hover { background: rgba(255, 255, 255, 0.25); }

.mg-lightbox__main {
	display: flex;
	align-items: stretch;
	    align-items: center; 
	justify-content: center;
	width: 100%;
	max-width: min(1800px, 95vw);
	flex: 1;
	min-height: 0;
}

.mg-lightbox__image {
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
	opacity: 1;
	transition: opacity .25s ease;
}

.mg-lightbox__image.is-loading {
	opacity: 0;
}

.mg-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.12);
	border: none;
	color: #fff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	transition: background var(--transition-fast);
	z-index: 2;
}
.mg-lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
.mg-lightbox__nav--prev { left: var(--space-3); }
.mg-lightbox__nav--next { right: var(--space-3); }



.mg-lightbox__thumbs::-webkit-scrollbar {
	display: none;               /* Chrome, Safari, Edge Chromium */
}


.mg-lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mg-lightbox__thumb.is-active {
	opacity: 1;
	border-color: var(--color-accent);
}
.mg-lightbox__thumb:hover { opacity: 1; }

@media (max-width: 700px) {
	.mg-lightbox__image { max-height: 70vh; }
	.mg-lightbox__controls { gap: var(--space-2); margin-top: var(--space-2); }
	.mg-lightbox__nav { width: 40px; height: 40px; font-size: 1.4rem; }
	.mg-lightbox__nav--prev { left: var(--space-1); }
	.mg-lightbox__nav--next { right: var(--space-1); }
	.mg-lightbox__thumb { width: 48px; height: 48px; }
	body.has-hero .primary-nav a { color: #fff; }
	body.has-hero .primary-nav a::after { background: var(--color-text); }
	.about-preview__image img {width:100%;}
	.about-preview__text h2 {font-size: 45px;}
	.about-preview__text p:first-of-type {font-size: 20px;}
	.row-contact-50 {flex-wrap: wrap;}
	.site-branding img {height:25px;}
}

/* ==========================================================================
	8. FORM CONTATTI
========================================================================== */
.contact-section {
	display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: column;
}

.contact-form .form-row { margin-bottom: 30px; }

.row-contact-50 {
    display: flex;
    flex-direction: row;
    gap: 20px;
	
}

.contact-form label {
	display: block;
	font-size: var(--fs-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: var(--space-1);
	color: var(--color-text-muted);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	border: 1px solid #eeeeee;
	border-radius: 5px;
	padding: var(--space-2);
	background: #eeeeee;
	color: var(--color-text);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
	transition:.5s;
	border: 1px solid #000;
	
}

.contact-form textarea { height: 150px; resize: vertical; }

/* Pulsante di invio di CF7: stesso stile del bottone .btn del tema */
.contact-form .wpcf7-submit {
	display: inline-block;
	background: #000;
	color: var(--color-text-on-accent);
	border: 1px solid var(--color-accent-dark);
	padding: var(--space-2) var(--space-4);
	font-size: var(--fs-sm);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 5px;
	transition: background var(--transition-fast);
}
.contact-form .wpcf7-submit:hover { transition:.5s; border: 1px solid #000; background: transparent;color:#000;}

/* Checkbox di consenso privacy generato da [acceptance] */
.contact-form .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}
.contact-form .wpcf7-acceptance .wpcf7-list-item-label {
	font-size: var(--fs-xs);
	color: var(--color-text-muted);
}
.contact-form .wpcf7-acceptance .wpcf7-list-item-label a {
	text-decoration: underline;
	color: var(--color-text-muted);
}

.contact-form .wpcf7-acceptance .wpcf7-list-item-label a:hover {
	text-decoration: underline;
	color: #000;
}

/* Messaggi di successo/errore che CF7 mostra sotto il form */
.contact-form .wpcf7-response-output {
	margin-top: var(--space-2);
	padding: var(--space-2);
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
	color: #fff;
}
.wpcf7-mail-sent-ok .wpcf7-response-output { background: rgba(255, 255, 255, 0.15); }
.wpcf7-validation-errors .wpcf7-response-output,
.wpcf7-spam-blocked .wpcf7-response-output { background: rgba(180, 60, 50, 0.25); }

/* Rimuove il puntino rosso "obbligatorio" di CF7, ridondante con l'asterisco nel campo */
.contact-form .wpcf7-not-valid-tip {
	font-size: var(--fs-xs);
	color: #ffb4b0;
	margin-top: 4px;
	display: block;
}

.contact-form .form-consent {
	display: flex;
	align-items: flex-start;
	gap: var(--space-1);
	font-size: var(--fs-xs);
	color: rgba(246, 242, 234, 0.85);
	margin-bottom: var(--space-3);
}
.contact-form .form-consent input { margin-top: 4px; }
.contact-form .form-consent a { text-decoration: underline; color: #fff; }

.form-notice {
	padding: var(--space-2);
	margin-bottom: var(--space-3);
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
}
.form-notice--success { background: rgba(255,255,255,0.15); color: #fff; }
.form-notice--error { background: rgba(180, 60, 50, 0.25); color: #fff; }

/* Honeypot antispam, nascosto a utenti ma visibile ai bot */
.form-hp { position: absolute; left: -9999px; top: -9999px; }

/* Messaggi Contact Form 7 (successo / errore / spam) */
.wpcf7 .wpcf7-response-output {
	display: flex;
	align-items: center;
	gap: var(--space-1);
	margin-top: var(--space-2);
	padding: var(--space-2) var(--space-3);
	border: 0;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	line-height: var(--lh-normal);
}  

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450;
    color: #000;
    font-weight: 500;
}

.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok {
	color: #4F8A10;
	background-color: #DFF2BF;
}

.wpcf7 .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7 .wpcf7-response-output.wpcf7-spam-blocked {
	color: #D8000C;
	background-color: #FFBABA;
}

.wpcf7 .wpcf7-response-output:before {
	font-family: dashicons;
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}

.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok:before {
	content: "\f147"; /* yes/check */
}

.wpcf7 .wpcf7-response-output.wpcf7-validation-errors:before,
.wpcf7 .wpcf7-response-output.wpcf7-spam-blocked:before {
	content: "\f158"; /* warning */
}

/* ==========================================================================
	9. FOOTER
========================================================================== */
.site-footer {
	background: var(--color-surface);
	border-top: 1px solid var(--color-border);
	padding-block: var(--space-3);
}

.site-footer .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-2);
	font-size: var(--fs-xs);
	letter-spacing: 0.04em;
	
	color: var(--color-text-muted);
}

.site-footer a:hover { color: #c3c3c3; }

.site-footer p { color: #c3c3c3; }

/* ==========================================================================
	10. PAGINE GENERICHE (chi sono, contatti standalone)
========================================================================== */

/*chi sono*/   

.page-id-57 #main-content {padding-top:3rem;}

.page-header { text-align: center; padding-block: var(--space-5) var(--space-3); }
.page-content { max-width: 760px; margin-inline: auto; }
.page-content img {  border-radius:5px;}

/* ==========================================================================
	11. RESPONSIVE
========================================================================== */
@media (max-width: 900px) {
	.about-preview { grid-template-columns: 1fr; }
	.contact-section { grid-template-columns: 1fr; }
	.projects-grid { grid-template-columns: repeat(2, 1fr); }
	
}

@media (max-width: 700px) {
	:root { --header-height: 68px; --header-height-scrolled: 56px; }
	
	.menu-toggle { display: block; }
	
	.primary-nav {
		position: fixed;
		inset: 0;
		top: var(--header-height);
		background: var(--color-surface);
		transform: translateY(-8px);
		opacity: 0;
		pointer-events: none;
		transition: opacity var(--transition-smooth), transform var(--transition-smooth);
		padding: var(--space-4);
	}
	.primary-nav.is-open {
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
	}
	.primary-nav ul { flex-direction: column; gap: var(--space-3); }
	
	.hero { min-height: 90vh; align-items: center; }
	.hero-content { padding-inline: var(--space-1); }
	
	.projects-grid { grid-template-columns: 1fr; }
	
	.site-footer .container { flex-direction: column; text-align: center; }
}


@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* ==========================================================================
	12. Pagina cookie policy
========================================================================== */

.page-id-399 .page-content a {color:#000;}