/* Stollo Theme — stili globali.
   Design token estratti dal kit globale Elementor (post-5.css) del sito originale. */

:root {
	--color-primary: #6EC1E4;
	--color-secondary: #54595F;
	--color-text: #7A7A7A;
	--color-accent: #61CE70;
	--color-orange: #F05125;
	--color-brown: #504743;
	--color-white: #FFFFFF;
	--color-black: #000000;
	--color-peach: #FFA085;
	--color-offwhite: #FBFBFB;

	--font-family: "Rubik", sans-serif;
	--font-weight-heading: 600;
	--font-weight-body: 400;
	--font-weight-accent: 500;

	--container-max-width: 1140px;
}

@media (max-width: 1024px) {
	:root {
		--container-max-width: 1024px;
	}
}

@media (max-width: 767px) {
	:root {
		--container-max-width: 767px;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font-family);
	font-weight: var(--font-weight-body);
	color: var(--color-text);
}

a {
	color: var(--color-orange);
	text-decoration: none;
}

.container {
	width: 100%;
	max-width: var(--container-max-width);
	margin-inline: auto;
	padding-inline: 20px;
}

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

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	--header-max-width: 1400px;
}

.header-top {
	background: var(--color-white);
}

.header-top__inner {
	max-width: var(--header-max-width);
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 80px;
	gap: 24px;
}

.site-logo img {
	display: block;
}

