/* ========================================
   HOMEPAGE STYLES
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    height: 75vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Placeholder gradient */
    background-color: #3a2a2a;
    background-image: linear-gradient(135deg, #4a3333 0%, #2c1e1e 40%, #1a1212 100%);
}

/* Se ha una bg-image inline, mostra quella */
.hero-section[style*="background-image"] {
    background-color: transparent;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    width: 100%;
    padding: 0 var(--space-lg);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--color-text-white);
    line-height: 1.15;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-title-separator {
    font-weight: 400;
}

.hero-title-sub {
    font-weight: 400;
    font-style: italic;
}

.hero-description {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-text-white);
    opacity: 0.95;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn-gold {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-primary-dark) !important;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid var(--color-primary);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-gold:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-primary-dark) !important;
    box-shadow: 0 4px 16px rgba(191, 155, 90, 0.3);
}

.btn-outline-white {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: var(--color-text-white) !important;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-text-white);
    color: var(--color-text-white) !important;
}

/* ========================================
   SECTION HEADERS (riutilizzabile)
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* ========================================
   SEZIONE CHI SIAMO (breve)
   ======================================== */

.section-about {
    padding: var(--space-section) 0;
    background-color: var(--color-background-alt);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    margin-bottom: var(--space-md);
}

.about-text p {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.about-text em {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-primary);
    font-style: italic;
}

.about-locuzioni {
    margin: var(--space-md) 0;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.about-locuzioni p {
    font-size: var(--text-base);
    margin-bottom: 0.4rem;
}

.about-locuzioni p em {
    font-size: var(--text-lg);
}

.about-proverbio {
    margin-top: var(--space-md);
    font-size: var(--text-sm) !important;
    color: var(--color-text-lighter, #999) !important;
    font-style: italic;
}

/* ========================================
   SEZIONE SERVIZI (3 card verticali)
   ======================================== */

.section-servizi {
    padding: var(--space-section) 0;
    background-color: var(--color-background);
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.servizio-card {
    background: var(--color-card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servizio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.servizio-card-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #d4c5b9 0%, #bfaea0 100%);
}

.servizio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.servizio-card:hover .servizio-card-image img {
    transform: scale(1.05);
}

.servizio-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-card-bg);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -24px auto 0;
    position: relative;
    z-index: 2;
}

.servizio-card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
}

.servizio-card-content {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    text-align: center;
}

.servizio-titolo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.servizio-descrizione {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ========================================
   SEZIONE EVENTI
   ======================================== */

.section-eventi {
    padding: var(--space-section) 0;
    background-color: var(--color-background);
}

.eventi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.no-eventi {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--color-text-light);
    font-style: italic;
}

/* Card Evento homepage */
.section-eventi .evento-card {
    background: var(--color-card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-eventi .evento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.section-eventi .evento-card-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: linear-gradient(135deg, #d4c5b9 0%, #bfaea0 100%);
}

.section-eventi .evento-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.section-eventi .evento-card:hover .evento-card-image img {
    transform: scale(1.05);
}

.section-eventi .evento-card-content {
    padding: var(--space-lg);
}

.section-eventi .evento-card-date {
    display: inline-block;
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.section-eventi .evento-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg, 1.25rem);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.section-eventi .evento-card-info {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.section-eventi .evento-card .btn-gold {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.6rem 1.5rem;
}

/* ========================================
   SEZIONE BLOG (2 card orizzontali)
   ======================================== */

.section-blog {
    padding: var(--space-section) 0;
    background-color: var(--color-background-alt);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

/* Card Blog homepage - horizontal layout */
.blog-card {
    background: var(--color-card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    flex: 0 0 40%;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    flex: 1;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg, 1.25rem);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--color-primary);
}

.blog-card-excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.blog-card-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-link:hover {
    color: var(--color-primary-hover);
}

.blog-card-link::after {
    content: ' \2192';
}

/* ========================================
   SEZIONE NEWSLETTER
   ======================================== */

.section-newsletter {
    padding: var(--space-3xl) 0;
    background-color: rgba(191, 155, 90, 0.1);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    font-style: italic;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.newsletter-text {
    font-size: var(--text-lg);
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

/* Inline form */
.newsletter-form-inline {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(191, 155, 90, 0.15);
}

.newsletter-input::placeholder {
    color: var(--color-text-light);
    opacity: 0.7;
}

.newsletter-form-inline .btn-gold {
    white-space: nowrap;
    flex-shrink: 0;
}
