/*
Theme Name: Salvo Flowers
Author: Domenico Lupo
Description: A custom, elegant theme for Salvo Flowers, focusing on wedding portfolios.
Version: 2.3
Text Domain: salvoflowers
*/

:root {
    --primary-color: #4A4A4A; /* Grigio più caldo */
    --accent-color: #C1A687; /* Oro/Sabbia più elegante */
    --cta-primary: #609265; /* CTA primarie */
    --accent-light: #EBE5DE;
    --bg-color: #FFFFFF;
    --light-grey: #FAFAFA;
    --border-color: #E0E0E0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --spacing-unit: 2rem;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--primary-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: #2c2c2c;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--cta-primary);
    color: #fff;
    border-color: var(--cta-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--cta-primary);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--cta-primary);
    border-color: var(--cta-primary);
    color: #fff;
}

.btn-outline-dark {
    border-color: #2c2c2c;
    color: #2c2c2c;
}

.btn-outline-dark:hover {
    background-color: var(--cta-primary);
    border-color: var(--cta-primary);
    color: #fff;
}

/* --- Header (desktop) --- */
.skip-link.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link.screen-reader-text:focus {
    position: fixed;
    top: 0;
    left: 1rem;
    z-index: 100000;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
}

.site-header {
    padding: var(--spacing-unit) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease, transform 0.35s ease;
}

.site-header.nav-hidden {
    transform: translateY(-100%);
}

.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.site-header.scrolled {
    padding: 1rem 0;
    background: var(--bg-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    min-height: 1px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.header-top-trailer {
    display: none;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
}

.main-navigation {
    flex: none;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.35rem;
    min-width: 0;
    padding-top: 0.35rem;
}

.anchor-nav {
    grid-column: 2;
    justify-self: center;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.25rem;
    margin: 0;
    padding: 0;
    min-width: 0;
    max-width: 100%;
}

.anchor-nav li {
    position: relative;
}

.nav-menu-left {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-menu-right {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header-brand {
    flex: 0 1 auto;
    padding: 0 1rem;
    text-align: center;
}

.header-brand a {
    display: inline-block;
}

.header-brand .custom-logo-link img,
.header-brand .site-logo-link .site-logo,
.header-brand img {
    max-height: 72px;
    width: auto;
    height: auto;
    display: block;
    transition: max-height 0.3s ease, filter 0.4s ease;
}

.site-header.scrolled .header-brand .custom-logo-link img,
.site-header.scrolled .header-brand .site-logo-link .site-logo,
.site-header.scrolled .header-brand img {
    max-height: 52px;
}

.header-brand .site-title-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
    color: #2c2c2c;
    transition: color 0.3s;
}

.site-header:not(.scrolled) .header-brand .site-title-link {
    color: rgba(255, 255, 255, 0.95);
}

.header-brand .site-title-link:hover {
    color: var(--accent-color);
}

.language-switcher-wrap {
    grid-column: 3;
    justify-self: end;
    align-self: center;
    flex: none;
    margin-left: 0;
    min-width: 0;
}

.primary-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.primary-menu-left {
    justify-content: flex-end;
}

.primary-menu-right {
    justify-content: flex-start;
}

.primary-menu li {
    position: relative;
}

.primary-menu a,
.anchor-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: #2c2c2c;
    position: relative;
    padding: 0.5rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.primary-menu a:focus-visible,
.anchor-nav a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.site-header:not(.scrolled) .primary-menu a,
.site-header:not(.scrolled) .anchor-nav a {
    color: rgba(255, 255, 255, 0.95);
}

.site-header:not(.scrolled) .primary-menu a:hover,
.site-header:not(.scrolled) .anchor-nav a:hover {
    color: #fff;
}

.site-header.scrolled .primary-menu a,
.site-header.scrolled .anchor-nav a {
    color: #2c2c2c;
}

.primary-menu a::after,
.anchor-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--accent-color), #D4B896);
    transition: width 0.3s ease;
}

.site-header:not(.scrolled) .primary-menu a::after,
.site-header:not(.scrolled) .anchor-nav a::after {
    background: rgba(255, 255, 255, 0.9);
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item a::after,
.anchor-nav a:hover::after {
    width: 100%;
}

.primary-menu a:hover,
.anchor-nav a:hover {
    color: var(--accent-color);
}

.site-header.scrolled .primary-menu a:hover,
.site-header.scrolled .anchor-nav a:hover {
    color: var(--cta-primary);
}

.site-header.scrolled .primary-menu a::after,
.site-header.scrolled .anchor-nav a::after {
    background: var(--cta-primary);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.language-switcher {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0 0 0 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    flex: 0 0 auto;
    justify-content: flex-end;
    min-width: 0;
}

.site-header.scrolled .language-switcher {
    border-left-color: var(--border-color);
}

.language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 999px;
    transition: opacity 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 2px solid transparent;
}

.language-switcher a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.language-switcher a:hover {
    opacity: 0.9;
}

.language-switcher a.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.language-icon {
    display: block;
    width: 20px;
    height: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2px;
}

.language-icon-it {
    background-image: url('img/flag-it.svg');
}

.language-icon-en {
    background-image: url('img/flag-en.svg');
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 28px;
    height: 2px;
    background-color: #2c2c2c;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.site-header:not(.scrolled) .hamburger-line {
    background-color: #fff;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (prefers-reduced-motion: reduce) {
    .site-header {
        transition: none;
    }

    .site-header.nav-hidden {
        transform: none;
    }
}

/* --- Home hero: container, rapporto 16:9 --- */
.home-hero-banner {
    width: 100%;
    margin: 0;
    padding: 1.5rem 0 0;
    line-height: 0;
}

.home-hero-banner__inner {
    max-width: var(--container-width);
}

.home-hero-banner__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
}

.home-hero-banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-bg-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.hero-slide-active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 12rem 1.5rem 5rem;
    max-width: 720px;
    margin: 0 auto;
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    text-shadow: 0 1px 10px rgba(0,0,0,0.25);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
}

