/*
Theme Name: Proteina Creativa Theme v2
Theme URI: https://proteinacreativa.com
Author: Antigravity
Author URI: https://google.deepmind.com
Description: A custom theme for Proteina Creativa (v2 with Quotes), focusing on professionalism, attention to detail, and freshness.
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: agency, creative, clean, modern, responsive
Text Domain: proteina-creativa
*/

:root {
    /* Brand Colors */
    --color-web: #007bff;
    --color-adv: #fd7e14;
    --color-mkt: #28a745;
    --color-cid: #dc3545;
    --color-gde: #6f42c1;
    --color-vid: #17a2b8;
    --color-cod: #ffc107;
    --color-seo: #6c757d;

    /* Dark Mode Variables */
    --color-dark: #ffffff;
    --color-light: #121212;
    --color-grey: #1e1e1e;

    /* Typography */
    --font-primary: 'Michroma', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* Reset & Basics */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-secondary);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-top: 0;
}

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

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

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

/* Header */
.site-header {
    background-color: rgba(18, 18, 18, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 50px;
}

/* Tab-style Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.main-navigation a {
    display: block;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    background-color: transparent;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover {
    color: var(--color-dark);
    background-color: rgba(255, 255, 255, 0.05);
}

.main-navigation li.current-menu-item a,
.main-navigation a.active {
    color: var(--color-web);
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid var(--color-web);
}

/* Responsive Menu */
.menu-toggle {
    display: none;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0 15px;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(18, 18, 18, 0.98);
        padding: 20px 0;
        gap: 0;
        border-top: 1px solid #333;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation a {
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 15px 20px;
        text-align: center;
    }

    .header-inner {
        flex-wrap: wrap;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #121212;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

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

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1,
.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content .highlight {
    color: var(--color-web);
}

.hero-content p {
    font-size: 1.25rem;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--color-dark);
    color: var(--color-light);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--color-web);
    color: var(--color-light);
}

