/*
Theme Name: ADNFOOD
Theme URI: https://adnfood.it
Author: Nicola Cutri
Description: Tema landing page per ADNFOOD.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adnfood
Tags: landing-page, one-column, custom-logo, custom-colors, block-styles
*/

/* -------------------------------------------------------------
   Reset di base
------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
p,
figure,
ul {
	margin: 0;
}

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

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

a {
	color: inherit;
}

/* -------------------------------------------------------------
   Variabili
------------------------------------------------------------- */
:root {
	/* Colori */
	--adn-accent: #9a7b4f;          /* ottone brunito */
	--adn-accent-dark: #7e6440;
	--adn-bg: #f6f3ee;              /* avorio */
	--adn-bg-deep: #efeae1;
	--adn-surface: #fffefb;
	--adn-ink: #171614;             /* inchiostro */
	--adn-text: #2b2926;
	--adn-muted: #7d786f;
	--adn-line: rgba(23, 22, 20, 0.1);
	--adn-line-soft: rgba(23, 22, 20, 0.06);

	/* Ombre discrete */
	--adn-shadow: 0 1px 1px rgba(23, 22, 20, 0.03);
	--adn-shadow-hover: 0 18px 40px -22px rgba(23, 22, 20, 0.4);

	/* Tipografia */
	--adn-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Hoefler Text", Georgia, "Times New Roman", serif;
	--adn-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Misure */
	--adn-radius: 3px;
	--adn-maxw: 1180px;
}

/* -------------------------------------------------------------
   Layout generale
------------------------------------------------------------- */
body {
	margin: 0;
	background-color: var(--adn-bg);
	background-image: radial-gradient(120% 70% at 50% 0%, var(--adn-surface) 0%, var(--adn-bg) 46%, var(--adn-bg-deep) 100%);
	background-repeat: no-repeat;
	background-attachment: fixed;
	color: var(--adn-text);
	font-family: var(--adn-sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.adn-site-main {
	flex: 1 0 auto;
}

.adn-container {
	width: 100%;
	max-width: var(--adn-maxw);
	margin: 0 auto;
	padding: 0 32px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 20px;
	background: var(--adn-surface);
	border: 1px solid var(--adn-line);
	border-radius: var(--adn-radius);
}

/* Etichetta piccola, maiuscoletto spaziato ------------------- */
.adn-eyebrow {
	font-family: var(--adn-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--adn-accent);
}

/* Filetto decorativo ---------------------------------------- */
.adn-rule {
	display: block;
	width: 56px;
	height: 1px;
	margin: 0 auto;
	background: var(--adn-accent);
	opacity: 0.55;
}

/* -------------------------------------------------------------
   Header
------------------------------------------------------------- */
.adn-site-header {
	padding: 34px 0 0;
}

.adn-site-header__inner {
	display: flex;
	justify-content: center;
}

.adn-site-header .custom-logo {
	max-height: 52px;
	width: auto;
}

/* -------------------------------------------------------------
   Hero
------------------------------------------------------------- */
.adn-hero {
	text-align: center;
	padding: 96px 0 72px;
}

.adn-hero__eyebrow {
	display: block;
	margin-bottom: 28px;
}

.adn-hero__title {
	font-family: var(--adn-serif);
	font-weight: 400;
	font-size: clamp(2.5rem, 6.5vw, 4.25rem);
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: var(--adn-ink);
	margin: 0;
}

.adn-hero__brand {
	display: block;
	font-family: var(--adn-sans);
	font-weight: 300;
	font-size: clamp(1.5rem, 4vw, 2.15rem);
	letter-spacing: 0.34em;
	text-indent: 0.34em; /* compensa lo spazio finale del tracking */
	text-transform: uppercase;
	color: var(--adn-ink);
	margin-bottom: 26px;
}

.adn-hero__subtitle {
	max-width: 560px;
	margin: 26px auto 0;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--adn-muted);
}

.adn-hero__rule {
	margin-top: 40px;
}

/* -------------------------------------------------------------
   Griglia ristoranti
------------------------------------------------------------- */
.adn-restaurants {
	padding: 8px 0 112px;
}

.adn-restaurants__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 32px;
}

/* Card ------------------------------------------------------- */
.adn-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--adn-surface);
	border: 1px solid var(--adn-line);
	border-radius: var(--adn-radius);
	padding: 44px 28px 0;
	box-shadow: var(--adn-shadow);
	overflow: hidden;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.35s ease;
}

/* Filetto accento che si rivela in hover */
.adn-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--adn-accent);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.adn-card:hover,
.adn-card:focus-within {
	transform: translateY(-6px);
	border-color: rgba(23, 22, 20, 0.16);
	box-shadow: var(--adn-shadow-hover);
}

.adn-card:hover::before,
.adn-card:focus-within::before {
	transform: scaleX(1);
}