.hero-cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.btn-large {
    padding: 14px 35px;
    font-size: 0.95rem;
}

.btn-outline-hero {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 33px;
    font-size: 0.95rem;
}

.btn-outline-hero:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.hero-section .btn-primary {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-section .btn-primary:hover {
    background-color: #fff;
    color: var(--cta-primary);
    border-color: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

/* --- Common Section Styles --- */
.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #2c2c2c;
}

.section-title-left {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
}

.separator-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #888;
    font-style: italic;
    font-family: var(--font-heading);
}

/* --- Services Section --- */
.services-section {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 4rem;
    text-align: center;
}

.service-item {
    padding: 2rem;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

/* --- Philosophy Section --- */
.philosophy-section {
    background-color: var(--light-grey);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-image img {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.philosophy-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.philosophy-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #666;
}

/* --- Portfolio Section --- */
.matrimoni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
}

.matrimonio-card {
    position: relative;
    overflow: visible;
}

.matrimonio-card-inner {
    display: block;
    background-color: #ffffff;
    border-radius: 14px;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.matrimonio-card-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.matrimonio-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    margin-bottom: 1.25rem;
    border-radius: 10px;
}

.matrimonio-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.matrimonio-card:hover .matrimonio-thumbnail {
    transform: scale(1.05);
}

.matrimonio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.matrimonio-card:hover .matrimonio-overlay {
    opacity: 1;
}

.read-more {
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.matrimonio-title {
    font-size: 1.4rem;
    text-align: center;
    margin: 0 0 0.25rem;
}

.matrimonio-date {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2rem;
    color: #888;
}

/* --- Matrimonio.com reviews widget --- */
.reviews-matrimonio-section {
    padding: 7rem 0 6.5rem;
    text-align: center;
    background-color: var(--accent-light);
}

.reviews-matrimonio-section .matrimonio-section-header {
    margin-bottom: 2.75rem;
}

.reviews-matrimonio-section .matrimonio-section-header .section-title {
    margin-bottom: 0.65rem;
}

.reviews-matrimonio-section .matrimonio-widget-shell {
    max-width: 720px;
    margin: 0 auto;
    background-color: var(--bg-color);
    border-radius: 18px;
    border: 1px solid rgba(193, 166, 135, 0.35);
    box-shadow:
        0 20px 50px rgba(44, 44, 44, 0.07),
        0 4px 14px rgba(44, 44, 44, 0.04);
    overflow: hidden;
}

.reviews-matrimonio-section #wp-widget-reviews {
    margin: 0;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--primary-color);
}