/* Page Hero Enhanced */
.page-hero {
    padding: 180px 0 100px;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000000 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-bg-accent {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.big-title {
    font-size: 5rem;
    background: -webkit-linear-gradient(45deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.hero-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-web), transparent);
    margin: 0 auto 40px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

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

.service-card {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 4px solid transparent;
}

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

.service-card.web {
    border-color: var(--color-web);
}

.service-card.adv {
    border-color: var(--color-adv);
}

.service-card.mkt {
    border-color: var(--color-mkt);
}

.service-card.cid {
    border-color: var(--color-cid);
}

.service-card.gde {
    border-color: var(--color-gde);
}

.service-card.vid {
    border-color: var(--color-vid);
}

.service-card.cod {
    border-color: var(--color-cod);
}

.service-card.seo {
    border-color: var(--color-seo);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: #2c2c2c;
}

.service-card.web .service-icon {
    color: var(--color-web);
    background: rgba(0, 123, 255, 0.1);
}

.service-card.adv .service-icon {
    color: var(--color-adv);
    background: rgba(253, 126, 20, 0.1);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* About / Chi Siamo Section & Page */
.section-about-intro {
    padding: 0;
}

.content-grid-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: flex-start;
    padding: 120px 0;
    position: relative;
}

.content-grid-split::after {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: 55%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #333, transparent);
}

.section-heading {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 30px;
}

.lead-text {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.8;
}

.secondary-text p {
    color: #bbb;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.9;
}

/* Philosophy Section */
.section-philosophy {
    padding: 80px 0;
    background-color: var(--color-grey);
}

.section-philosophy.premium-bg {
    background: linear-gradient(180deg, #121212 0%, #1a1a1a 100%);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

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

.value-card {
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.icon-wrapper {
    font-size: 2.5rem;
    color: var(--color-web);
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.value-card p {
    color: #aaa;
}

/* Home Philosophy Grid (Restored) */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

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

/* Scoped Images for Philosophy/About items only */
.philosophy-item img {
    width: 100%;
    max-width: 280px;
    /* FIXED: Constrain width to prevent huge images */
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 20px;
    /* Center image */
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.philosophy-item:hover img {
    filter: grayscale(0%);
}

/* --- Services Page Styles (Premium List) --- */
.section-services-list {
    padding: 100px 0;
}

.service-row {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
    align-items: flex-start;
    padding: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-row:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
}

.service-icon-col {
    flex: 0 0 100px;
}

.big-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #222, #000);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-web);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.service-content p {
    color: #bbb;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.service-features li {
    color: #ddd;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: var(--color-mkt);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .service-row {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }

    .service-icon-col {
        margin: 0 auto;
    }
}


/* Portfolio Zig-Zag */
.section-portfolio {
    padding: 80px 0;
}

.portfolio-rows {
    padding: 20px 0;
}

.portfolio-row {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    gap: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.portfolio-row.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.row-reverse {
    flex-direction: row-reverse;
}

.portfolio-col-img {
    flex: 0 0 45%;
    max-width: 500px;
    position: relative;
}

.portfolio-col-text {
    flex: 1;
}

.img-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    filter: none;
    /* No filter as requested */
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

.cat-label {
    color: var(--color-web);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.portfolio-col-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.portfolio-col-text p {
    color: #bbb;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-text {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--color-web);
    padding-bottom: 5px;
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--color-web);
}

/* CTA */
.section-cta {
    padding: 100px 0;
    text-align: center;
}

.big-btn {
    padding: 20px 50px;
    font-size: 1.2rem;
}

/* Footer */
.site-footer {
    background-color: #000000;
    color: #aaa;
    padding: 60px 0 20px;
    border-top: 1px solid #333;
}

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

.footer-widget h4 {
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1e1e1e;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #333;
    width: 90%;
    max-width: 600px;
    color: #fff;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #fff;
}

.cv-form label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 600;
}

.cv-form input[type="text"],
.cv-form input[type="email"],
.cv-form textarea,
.cv-form input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background-color: #2c2c2c;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
}

.cv-form button[type="submit"] {
    background-color: var(--color-web);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.cv-form button[type="submit"]:hover {
    background-color: #0062cc;
    transform: translateY(-2px);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.4;
}

.form-checkbox input {
    width: 20px !important;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.intro-text {
    margin-bottom: 25px;
    color: #ddd;
    font-size: 0.95rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .content-grid-split {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 60px 0;
    }

    .content-grid-split::after {
        display: none;
    }

    .big-title {
        font-size: 3rem;
    }

    .portfolio-row,
    .row-reverse {
        flex-direction: column;
        margin-bottom: 80px;
        gap: 40px;
        transform: none;
        opacity: 1;
        /* Disable fade scroll on mobile for safety */
    }

    .portfolio-col-img {
        flex: auto;
        max-width: 100%;
    }

    .portfolio-col-text {
        color: #e0e0e0;
    }
}

/* Quotes Section (v2 Enhanced) */
.section-quote {
    padding: 100px 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    margin-bottom: 80px;

    /* Colorful Separator with Scrolling Animation */
    border-bottom: none;
    /* Removed static border */
}

/* Animated Gradient Line */
.section-quote::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    /* Thinner line */
    background: linear-gradient(90deg, #0090D0, #D6008D, #FFC600, #0090D0);
    /* Repeat first color for smooth loop */
    background-size: 200% 100%;
    animation: gradientScroll 3s linear infinite;
    z-index: 3;
}

@keyframes gradientScroll {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.section-quote blockquote {
    margin: 0;
    padding: 0;
    font-family: 'Playfair Display', serif;
    color: #fff;
    position: relative;
    z-index: 2;
}

.section-quote i {
    font-size: 2.5rem;
    color: var(--color-web);
    margin-bottom: 25px;
    opacity: 0.8;
}

.section-quote p {
    font-size: 2.2rem;
    font-style: italic;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto 25px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-quote cite {
    display: block;
    font-size: 1.1rem;
    color: #ccc;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-map .wp_mapit_multipin_map{
	height:170px !important;
	width:100% !important;
}
	
@media (max-width: 768px) {
    .section-quote {
        padding: 60px 20px;
    }

    .section-quote p {
        font-size: 1.5rem;
    }
}