/*
Theme Name: Spazio29
Theme URI: https://spazio29.it
Author: Atlas Learning
Author URI: https://atlas-learning.it
Description: Tema custom per Spazio29 - spazi di lavoro a Moncalieri. Design moderno, ottimizzato SEO, CTA WhatsApp e Chiama ora.
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: spazio29
Tags: custom-theme, responsive, seo, coworking, business
*/

/* === Font custom === */
@font-face {
    font-family: 'Eurostile';
    src: url('assets/Eurostile.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Eurostile';
    src: url('assets/EurostileBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* === Reset & Variabili === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Eurostile', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #424343;
    background: #ffffff;
}

:root {
    --sp29-green: #85B931;
    --sp29-green-light: #A1D743;
    --sp29-green-dark: #7BB220;
    --sp29-green-olive: #8FBD02;
    --sp29-wa: #25d366;
    --sp29-wa-dark: #128c7e;
    --sp29-call: #222224;
    --sp29-call-dark: #000000;
    --sp29-dark: #222224;
    --sp29-gray: #979797;
    --sp29-light: #f6f6f6;
    --sp29-border: #eeeeee;
    --sp29-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --sp29-radius: 8px;
    --sp29-max-width: 1280px;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    line-height: 1.2;
    color: var(--sp29-green-dark);
    font-weight: bold;
}

h1.sp29-page-title,
.homegallery-text-title,
.title {
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 700;
}

a {
    color: var(--sp29-green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--sp29-green-dark);
}

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

/* === Header === */
.sp29-header {
    background: #fff;
    box-shadow: var(--sp29-shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}

.sp29-header-inner {
    max-width: var(--sp29-max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.sp29-logo img {
    max-height: 58px;
    width: auto;
    display: block;
}

.sp29-logo a {
    display: inline-block;
    text-decoration: none;
}

.sp29-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
    flex-wrap: wrap;
}

.sp29-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--sp29-dark);
    font-weight: 500;
    border-radius: var(--sp29-radius);
    transition: 0.2s;
    text-decoration: none;
}

.sp29-nav a:hover,
.sp29-nav .current-menu-item a {
    background: var(--sp29-light);
    color: var(--sp29-green-dark);
}

.sp29-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--sp29-green);
    cursor: pointer;
}

/* === CTA Buttons === */
.sp29-ctas {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sp29-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    transition: 0.25s;
}

.sp29-cta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sp29-cta {
    border-radius: 25px;
    text-transform: uppercase;
    font-family: 'Eurostile', sans-serif;
    font-weight: bold;
}

.sp29-cta-wa {
    background: var(--sp29-green);
    box-shadow: 0 2px 8px rgba(133, 185, 49, 0.3);
}