.reviews-matrimonio-section #wp-widget-preview {
    padding: 1.35rem 1.75rem;
    font-size: 0.95rem;
    line-height: 1.65;
}

.reviews-matrimonio-section #wp-widget-preview a {
    color: var(--cta-primary);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.reviews-matrimonio-section #wp-widget-preview a:hover {
    color: var(--accent-color);
}

.reviews-matrimonio-section #wp-widget-preview img {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.15rem;
}

/* Link e accento nel widget caricato (struttura tipica Matrimonio / WW) */
.reviews-matrimonio-section #wp-widget-reviews a {
    color: var(--cta-primary);
}

.reviews-matrimonio-section #wp-widget-reviews a:hover {
    color: var(--accent-color);
}

/* --- Footer --- */
.site-footer {
    padding: 3.5rem 0 1.5rem;
    background-color: #2c2c2c;
    color: #fff;
    font-size: 0.9rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
    flex-shrink: 0;
}

.footer-logo-link {
    display: inline-block;
}

.footer-logo {
    height: 56px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    opacity: 0.95;
}

.footer-logo-link:hover .footer-logo {
    opacity: 1;
}

.footer-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
}

.footer-copyright {
    margin: 0;
    opacity: 0.7;
    font-size: 0.8rem;
}

.footer-credit {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    opacity: 0.8;
}

.footer-credit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-credit-link:hover {
    color: #fff;
}

.footer-credit-logo {
    width: 12px;
    height: 12px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.9;
    border-radius: 1px;
    filter: invert(1);
}

