/* Font Face Declarations */
@font-face {
    font-family: 'Karla';
    src: url('../assets/fonts/Karla-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Karla';
    src: url('../assets/fonts/Karla-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Karla';
    src: url('../assets/fonts/Karla-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Karla';
    src: url('../assets/fonts/Karla-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Karla';
    src: url('../assets/fonts/Karla-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Sansita Swashed';
    src: url('../assets/fonts/SansitaSwashed-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Sansita Swashed';
    src: url('../assets/fonts/SansitaSwashed-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Reset e variabili */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #4228af;
    --light-purple: #7c5cdb;
    --yellow: #f6ad00;
    --red: #ff4545;
    --teal: #08ad9d;
    --dark-gray: #353534;
    --medium-gray: #666666;
    --light-gray: #cacaca;
    --beige: #FFF3E7;
    --white: #ffffff;
}

body {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    line-height: 1.3;
    color: var(--dark-gray);
}

/* Titoli - Karla ExtraBold */
h1, h2, h3 {
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

/* Paragrafi - Karla Medium/SemiBold */
p {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header e Navigazione */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    position: relative;
}

.logo img {
    height: 50px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: var(--dark-gray);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-family: 'Karla', sans-serif;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-purple);
}

.nav-cta {
    background: var(--yellow);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    color: var(--dark-gray) !important;
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-cta:hover {
    background: #e09d00;
    color: var(--dark-gray) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.65) 0%, rgba(66, 40, 175, 0.65) 50%, rgba(91, 33, 182, 0.65) 100%),
                url('../images/hero-section.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(66, 40, 175, 0.2);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

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

.hero-label {
    font-family: 'Karla', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.hero-title {
    font-family: 'Sansita Swashed', cursive;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-subtitle {
    font-family: 'Karla', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-description {
    font-family: 'Karla', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.3;
}

.highlight {
    color: var(--yellow);
}

.cta-button {
    display: inline-block;
    background: var(--yellow);
    color: var(--dark-gray);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 30px;
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #e09d00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(246, 173, 0, 0.3);
}

/* Sezione Chi Sono */
.about {
    padding: 5rem 0;
    background: var(--beige);
}

.about-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.about-text p {
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--dark-gray);
    margin: 0;
}

.about-text .btn-secondary {
    align-self: flex-start;
    padding: 0.75rem 1.8rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Karla', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.about-content p {
    font-family: 'Karla', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-image {
    text-align: center;
    margin: 3rem 0;
}

.about-image img {
    max-width: 400px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quote {
    background: var(--white);
    padding: 2rem;
    border-left: 4px solid var(--primary-purple);
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Sezione Servizi */
.services {
    padding: 5rem 0;
    background: var(--beige);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-card h3 {
    font-family: 'Karla', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.service-card p {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    flex-grow: 1;
}

.service-card .btn-secondary {
    margin-top: auto;
}

.btn-secondary {
    display: inline-block;
    background: var(--primary-purple);
    color: var(--white);
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--light-purple);
    transform: translateY(-2px);
}

/* Sezione In Evidenza */
.featured {
    padding: 5rem 0;
    background: var(--light-gray);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--dark-gray);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-family: 'Karla', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.article-card h3 {
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.2;
}

.article-card p {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    color: var(--medium-gray);
    line-height: 1.3;
}

/* Sezione Valori */
.values {
    padding: 5rem 0;
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.value-icon svg {
    width: 40px;
    height: 40px;
}

.value-card h3 {
    font-family: 'Karla', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.value-card p {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    color: var(--medium-gray);
    line-height: 1.3;
}

/* Sezione Contatti */
.contact {
    padding: 5rem 0;
    background: var(--primary-purple);
    color: var(--white);
}

.contact .section-header h2 {
    color: var(--white);
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 30px;
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    margin: 1.5rem 0;
}

.form-checkbox input {
    margin-right: 0.5rem;
    margin-top: 0.3rem;
}

.form-checkbox label {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
}

.form-checkbox a {
    color: var(--yellow);
    text-decoration: underline;
}

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

/* CTA Section alternativa */
.contact-cta {
    padding: 5rem 0;
    background: var(--primary-purple);
    color: var(--white);
    text-align: center;
}

.contact-cta h2 {
    font-family: 'Karla', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-cta p {
    font-family: 'Karla', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.3;
}

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

.cta-primary {
    background: var(--yellow);
    color: var(--dark-gray);
}

.cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-secondary:hover {
    background: var(--white);
    color: var(--primary-purple);
}

/* Footer */
.footer {
    background: var(--medium-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer .cta-button {
    color: var(--dark-gray);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    color: var(--yellow);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.2;
}

.footer-section p {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    line-height: 1.3;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--yellow);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--yellow);
}

.social-icon {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #999;
    line-height: 1.3;
}

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

.footer-info p {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #999;
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .services-grid,
    .articles-grid,
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 20px;
    }

    /* Navigation */
    .nav .container {
        flex-direction: row;
        padding: 1rem 20px;
    }

    .logo img {
        height: 40px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--white);
        flex-direction: column;
        gap: 2rem;
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.8rem 0;
        font-size: 1.1rem;
    }

    .nav-cta {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 0;
    }

    .hero-label {
        font-size: 1rem;
    }

    .hero-title {
        font-family: 'Sansita Swashed', cursive;
        font-size: 1.8rem;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }

    /* Sections */
    section {
        padding: 3rem 0 !important;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    /* About */
    .about-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-image-circle {
        width: 300px;
        height: 300px;
        border-radius: 50%;
    }

    .about-content p {
        font-size: 1rem;
    }

    /* Services, Articles, Values */
    .services-grid,
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .service-card,
    .article-card,
    .value-card {
        padding: 1.5rem;
    }

    .service-card h3,
    .value-card h3 {
        font-size: 1.3rem;
    }

    .article-card h3 {
        font-size: 1.2rem;
    }

    /* Contact Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
    }

    /* Contact CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .contact-cta h2 {
        font-size: 1.8rem;
    }

    .contact-cta p {
        font-size: 1.1rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

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

    .social-links {
        justify-content: center;
        flex-direction: column;
    }

    .btn-secondary {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }

    .about-text .btn-secondary {
        align-self: center;
    }
}

@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .logo img {
        height: 35px;
    }

    /* Hero */
    .hero {
        padding: 2.5rem 0;
    }

    .hero-label {
        font-size: 0.9rem;
    }

    .hero-title {
        font-family: 'Sansita Swashed', cursive;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        white-space: normal;
    }

    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.85rem;
    }

    /* Sections */
    section {
        padding: 2.5rem 0 !important;
    }

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

    .section-header h2 {
        font-size: 1.6rem;
    }

    /* Cards */
    .service-card,
    .value-card {
        padding: 1.2rem;
    }

    .service-icon,
    .value-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon svg,
    .value-icon svg {
        width: 30px;
        height: 30px;
    }

    /* Values Grid - 1 colonna su mobile piccoli */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .about-image-circle {
        width: 250px;
        height: 250px;
        border-radius: 50%;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    /* Form */
    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.9rem;
    }

    .form-checkbox label {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-bottom,
    .footer-info p {
        font-size: 0.85rem;
    }
}