.sp29-cta-wa:hover {
    background: var(--sp29-green-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.sp29-cta-call {
    background: var(--sp29-green);
    box-shadow: 0 2px 8px rgba(133, 185, 49, 0.3);
}

.sp29-cta-call:hover {
    background: var(--sp29-green-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* === Main Layout === */
.sp29-main {
    max-width: var(--sp29-max-width);
    margin: 0 auto;
    padding: 40px 24px;
    min-height: 60vh;
}

.sp29-page-title {
    font-size: 2.2rem;
    margin-bottom: 24px;
    color: var(--sp29-green-dark);
}

.sp29-content p,
.sp29-content ul,
.sp29-content ol,
.sp29-content blockquote {
    margin-bottom: 1.2em;
}

/* === Footer === */
.sp29-footer {
    background: var(--sp29-dark);
    color: #b0b8c4;
    padding: 56px 0 0;
    margin-top: 60px;
}

.sp29-footer-grid {
    max-width: var(--sp29-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.sp29-footer-logo {
    max-height: 110px;
    width: auto;
    margin-bottom: 16px;
}

.sp29-footer h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.sp29-footer a {
    color: #b0b8c4;
}

.sp29-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.sp29-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp29-footer li {
    margin-bottom: 8px;
}

.sp29-footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    line-height: 1.5;
}

.sp29-footer-contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sp29-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 48px;
    padding: 20px 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #7a8290;
}

.sp29-footer-bottom a {
    color: #7a8290;
}

/* === 404 === */
.sp29-404 {
    text-align: center;
    padding: 80px 24px;
}

.sp29-404 h1 {
    font-size: 4rem;
    margin-bottom: 0;
}

/* === Hero Slider (Homepage) === */
.sp29-hero {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.sp29-hero-slider {
    position: relative;
    width: 100%;
    height: 580px;
    overflow: hidden;
    background: #222;
}

.sp29-hero-slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

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

.sp29-hero-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.sp29-hero-image--mobile {
    display: none;
}

@media (max-width: 1024px) {
    .sp29-hero-image--desktop {
        display: none;
    }

    .sp29-hero-image--mobile {
        display: block;
    }

    .sp29-hero-desktop {
        display: none;
    }

    .sp29-hero-tablet {
        display: block;
    }

    .sp29-hero-tablet .sp29-hero-slider {
        height: 540px;
    }

    .hero-copy h2 {
        font-size: 1.8rem;
    }

    .hero-copy h3 {
        font-size: 1rem;
    }

    .hero-copy p {
        font-size: 0.95rem;
    }

    .sp29-hero-tablet .hero-slide-title {
        font-size: 1.8rem;
    }

    .sp29-hero-tablet .hero-slide-subtitle {
        font-size: 1rem;
    }

    .sp29-hero-tablet .hero-slide-description {
        font-size: 0.95rem;
    }

    .sp29-hero-tablet .hero-content h2 {
        font-size: 1.8rem;
    }

    .sp29-hero-tablet .hero-subtitle {
        font-size: 1rem;
    }

    .sp29-hero-tablet .hero-description {
        font-size: 0.95rem;
    }

    .sp29-hero-tablet .hero-title {
        font-size: 1.8rem;
    }

    .sp29-hero-tablet .hero-features span {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .sp29-hero-tablet .hero-button {
        padding: 10px 20px;
    }
}

.sp29-hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.sp29-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: var(--sp29-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.sp29-hero-text {
    max-width: 600px;
    color: #fff;
    padding: 24px;
    background: rgba(34, 34, 36, 0.72);
    border-left: 5px solid var(--sp29-green);
}

.sp29-hero-text h2 {
    color: #fff;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 2.4rem;
    margin-bottom: 16px;
    line-height: 1.15;
}

.sp29-hero-text p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 24px;
    color: #f0f0f0;
}

.sp29-cta-hero {
    display: inline-block;
    background: var(--sp29-green);
    color: #fff;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Eurostile', sans-serif;
    text-decoration: none;
    transition: 0.25s;
    box-shadow: 0 4px 14px rgba(133, 185, 49, 0.35);
}

.sp29-cta-hero:hover {
    background: var(--sp29-green-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.sp29-hero-page .sp29-hero-content {
    justify-content: center;
    text-align: center;
}

.sp29-hero-text-center {
    background: transparent;
    border-left: none;
    padding: 0;
}

.sp29-hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.sp29-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: 0.3s;
}

.sp29-hero-dot.is-active,
.sp29-hero-dot:hover {
    background: var(--sp29-green);
    border-color: var(--sp29-green);
}

/* Tablet hero with text slider (single image, scrolling copy) */
.sp29-hero-tablet .sp29-hero-slider {
    height: 560px;
}

.sp29-hero-tablet .sp29-hero-image {
    background-position: center center;
}

.sp29-hero-tablet .sp29-hero-overlay {
    background: rgba(0, 0, 0, 0.65);
}

.sp29-hero-tablet .sp29-hero-text {
    background: transparent;
    border-left: none;
    padding: 0;
    max-width: 900px;
}

.hero-copy {
    color: #fff;
    text-align: center;
    padding: 0 16px;
}

.hero-copy h2 {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.15;
}

.hero-copy h2 span {
    color: var(--sp29-green);
}

.hero-copy h3 {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-copy p {
    font-size: 1rem;
    line-height: 1.5;
    color: #f0f0f0;
    margin: 0 auto 16px;
    max-width: 720px;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 16px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    max-width: 720px;
}

.hero-features li {
    position: relative;
    padding-left: 18px;
    font-size: 0.95rem;
    color: #fff;
}

.hero-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sp29-green);
    font-weight: bold;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-benefits span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
}

.sp29-hero-tablet .sp29-cta-hero {
    margin-top: 8px;
}

/* Hero slide content used on tablet/mobile service page heroes */
.hero-slide-content {
    color: #fff;
    text-align: center;
    padding: 0 16px;
}

.hero-slide-eyebrow {
    display: inline-block;
    background: var(--sp29-green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 25px;
    margin-bottom: 12px;
}

.hero-slide-title {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.15;
}

.hero-slide-title span {
    color: var(--sp29-green);
}

.hero-slide-subtitle {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-slide-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #f0f0f0;
    margin: 0 auto 16px;
    max-width: 720px;
}

.hero-slide-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 16px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    max-width: 720px;
}

.hero-slide-features li {
    position: relative;
    padding-left: 18px;
    font-size: 0.95rem;
    color: #fff;
}

.hero-slide-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sp29-green);
    font-weight: bold;
}

.hero-slide-benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-slide-benefits span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
}

/* Hero content block used on Sale tablet/mobile hero */
.hero-content {
    color: #fff;
    text-align: center;
    padding: 0 16px;
}

.hero-content h2 {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.15;
}

.hero-content h2 span {
    color: var(--sp29-green);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #f0f0f0;
    margin: 0 auto 16px;
    max-width: 720px;
}

/* Domiciliazione tablet hero specific classes */
.hero-label {
    display: inline-block;
    background: var(--sp29-green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 25px;
    margin-bottom: 12px;
}

.hero-title {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.15;
}

.hero-title strong {
    display: block;
    color: var(--sp29-green);
    font-weight: inherit;
}

.hero-features span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
}

.hero-button {
    display: inline-block;
    background: var(--sp29-green);
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s;
}

.hero-button:hover {
    background: #fff;
    color: var(--sp29-green);
}

.sp29-main-home {
    padding-top: 0;
}

/* === Contact Form === */
.sp29-contact-section {
    background: var(--sp29-light);
    padding: 48px 24px;
    margin: 60px -24px -40px;
    border-top: 4px solid var(--sp29-green);
}

.sp29-contact-section h2 {
    max-width: var(--sp29-max-width);
    margin: 0 auto 24px;
    text-align: center;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 2rem;
    color: var(--sp29-green-dark);
}

.sp29-contact-form {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    padding: 32px;
    border-radius: var(--sp29-radius);
    box-shadow: var(--sp29-shadow);
}

.sp29-form-row {
    margin-bottom: 20px;
}

.sp29-form-row-half {
    display: inline-block;
    width: calc(50% - 10px);
    vertical-align: top;
}

.sp29-form-row-half + .sp29-form-row-half {
    margin-left: 20px;
}

.sp29-contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sp29-dark);
}

.sp29-contact-form input[type="text"],
.sp29-contact-form input[type="email"],
.sp29-contact-form input[type="tel"],
.sp29-contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--sp29-border);
    border-radius: var(--sp29-radius);
    font-family: 'Eurostile', system-ui, sans-serif;
    font-size: 1rem;
    color: var(--sp29-dark);
    background: #fff;
    transition: 0.2s;
}

