/*
Theme Name: SardiniaSardegna
Theme URI: https://sardiniasardegna.com
Author: SardiniaSardegna
Description: A lightweight, editorial block theme for SardiniaSardegna.com — a premium, Mediterranean-inspired travel and discovery site for Sardinia, Italy.
Version: 2.7
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sardiniasardegna
*/

/* Most styling lives in theme.json (Global Styles) so it stays editable
   visually in the Site Editor. This file only holds small fixes that
   theme.json can't express. */

/* Smooth header transition from transparent-over-hero to solid on scroll */
.site-header {
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
	background-color: #FAF8F5;
	box-shadow: 0 1px 0 rgba(26, 26, 26, 0.06);
}

/* Hero photo — always show the full image, uncropped, on every device.
   No object-fit/max-height cropping, so the beach/bottom of the photo
   is never cut off on tablet or desktop. */
.hero-photo img {
	width: 100%;
	height: auto;
	display: block;
}

/* Card image hover — subtle, premium, not flashy */
.region-card img,
.activity-card img {
	transition: transform 0.4s ease;
}
.region-card:hover img,
.activity-card:hover img {
	transform: scale(1.03);
}

/* Explore Sardinia hub — destination grid stacks to 1 column on mobile */
.destinations-query .wp-block-post-template {
	gap: 2.5rem;
}
@media (max-width: 680px) {
	.destinations-query .wp-block-post-template {
		grid-template-columns: 1fr;
	}
}
