/**
 * Page Templates Styles
 *
 * @package CaninCasa
 * @since 1.0.0
 */

/* ==========================================================================
   Base Page Styles
   ========================================================================== */

.page-content {
    max-width: 1280px;
    margin: 0 auto;
}

.page-content--full-width {
    max-width: 100%;
}

/* Fix lists overflow - ensure numbers/bullets stay inside box */
.page-content ol,
.page-content ul,
.blog-single__content-area ol,
.blog-single__content-area ul,
article ol,
article ul {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style-position: inside;
}

.page-content ol li,
.page-content ul li,
.blog-single__content-area ol li,
.blog-single__content-area ul li,
article ol li,
article ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.page-content ol,
.blog-single__content-area ol,
article ol {
    list-style-type: decimal;
}

.page-content ul,
.blog-single__content-area ul,
article ul {
    list-style-type: disc;
}

.page-header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.page-header--centered {
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.page-excerpt {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.page-featured-image {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.page-featured-image--large {
    margin-left: calc(-1 * var(--spacing-lg));
    margin-right: calc(-1 * var(--spacing-lg));
    border-radius: 0;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.page-entry-content--wide {
    max-width: 1000px;
    margin: 0 auto;
}

.page-entry-content > * + * {
    margin-top: var(--spacing-md);
}

.page-entry-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.page-entry-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.page-entry-content ul,
.page-entry-content ol {
    padding-left: var(--spacing-lg);
}

.page-entry-content li {
    margin-bottom: var(--spacing-sm);
}

.page-links {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Page Hero
   ========================================================================== */

.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: var(--spacing-3xl) 0;
    text-align: center;
    margin: 0;
    position: relative;
}

/* Breadcrumbs spacing after hero */
.page-hero + .container .breadcrumbs,
.page-hero + .breadcrumbs {
    margin-top: var(--spacing-lg);
}

.page-hero__content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-hero__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero__subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: white;
    opacity: 0.95;
    margin-top: var(--spacing-sm);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.page-hero__excerpt {
    font-size: 1.3rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contatti-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

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

.contatti-form-section {
    padding: var(--spacing-lg);
}

.contatti-info-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-info-card h3,
.social-media-card h3,
.faq-link-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-info-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-info-item .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info-item .info-content strong {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.contact-info-item .info-content a {
    color: var(--primary);
    text-decoration: none;
}

.contact-info-item .info-content a:hover {
    text-decoration: underline;
}

.contact-info-item .info-content p {
    margin: 0;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--background-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

.social-link .icon {
    font-size: 1.5rem;
}

.faq-link-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   About / Chi Siamo Page
   ========================================================================== */

.about-hero {
    position: relative;
    overflow: hidden;
}

.about-image-section {
    margin-bottom: var(--spacing-xl);
}

.about-featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.about-content-section {
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Values Section */
.about-values-section {
    margin: var(--spacing-3xl) 0;
    padding: var(--spacing-3xl) 0;
    background: var(--background-light);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-card__icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.value-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.value-card__description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stats Section */
.about-stats-section {
    margin: var(--spacing-3xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    color: white;
}

.stat-card__number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.stat-card__label {
    font-size: 1rem;
    opacity: 0.95;
}

/* CTA Section */
.about-cta-section {
    margin: var(--spacing-3xl) 0;
}

.cta-box {
    background: var(--background-light);
    padding: var(--spacing-3xl) var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .page-hero__title {
        font-size: 2rem;
    }

    .page-hero__excerpt {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Breadcrumbs Box - Annunci Single Pages
   ========================================================================== */

.breadcrumbs-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.breadcrumbs-box .breadcrumbs {
    margin: 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   Badge Styles for Annunci
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.badge-offerta {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-ricerca {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.badge-cucciolate {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge-dogsitter {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.badge-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.badge-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* Badge Lists */
.badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.badges-list .badge {
    margin: 0;
}

/* ==========================================================================
   Info Cards - Enhanced for All Data
   ========================================================================== */

.cucciolata-info-grid,
.dogsitter-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.info-card__icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.info-card__content {
    flex: 1;
    min-width: 0;
}

.info-card__label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

.info-card__value {
    font-size: 1.1rem;
    color: #111827;
    font-weight: 600;
    word-wrap: break-word;
}

.info-card__value a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-card__value a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.info-card--highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.info-card--highlight .info-card__value {
    color: #92400e;
    font-size: 1.35rem;
}

/* Dogsitter Sections */
.dogsitter-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.dogsitter-section h2 {
    font-size: 1.25rem;
    color: #111827;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Services List */
.servizi-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.servizi-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 0.95rem;
}

.servizi-list .checkmark {
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .cucciolata-info-grid,
    .dogsitter-info-grid {
        grid-template-columns: 1fr;
    }

    .badges-list {
        flex-direction: column;
    }

    .servizi-list {
        grid-template-columns: 1fr;
    }
}