.sp29-contact-form input:focus,
.sp29-contact-form textarea:focus {
    outline: none;
    border-color: var(--sp29-green);
    box-shadow: 0 0 0 3px rgba(133, 185, 49, 0.15);
}

.sp29-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.sp29-form-message {
    max-width: 720px;
    margin: 0 auto 20px;
    padding: 14px 20px;
    border-radius: var(--sp29-radius);
    text-align: center;
    font-weight: 600;
}

.sp29-form-success {
    background: #e8f5d6;
    color: #4a6a1c;
    border: 1px solid #b8d99a;
}

.sp29-form-error {
    background: #fff0f0;
    color: #a33;
    border: 1px solid #f5c2c2;
}

/* === Responsive === */
@media (max-width: 960px) {
    .sp29-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .sp29-menu-toggle {
        display: block;
    }

    .sp29-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .sp29-nav.active {
        display: block;
    }

    .sp29-nav ul {
        flex-direction: column;
        gap: 0;
        padding-top: 12px;
    }

    .sp29-nav a {
        border-bottom: 1px solid var(--sp29-border);
        padding: 12px 0;
    }

    .sp29-cta-label {
        display: none;
    }

    .sp29-form-row-half {
        width: 100%;
        margin-left: 0 !important;
    }

    .sp29-hero-slider {
        height: 460px;
    }

    .sp29-hero-text {
        max-width: 100%;
        padding: 20px;
    }

    .sp29-hero-text h2 {
        font-size: 1.7rem;
    }

    .sp29-hero-text p {
        font-size: 1rem;
    }

    .sp29-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sp29-hero-tablet .sp29-hero-slider {
        height: 600px;
    }

    .sp29-hero-tablet .hero-copy h2 {
        font-size: 1.5rem;
    }

    .sp29-hero-tablet .hero-copy h3 {
        font-size: 0.95rem;
    }

    .sp29-hero-tablet .hero-copy p,
    .sp29-hero-tablet .hero-features li {
        font-size: 0.9rem;
    }

    .sp29-hero-tablet .hero-benefits span {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .sp29-hero-tablet .hero-slide-title {
        font-size: 1.5rem;
    }

    .sp29-hero-tablet .hero-slide-subtitle {
        font-size: 0.95rem;
    }

    .sp29-hero-tablet .hero-slide-description,
    .sp29-hero-tablet .hero-slide-features li {
        font-size: 0.9rem;
    }

    .sp29-hero-tablet .hero-slide-benefits span {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .sp29-hero-tablet .hero-content h2 {
        font-size: 1.5rem;
    }

    .sp29-hero-tablet .hero-subtitle {
        font-size: 0.95rem;
    }

    .sp29-hero-tablet .hero-description {
        font-size: 0.9rem;
    }

    .sp29-hero-tablet .hero-title {
        font-size: 1.5rem;
    }

    .sp29-hero-tablet .hero-features span {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .sp29-hero-tablet .hero-button {
        padding: 10px 18px;
    }
}

@media (max-width: 480px) {
    .sp29-hero-slider {
        height: 420px;
    }

    .sp29-hero-text h2 {
        font-size: 1.4rem;
    }

    .sp29-hero-tablet .sp29-hero-slider {
        height: 640px;
    }

    .sp29-hero-tablet .hero-copy h2 {
        font-size: 1.25rem;
    }

    .sp29-hero-tablet .hero-copy h3 {
        font-size: 0.85rem;
    }

    .sp29-hero-tablet .hero-copy p,
    .sp29-hero-tablet .hero-features li {
        font-size: 0.85rem;
    }

    .sp29-hero-tablet .hero-benefits span {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .sp29-hero-tablet .hero-slide-title {
        font-size: 1.25rem;
    }

    .sp29-hero-tablet .hero-slide-subtitle {
        font-size: 0.85rem;
    }

    .sp29-hero-tablet .hero-slide-description,
    .sp29-hero-tablet .hero-slide-features li {
        font-size: 0.85rem;
    }

    .sp29-hero-tablet .hero-slide-benefits span {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .sp29-hero-tablet .hero-content h2 {
        font-size: 1.25rem;
    }

    .sp29-hero-tablet .hero-subtitle {
        font-size: 0.85rem;
    }

    .sp29-hero-tablet .hero-description {
        font-size: 0.85rem;
    }

    .sp29-hero-tablet .hero-title {
        font-size: 1.25rem;
    }

    .sp29-hero-tablet .hero-features span {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .sp29-hero-tablet .hero-button {
        padding: 8px 16px;
    }
}

@media (min-width: 1025px) {
    .sp29-hero-tablet {
        display: none;
    }
}