/* Logo ------------------------------------------------------- */
.adn-card__logo {
	width: 116px;
	height: 116px;
	margin-bottom: 26px;
	padding: 18px;
	border-radius: 50%;
	background: var(--adn-bg);
	box-shadow: inset 0 0 0 1px var(--adn-line-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.adn-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain; /* i loghi non vanno ritagliati */
}

.adn-card__logo--placeholder {
	font-family: var(--adn-serif);
	font-size: 2.5rem;
	line-height: 1;
	font-weight: 400;
	color: var(--adn-accent);
	background: var(--adn-bg-deep);
}

/* Testi ------------------------------------------------------ */
.adn-card__name {
	font-family: var(--adn-serif);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.005em;
	color: var(--adn-ink);
	margin: 0;
}

.adn-card__desc {
	margin: 12px 0 0;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.6;
	color: var(--adn-muted);
}

/* Bottone a piena larghezza, separato da un filetto ---------- */
.adn-card__action {
	width: calc(100% + 56px);
	margin: 32px -28px 0;
	border-top: 1px solid var(--adn-line-soft);
}

.adn-card__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 20px 24px;
	font-family: var(--adn-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--adn-ink);
	background: transparent;
	transition: background 0.3s ease, color 0.3s ease;
}

/* L'intera card diventa cliccabile */
.adn-card__button::after {
	content: "";
	position: absolute;
	inset: 0;
}

.adn-card:hover .adn-card__button,
.adn-card__button:focus-visible {
	background: var(--adn-ink);
	color: var(--adn-surface);
}

.adn-card__button:focus-visible {
	outline: 2px solid var(--adn-accent);
	outline-offset: -4px;
}

.adn-card__button svg {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.adn-card:hover .adn-card__button svg {
	transform: translateX(4px);
}

.adn-card__button--disabled {
	color: var(--adn-muted);
	cursor: default;
	pointer-events: none;
}

.adn-card:hover .adn-card__button--disabled {
	background: transparent;
	color: var(--adn-muted);
}

/* Stato vuoto -------------------------------------------------- */
.adn-empty {
	max-width: 620px;
	margin: 0 auto;
	text-align: center;
	background: var(--adn-surface);
	border: 1px solid var(--adn-line);
	border-radius: var(--adn-radius);
	padding: 72px 32px;
	color: var(--adn-muted);
}

.adn-empty__title {
	font-family: var(--adn-serif);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--adn-ink);
	margin-bottom: 10px;
}

.adn-empty__cta {
	display: inline-block;
	margin-top: 26px;
	padding-bottom: 3px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--adn-ink);
	border-bottom: 1px solid var(--adn-accent);
	transition: color 0.25s ease;
}

.adn-empty__cta:hover {
	color: var(--adn-accent);
}

/* -------------------------------------------------------------
   Contenuto pagina (fallback)
------------------------------------------------------------- */
.adn-page {
	padding: 48px 0 96px;
}

.adn-page__title {
	font-family: var(--adn-serif);
	font-weight: 400;
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--adn-ink);
	margin-bottom: 24px;
}

.adn-page__content {
	max-width: 720px;
}

.adn-page__content > * + * {
	margin-top: 1.15em;
}

.adn-page__content a {
	color: var(--adn-accent-dark);
	text-underline-offset: 3px;
}

/* Bottone usato fuori dalle card (404) ----------------------- */
.adn-page .adn-card__button {
	display: inline-flex;
	width: auto;
	padding: 16px 34px;
	border: 1px solid var(--adn-ink);
	border-radius: var(--adn-radius);
}

.adn-page .adn-card__button::after {
	content: none;
}

.adn-page .adn-card__button:hover {
	background: var(--adn-ink);
	color: var(--adn-surface);
}

/* -------------------------------------------------------------
   Footer
------------------------------------------------------------- */
.adn-site-footer {
	flex: 0 0 auto;
	padding: 40px 0 48px;
	text-align: center;
	color: var(--adn-muted);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	border-top: 1px solid var(--adn-line-soft);
}

/* -------------------------------------------------------------
   Responsive
------------------------------------------------------------- */
@media (max-width: 900px) {
	.adn-hero {
		padding: 72px 0 56px;
	}
}

@media (max-width: 640px) {
	.adn-container {
		padding: 0 22px;
	}

	.adn-hero {
		padding: 56px 0 44px;
	}

	.adn-restaurants {
		padding-bottom: 72px;
	}

	.adn-restaurants__grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.adn-card {
		padding: 36px 24px 0;
	}

	.adn-card__action {
		width: calc(100% + 48px);
		margin-left: -24px;
		margin-right: -24px;
	}

	/* Su touch non c'è hover: bottone sempre pieno */
	.adn-card__button {
		background: var(--adn-ink);
		color: var(--adn-surface);
	}

	.adn-card__button--disabled,
	.adn-card:hover .adn-card__button--disabled {
		background: transparent;
		color: var(--adn-muted);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
