/*
Theme Name: A Casa di Milly
Theme URI: https://www.acasadimilly.com/
Author: A Casa di Milly
Author URI: https://www.acasadimilly.com/
Description: Tema WordPress su misura per A Casa di Milly, affittacamere a La Spezia vicino alle Cinque Terre. Design editoriale con accenti viola agapanto, traduzioni gestite via Polylang.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acasadimilly
Tags: full-site-editing, block-patterns, translation-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, wide-blocks
*/

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/* Sticky contact buttons (WhatsApp + phone) */
.acdm-sticky-contact {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	z-index: 100;
}
.acdm-sticky-contact a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	box-shadow: 0 6px 18px rgba(36, 31, 46, 0.18);
	transition: transform 0.15s ease, background 0.15s ease;
	text-decoration: none;
}
.acdm-sticky-contact a:hover {
	transform: translateY(-2px);
	background: var(--wp--preset--color--ink);
}
.acdm-sticky-contact svg {
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
}
@media (max-width: 600px) {
	.acdm-sticky-contact { right: 1rem; bottom: 1rem; }
	.acdm-sticky-contact a { width: 2.875rem; height: 2.875rem; }
	.acdm-sticky-contact svg { width: 1.3rem; height: 1.3rem; }
}

/* Subtle hover zoom on gallery thumbnails */
.acdm-gallery-zoom .wp-block-image img {
	transition: transform 0.45s ease;
}
.acdm-gallery-zoom .wp-block-image:hover img {
	transform: scale(1.04);
}
.acdm-gallery-zoom .wp-block-image {
	overflow: hidden;
}

/* Header divider on scroll (small enhancement) */
.wp-block-template-part.site-header {
	border-bottom: 1px solid transparent;
}

/* Site logo in header */
.acdm-site-logo {
	display: inline-block;
	line-height: 0;
}
.acdm-site-logo img {
	display: block;
	width: 150px;
	height: auto;
}
@media (max-width: 600px) {
	.acdm-site-logo img { width: 110px; }
}

/* Footer site title (still used) — match brand serif */
footer .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--literata);
}