.footer-credit-link:hover .footer-credit-logo {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- About Section --- */
.about-section {
    background-color: #fff;
}

.about-section--text-only .about-content--full {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.about-content h1.section-title-left {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.9;
}

.about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.about-image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.about-image-grid img:hover {
    transform: scale(1.05);
}

/* --- Testimonials Section --- */
.testimonials-section {
    background: linear-gradient(135deg, var(--accent-light) 0%, #F5F0EB 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 3rem;
}

.testimonial-card {
    background: #fff;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.testimonial-stars {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 700;
    color: #2c2c2c;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.testimonial-date {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #999;
}

/* --- Contact Section --- */
.contact-section {
    background-color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    min-width: 30px;
}

.contact-item-content h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: #2c2c2c;
}

.contact-item-content p {
    margin: 0;
    color: #666;
}

.contact-form {
    background: var(--light-grey);
    padding: 3rem;
    border-radius: 8px;
}

.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c2c2c;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--cta-primary);
    color: #fff;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #4d7552;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* --- Multistep Form --- */
.multistep-form .form-progress {
    margin-bottom: 2rem;
}

.multistep-form .form-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.multistep-form .form-progress-step {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s;
}

.multistep-form .form-progress-step.active {
    background: var(--cta-primary);
    color: #fff;
}

.multistep-form .form-progress-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.multistep-form .form-progress-fill {
    display: block;
    height: 100%;
    background: var(--cta-primary);
    width: 0;
    transition: width 0.3s ease;
}

.multistep-form .form-steps {
    position: relative;
    min-height: 120px;
}

.multistep-form .form-step {
    display: none;
    animation: formStepFade 0.3s ease;
}

.multistep-form .form-step.active {
    display: block;
}

@keyframes formStepFade {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.multistep-form .form-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.multistep-form .form-btn {
    padding: 0.875rem 1.5rem;
    border: 2px solid #2c2c2c;
    background: transparent;
    color: #2c2c2c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.multistep-form .form-btn:hover {
    background: #2c2c2c;
    color: #fff;
}

.multistep-form .form-btn-submit {
    display: none;
    flex: 1;
}

.multistep-form .form-btn-prev {
    margin-right: auto;
}

.multistep-form .form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.multistep-form .optional-label {
    font-weight: 400;
    color: #999;
    text-transform: none;
}

.multistep-form .form-group input[type="file"] {
    padding: 0.75rem;
}

.multistep-form .form-group-consents .form-consents-intro {
    margin: 0 0 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.multistep-form .form-consents {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.multistep-form .form-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.45;
}

.multistep-form .form-checkbox-row input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--cta-primary);
}

.multistep-form .form-checkbox-text a {
    color: var(--cta-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.multistep-form .form-checkbox-text a:hover {
    text-decoration: none;
}

.multistep-form input[type="checkbox"].error {
    outline: 2px solid #c0392b;
    outline-offset: 2px;
}

.multistep-form .date-selects {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 1rem;
}

.multistep-form .date-selects select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.multistep-form .date-selects select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.multistep-form .date-selects select.error {
    border-color: #c0392b;
}

@media (max-width: 480px) {
    .multistep-form .date-selects {
        grid-template-columns: 1fr;
    }

    .about-image-grid {
        grid-template-columns: 1fr;
    }
}

.multistep-form .form-group input.error {
    border-color: #c0392b;
}

@media (max-width: 600px) {
    .multistep-form .form-progress-step {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    .multistep-form .form-nav {
        flex-direction: column;
    }
    .multistep-form .form-btn-prev {
        margin-right: 0;
    }
}

/* --- Instagram Section --- */
.instagram-section {
    background-color: var(--light-grey);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1rem;
}

.instagram-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(193, 166, 135, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-icon {
    font-size: 3rem;
    color: #fff;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #2c2c2c 0%, #4A4A4A 100%);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-light {
    background: #fff;
    color: #2c2c2c;
    border-color: #fff;
}

.btn-light:hover {
    background: var(--cta-primary);
    border-color: var(--cta-primary);
    color: #fff;
}

/* Vedi Portfolio secondario: resta bianco (outline su sfondo scuro) */
.btn-outline-light {
    border-color: #fff !important;
    color: #fff !important;
}

.btn-outline-light:hover {
    background: transparent !important;
    border-color: #fff !important;
    color: #fff !important;
}

/* --- Single Post Styles --- */
.single-matrimonio-header {
    text-align: center;
    padding: 8rem 0 2rem;
}

.single-matrimonio-header .entry-title {
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.featured-image-container {
    margin-bottom: 4rem;
}

.featured-image-container img {
    width: 100%;
    max-height: 50vh;
    object-fit: cover;
}

.post-content {
    max-width: 800px;
    margin: 0 auto 5rem;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #4A4A4A;
}

.post-content h2,
.post-content h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
}

.post-content h2 {
    font-size: 2rem;
    letter-spacing: 1px;
}

.post-content h3 {
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}

.post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.post-content strong {
    font-weight: 600;
    color: #2c2c2c;
}

.matrimonio-credits {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--light-grey);
    border-radius: 8px;
    margin-bottom: 5rem;
}

.matrimonio-credits .credits-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: #2c2c2c;
    text-align: center;
}

.matrimonio-credits .credits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.matrimonio-credits .credits-list li {
    font-size: 1rem;
    line-height: 1.6;
    color: #4A4A4A;
    padding: 0.5rem 0;
}

.matrimonio-credits .credits-list li strong {
    font-weight: 600;
    color: #2c2c2c;
    display: inline-block;
    min-width: 140px;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* --- Responsive --- */
@media (max-width: 1023px) {
    .header-top {
        justify-content: space-between;
    }

    .header-top-trailer {
        display: block;
        order: 3;
    }

    .mobile-menu-toggle {
        display: flex;
        flex: 0 0 44px;
        order: 1;
    }

    .header-brand {
        order: 2;
        flex: 1;
        min-width: 0;
        padding: 0 0.5rem;
    }

    .header-brand .custom-logo-link img,
    .header-brand .site-logo-link .site-logo,
    .header-brand img {
        max-height: 48px;
    }

    .site-header.scrolled .header-brand .custom-logo-link img,
    .site-header.scrolled .header-brand .site-logo-link .site-logo,
    .site-header.scrolled .header-brand img {
        max-height: 44px;
    }

    .header-inner .main-navigation {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: none;
        min-height: 100vh;
        min-height: 100dvh;
        background: var(--bg-color);
        box-shadow: none;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        padding: max(6rem, calc(env(safe-area-inset-top, 0px) + 4.5rem))
            max(2rem, env(safe-area-inset-right, 0px))
            max(2rem, env(safe-area-inset-bottom, 0px))
            max(2rem, env(safe-area-inset-left, 0px));
        overflow-y: auto;
        align-items: center;
        justify-content: center;
        flex: none;
        z-index: 999;
    }

    .admin-bar .header-inner .main-navigation {
        top: var(--wp-admin--admin-bar--height, 32px);
        min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
        min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
    }

    .site-header.nav-open {
        background: var(--bg-color);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    }

    .site-header.nav-open .hamburger-line {
        background-color: #2c2c2c;
    }

    .language-switcher-wrap {
        margin-left: 0;
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .anchor-nav {
        flex: none;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1.5rem;
        width: 100%;
        max-width: 28rem;
        text-align: center;
    }
    
    .main-navigation.active .anchor-nav a {
        color: #2c2c2c;
    }
    
    .main-navigation.active .anchor-nav a::after {
        background: linear-gradient(90deg, var(--accent-color), #D4B896);
    }
    
    .language-switcher {
        margin: 1rem 0 0;
        padding: 1rem 0 0;
        border-left: none;
        border-top: 1px solid var(--border-color);
        width: 100%;
        max-width: 28rem;
        justify-content: center;
    }

    .main-navigation.active .language-switcher {
        border-left: none;
        border-top-color: var(--border-color);
    }
    
    .anchor-nav a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .anchor-nav a::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-grid,
    .philosophy-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-grid {
        order: -1;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
    .header-inner .main-navigation {
        transition: none;
    }
}

@media screen and (max-width: 782px) {
    .admin-bar .header-inner .main-navigation {
        top: var(--wp-admin--admin-bar--height, 46px);
        min-height: calc(100vh - var(--wp-admin--admin-bar--height, 46px));
        min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 46px));
    }
}

@media (max-width: 968px) {
    .hero-main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .hero-content {
        padding: 10rem 1rem 4rem;
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-features {
        gap: 1rem;
        flex-direction: column;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .hero-cta-wrapper {
        flex-direction: column;
    }
    
    .btn-large,
    .btn-outline-hero {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }

    .reviews-matrimonio-section {
        padding: 5rem 0 4.5rem;
    }

    .reviews-matrimonio-section .matrimonio-widget-shell {
        border-radius: 14px;
    }

    .reviews-matrimonio-section .matrimonio-section-header {
        margin-bottom: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .single-matrimonio-header {
        padding: 6rem 0 1.5rem;
    }
    
    .single-matrimonio-header .entry-title {
        font-size: 2.5rem;
    }
    
    .featured-image-container img {
        max-height: 40vh;
    }
    
    .post-content {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .post-content h2 {
        font-size: 1.6rem;
    }
    
    .post-content h3 {
        font-size: 1.4rem;
    }
    
    .matrimonio-credits {
        padding: 2rem 1.5rem;
    }
    
    .matrimonio-credits .credits-title {
        font-size: 1.5rem;
    }
    
    .matrimonio-credits .credits-list li strong {
        display: block;
        min-width: auto;
        margin-bottom: 0.25rem;
    }
}