.site-nav--desktop ul {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	color: var(--color-secondary);
	font-weight: var(--font-weight-heading);
	font-size: 14px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.site-nav a:hover {
	color: var(--color-orange);
}

.header-bar {
	background: var(--color-orange);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-bar__inner {
	max-width: var(--header-max-width);
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 50px;
	position: relative;
}

.site-nav--mobile {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 16px;
}

.site-nav--mobile .site-nav__list {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav--mobile a {
	color: var(--color-white);
}

.site-nav--mobile a:hover,
.site-nav--mobile a:focus {
	color: var(--color-brown);
}

.menu-toggle {
	display: none;
	background: none;
	border: 0;
	color: var(--color-white);
	cursor: pointer;
	padding: 8px;
}

.menu-toggle .icon--close {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon--open {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon--close {
	display: block;
}

.header-bar__mail,
.header-bar__search-toggle {
	color: var(--color-white);
	background: none;
	border: 0;
	cursor: pointer;
	line-height: 0;
}

.site-search {
	display: none;
	position: absolute;
	top: 100%;
	right: 20px;
	margin-top: 6px;
}

.site-search.is-open {
	display: block;
}

.site-search input {
	font-family: var(--font-family);
	border: 0;
	border-radius: 4px;
	padding: 8px 12px;
	width: 220px;
}

@media (max-width: 1024px) {
	.header-top__inner,
	.header-bar__inner {
		padding-inline: 20px;
	}
}

@media (max-width: 767px) {
	.site-nav--desktop {
		display: none;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.site-nav--mobile .site-nav__list {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		background: var(--color-orange);
		padding: 16px 20px;
		gap: 12px;
	}

	.site-nav--mobile .site-nav__list.is-open {
		display: flex;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	color: var(--color-secondary);
}

.site-footer h2 {
	color: var(--color-secondary);
	font-weight: var(--font-weight-heading);
}

.footer-top {
	margin-top: 80px;
}

.footer-top__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
}

.footer-top__intro {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 0% 8% 0% 0%;
}

.footer-top__intro h2 {
	font-size: 24px;
	margin: 0;
}

.footer-top__newsletter {
	background: #F7F7F7;
	padding: 50px;
}

.footer-top__eyebrow {
	color: var(--color-orange);
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.04em;
	margin: 0 0 8px;
	border-top: 1px solid var(--color-orange);
	padding-top: 10px;
	display: inline-block;
}

.footer-top__eyebrow--social {
	margin-top: 24px;
}

.newsletter-form {
	display: flex;
	gap: 0;
	margin-top: 16px;
}

.newsletter-form input {
	flex: 1;
	font-family: var(--font-family);
	border: 1px solid #ddd;
	border-right: 0;
	padding: 12px 14px;
}

.newsletter-form button {
	background: var(--color-orange);
	color: var(--color-white);
	border: 0;
	padding: 12px 20px;
	font-weight: var(--font-weight-heading);
	cursor: pointer;
}

.newsletter-form__feedback {
	min-height: 1.2em;
	font-size: 14px;
	margin-top: 8px;
}

.social-icons {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.social-icons a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--color-secondary);
	color: var(--color-white);
}

.social-icons a:hover {
	background: var(--color-orange);
}

.footer-menu {
	background: var(--color-brown);
}

.footer-menu nav ul {
	display: flex;
	justify-content: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 20px;
}

.footer-menu a {
	color: var(--color-white);
	font-weight: var(--font-weight-heading);
	font-size: 14px;
	text-transform: uppercase;
}

.footer-bottom {
	background: var(--color-brown);
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom .container {
	padding-block: 24px;
	font-size: 14px;
}

.footer-bottom p {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 767px) {
	.footer-top__inner {
		grid-template-columns: 1fr;
	}

	.footer-top__intro {
		padding: 24px 20px 0;
	}

	.footer-menu {
		display: none;
	}
}

/* ==========================================================================
   Homepage — generic section helpers
   ========================================================================== */

.section {
	padding-block: 60px;
}

.eyebrow {
	color: var(--color-orange);
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.04em;
	border-top: 1px solid var(--color-orange);
	padding-top: 10px;
	display: inline-block;
	margin: 0 0 8px;
}

.section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 32px;
}

.section-heading h2,
.section-title-center {
	font-size: 28px;
	color: var(--color-secondary);
	margin: 0;
}

.section-title-center {
	text-align: center;
	margin-bottom: 32px;
}

.link-arrow {
	color: var(--color-orange);
	font-size: 14px;
	font-weight: var(--font-weight-heading);
	text-transform: uppercase;
	border-bottom: 1px solid transparent;
	white-space: nowrap;
}

.link-arrow:hover {
	color: var(--color-secondary);
}

/* Hero */

.hero {
	background-size: cover;
	background-position: center 65%;
	display: flex;
	align-items: center;
	min-height: 340px;
	padding: 40px 0;
}

.hero__inner {
	display: flex;
	justify-content: flex-end;
	width: 100%;
}

.hero__box {
	background: rgba(80, 71, 67, 0.65);
	color: var(--color-white);
	border-radius: 10px;
	padding: 3em;
	max-width: 460px;
}

.hero__box h1 {
	margin: 0 0 12px;
	font-size: 26px;
}

.hero__box p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}

/* Post grid */

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px 30px;
}

.post-card {
	background: var(--color-white);
	border-radius: 3px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.post-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

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

.post-card__badge {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(0, 0, 0, 0.55);
	color: var(--color-white);
	font-size: 12px;
	padding: 0.5em 1em;
	border-radius: 999px;
}

.post-card__body {
	padding: 20px 20px 0;
	flex: 1;
}

.post-card__body h3 {
	font-size: 17px;
	margin: 0 0 10px;
}

.post-card__body h3 a {
	color: var(--color-secondary);
}

.post-card__body p {
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

.post-card__meta {
	display: flex;
	gap: 10px;
	font-size: 13px;
	color: #9a9a9a;
	padding: 16px 20px 20px;
}

@media (max-width: 1024px) {
	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.post-grid {
		grid-template-columns: 1fr;
	}

	.section-heading {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Video section */

.section--video {
	background: var(--color-offwhite);
}

.video-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.video-layout__text p {
	line-height: 1.6;
}

.video-wrapper {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	border-radius: 6px;
	overflow: hidden;
}

.video-wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 767px) {
	.video-layout {
		grid-template-columns: 1fr;
	}
}

/* Values carousel */

.values-carousel {
	display: flex;
	align-items: center;
	gap: 12px;
}

.values-carousel__track {
	flex: 1;
	display: flex;
	gap: 0;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.values-carousel__track::-webkit-scrollbar {
	display: none;
}

.values-carousel__slide {
	flex: 0 0 33.333%;
	scroll-snap-align: start;
}

.values-carousel__slide img {
	width: 100%;
	display: block;
}

.values-carousel__arrow {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #ddd;
	background: var(--color-white);
	color: var(--color-secondary);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.values-carousel__arrow:hover {
	background: var(--color-orange);
	color: var(--color-white);
	border-color: var(--color-orange);
}

@media (max-width: 1024px) {
	.values-carousel__slide {
		flex-basis: 50%;
	}
}

@media (max-width: 767px) {
	.values-carousel__slide {
		flex-basis: 100%;
	}
}

/* ==========================================================================
   Content pages (Manifesto, Programma 2019, ecc.)
   ========================================================================== */

.content-page {
	padding-block: 60px;
}

.content-page__layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 60px;
	align-items: start;
}

.content-page__main h1 {
	color: var(--color-secondary);
	font-size: 30px;
	margin-top: 0;
}

.content-page__body {
	line-height: 1.75;
}

.content-page__body h2 {
	color: var(--color-secondary);
	font-size: 22px;
	margin-top: 2em;
}

.content-page__body p {
	margin: 1em 0;
}

.content-page__sidebar {
	position: sticky;
	top: 100px;
}

.toc {
	background: var(--color-offwhite);
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 20px;
}

.toc__title {
	margin: 0 0 12px;
	font-size: 15px;
	color: var(--color-secondary);
}

.toc__nav ol {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: toc-counter;
}

.toc__nav li {
	counter-increment: toc-counter;
	margin: 6px 0;
}

.toc__nav a {
	color: var(--color-text);
	font-size: 14px;
}

.toc__nav a::before {
	content: counter(toc-counter) ". ";
	color: var(--color-orange);
	font-weight: var(--font-weight-heading);
}

.toc__nav a:hover {
	color: var(--color-orange);
}

.toc__nav a.is-active {
	color: var(--color-orange);
	font-weight: var(--font-weight-heading);
}

@media (max-width: 1024px) {
	.content-page__layout {
		grid-template-columns: 1fr;
	}

	.content-page__sidebar {
		position: static;
		order: -1;
	}
}

/* ==========================================================================
   Archive / blog listing
   ========================================================================== */

.archive-header {
	background: var(--color-offwhite);
	padding: 40px 0;
}

.archive-header h1 {
	margin: 0;
	color: var(--color-secondary);
}

.archive-post-list {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.archive-post {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 24px;
	background: var(--color-white);
	border-radius: 3px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.archive-post__thumb {
	display: block;
	aspect-ratio: 3 / 2;
}

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

.archive-post__body {
	padding: 20px 20px 20px 0;
}

.archive-post__body h3 {
	margin: 0 0 8px;
	font-size: 18px;
}

.archive-post__body h3 a {
	color: var(--color-secondary);
}

.archive-post__meta {
	display: flex;
	gap: 10px;
	font-size: 13px;
	color: #9a9a9a;
	margin-bottom: 10px;
}

.archive-post__body p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--color-text);
}

@media (max-width: 600px) {
	.archive-post {
		grid-template-columns: 1fr;
	}

	.archive-post__body {
		padding: 16px;
	}
}

.pagination {
	display: flex;
	gap: 8px;
	margin-top: 32px;
}

.pagination__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	border-radius: 4px;
	border: 1px solid #e5e5e5;
	color: var(--color-secondary);
	font-size: 14px;
}

.pagination__item.is-current {
	background: var(--color-orange);
	border-color: var(--color-orange);
	color: var(--color-white);
}

.sidebar-block {
	margin-bottom: 32px;
}

.sidebar-block h4 {
	color: var(--color-secondary);
	font-size: 15px;
	margin: 0 0 14px;
}

.category-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.category-list li {
	border-bottom: 1px solid #eee;
}

.category-list a {
	display: block;
	padding: 8px 0;
	color: var(--color-text);
	font-size: 14px;
}

.category-list a:hover {
	color: var(--color-orange);
}

.mini-post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mini-post-list li {
	display: grid;
	grid-template-columns: 60px 1fr;
	gap: 12px;
	align-items: center;
}

.mini-post-list__thumb {
	display: block;
	width: 60px;
	height: 60px;
	border-radius: 4px;
	overflow: hidden;
}

.mini-post-list__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mini-post-list a {
	color: var(--color-secondary);
	font-size: 14px;
	line-height: 1.4;
}

.mini-post-list span {
	display: block;
	font-size: 12px;
	color: #9a9a9a;
	margin-top: 4px;
}

/* ==========================================================================
   Single post
   ========================================================================== */

.single-post {
	padding-block: 60px;
}

.single-post__layout {
	max-width: 800px;
}

.single-post__main h1 {
	color: var(--color-secondary);
	font-size: 30px;
	margin-top: 0;
}

.single-post__meta {
	display: flex;
	gap: 16px;
	font-size: 14px;
	color: #9a9a9a;
	margin-bottom: 24px;
}

.single-post__meta a {
	color: inherit;
}

.single-post__thumb {
	width: 100%;
	border-radius: 6px;
	margin-bottom: 24px;
}

.single-post__body {
	line-height: 1.75;
}

.single-post__body h2 {
	color: var(--color-secondary);
	font-size: 22px;
	margin-top: 2em;
}

.single-post__body p {
	margin: 1em 0;
}

.single-post__body iframe {
	max-width: 100%;
}

.share-buttons {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #eee;
}

.share-buttons h4 {
	color: var(--color-secondary);
	font-size: 15px;
	margin: 0 0 12px;
}

.share-buttons ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.share-buttons a {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	font-size: 13px;
	color: var(--color-secondary);
}

.share-buttons a:hover {
	border-color: var(--color-orange);
	color: var(--color-orange);
}

.author-box {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 32px;
	padding: 20px;
	background: var(--color-offwhite);
	border-radius: 6px;
}

.author-box img {
	border-radius: 50%;
}

.author-box h4 {
	margin: 0;
	color: var(--color-secondary);
}

.comments-wrapper {
	margin-top: 48px;
}

.comments-wrapper .comments-title {
	font-size: 20px;
	color: var(--color-secondary);
}

.comments-wrapper .comment-list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}

.comments-wrapper .comment-list ul.children {
	list-style: none;
	padding-left: 30px;
}

.comments-wrapper .comment-body {
	padding: 16px 0;
	border-bottom: 1px solid #eee;
}

.comments-wrapper .comment-author img {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 8px;
}

.comments-wrapper .comment-metadata a {
	font-size: 12px;
	color: #9a9a9a;
}

.comments-wrapper .comment-form p {
	margin: 12px 0;
}

.comments-wrapper .comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	color: var(--color-secondary);
}

.comments-wrapper .comment-form input[type="text"],
.comments-wrapper .comment-form input[type="email"],
.comments-wrapper .comment-form input[type="url"],
.comments-wrapper .comment-form textarea {
	width: 100%;
	font-family: var(--font-family);
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px 12px;
}

.comments-wrapper .comment-form .submit {
	background: var(--color-orange);
	color: var(--color-white);
	border: 0;
	padding: 12px 24px;
	border-radius: 4px;
	font-weight: var(--font-weight-heading);
	cursor: pointer;
}
