/* 
   A Formiga s.n.c - Soft UI Evolution
   Aesthetic: Premium, Clean, Fresh, Modern.
*/

:root {
    /* Colors - Soft UI Palette */
    --bg-base: #F8FAFC;       /* Slate 50 */
    --bg-soft: #F1F5F9;       /* Slate 100 */
    --bg-white: #FFFFFF;
    
    --primary: #0284C7;       /* Sky Blue 600 - Trust, Water, Clean */
    --primary-light: #E0F2FE; /* Sky Blue 100 */
    --primary-dark: #0369A1;  /* Sky Blue 700 */
    
    --accent: #0369A1;        /* Sky Blue 700 - Replaces Emerald for unified blue theme */
    --accent-light: #E0F2FE;  /* Sky Blue 100 */
    
    --text-main: #0F172A;     /* Slate 900 */
    --text-muted: #475569;    /* Slate 600 */
    --text-white: #FFFFFF;
    
    /* Typography */
    --font-main: 'Satoshi', sans-serif;
    
    /* Effects */
    --shadow-soft: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 30px 60px -15px rgba(2, 132, 199, 0.15);
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Transitions */
    --trans-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-smooth);
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-white { color: var(--text-white); }
.text-center { text-align: center; }

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.bg-soft { background-color: var(--bg-soft); }
.bg-primary { background-color: var(--primary); }
.bg-accent { background-color: var(--accent); }

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.soft-shadow {
    box-shadow: var(--shadow-soft);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.overflow-hidden {
    overflow: hidden;
}

.mt-4 { margin-top: 1.5rem; }
.mt-large { margin-top: 3rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: var(--trans-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(2, 132, 199, 0.5);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* Premium Floating Pill Navbar */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 1rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    pointer-events: none; /* Let clicks pass through outer container */
}

.nav.scrolled {
    padding: 1rem 1rem;
}

.nav-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: auto; /* Re-enable clicks */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled .nav-container {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.1);
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.nav.scrolled .nav-brand {
    color: var(--text-main);
}

.brand-icon {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav.scrolled .nav-item {
    color: var(--text-muted);
}

.nav-item:hover {
    color: var(--text-white);
}

.nav.scrolled .nav-item:hover {
    color: var(--primary);
}

/* Premium underline animation on hover */
.nav-item:not(.btn-contact)::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-item:not(.btn-contact):hover::after {
    width: 16px;
}

.btn-contact {
    background-color: var(--primary);
    color: var(--text-white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
    margin-left: 0.5rem;
}

.btn-contact:hover {
    background-color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.25);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-white);
    cursor: pointer;
    transition: color 0.3s ease;
    padding-right: 0.5rem;
}

.nav.scrolled .menu-toggle {
    color: var(--text-main);
}

/* Mobile Menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 2000;
    padding: 1.5rem;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.menu-overlay.active {
    transform: translateY(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.menu-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-main);
    cursor: pointer;
}

.menu-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.menu-content a {
    font-size: 1.5rem;
    font-weight: 700;
}

.mobile-cta {
    background-color: var(--primary);
    color: var(--text-white) !important;
    padding: 1rem 2rem;
    border-radius: 99px;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.9));
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--accent-light);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    justify-content: center;
}

.avatars {
    display: flex;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--bg-base);
    margin-left: -15px;
}

.avatar:first-child {
    margin-left: 0;
}

.trust-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.hero-img-wrapper {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    position: relative;
    aspect-ratio: 4/5;
}

.floating-badge {
    position: absolute;
    background-color: var(--bg-white);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-hover);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
}

.floating-badge i {
    font-size: 1.25rem;
}

.top-right {
    top: 2rem;
    right: -2rem;
    color: var(--primary);
}

.bottom-left {
    bottom: 3rem;
    left: -2rem;
    color: var(--accent);
}

/* About Section */
.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-heading {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.about-image-col {
    position: relative;
}

.about-image-col .image-wrapper {
    aspect-ratio: 1/1;
}

.experience-card {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 250px;
    z-index: 10;
}

.exp-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.exp-text {
    color: var(--text-muted);
    font-weight: 500;
}

.large-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary-light);
}

.premium-list {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
}

.premium-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.premium-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 700;
}

.premium-list strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
    font-weight: 700;
}

/* Modern Bento Grid */
.bento-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 3rem auto 0;
    max-width: 1200px;
}

@media (min-width: 768px) {
    .bento-grid-modern {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bento-modern-card {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-color: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bento-modern-card.col-span-2 {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .bento-modern-card.col-span-2 {
        grid-column: span 2;
    }
}

.bento-modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

.bento-modern-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-image: radial-gradient(circle at center, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 8px 8px;
    z-index: 1;
}

.bento-modern-card:hover .bento-modern-bg {
    opacity: 1;
}

.bento-modern-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: var(--radius-xl);
    background: linear-gradient(to bottom right, transparent, rgba(0,0,0,0.02), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bento-modern-card:hover::after {
    opacity: 1;
}

.bento-modern-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1.5rem;
}

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

.bento-modern-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.03);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.bento-modern-card:hover .bento-modern-icon {
    background-color: rgba(0,0,0,0.06);
    transform: scale(1.05);
}

.bento-modern-icon.text-primary { color: var(--primary); }

.bento-modern-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background-color: rgba(0,0,0,0.03);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.bento-modern-card:hover .bento-modern-status {
    background-color: rgba(0,0,0,0.06);
    color: var(--text-main);
}

.bento-modern-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bento-modern-text h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    letter-spacing: -0.01em;
}

.bento-modern-text h3 span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.bento-modern-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.bento-modern-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.bento-modern-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bento-modern-tags span {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    background-color: rgba(0,0,0,0.03);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.bento-modern-card:hover .bento-modern-tags span {
    background-color: rgba(0,0,0,0.06);
}

.bento-modern-cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.bento-modern-card:hover .bento-modern-cta {
    opacity: 1;
    transform: translateX(0);
    color: var(--text-main);
}

/* Method Section */
.method {
    padding-top: 140px;
    padding-bottom: 140px;
}

.method-text-col {
    padding-right: 2rem;
}

.notice-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    border-left: 4px solid var(--accent);
}

.notice-icon {
    font-size: 2rem;
    color: var(--accent);
}

.method-steps {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    position: relative;
    padding-left: 3rem;
}

.method-steps::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--bg-soft);
    border-radius: 4px;
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 4px;
    height: 0%;
    z-index: 1;
    transition: height 0.1s ease-out;
}

.step-card {
    position: relative;
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0,0,0,0.03);
    z-index: 2;
}

.step-card:hover {
    transform: translateX(10px) translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(2, 132, 199, 0.1);
}

.step-card::before {
    content: '';
    position: absolute;
    left: calc(-3rem + 2px);
    top: 3.5rem;
    transform: translateY(-50%) translateX(-50%);
    width: 14px;
    height: 14px;
    background-color: var(--bg-soft);
    border: 2px solid var(--bg-white);
    border-radius: 50%;
    z-index: 3;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card.is-active::before {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 6px rgba(2, 132, 199, 0.15);
    transform: translateY(-50%) translateX(-50%) scale(1.1);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-light);
    line-height: 0.8;
    margin-top: 0.5rem;
    transition: var(--trans-smooth);
}

.step-card:hover .step-number, .step-card.is-active .step-number {
    color: var(--primary-light);
    -webkit-text-stroke: 0px;
}

.step-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    transition: var(--trans-smooth);
}

.step-card.is-active h3 {
    color: var(--primary);
}

.step-info p {
    color: var(--text-muted);
}

/* Reviews Dark Theme */
.reviews-dark {
    background-color: #09090b;
    color: #ffffff;
    padding-top: 100px;
    padding-bottom: 100px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.reviews-tag {
    font-family: monospace;
    font-size: 0.875rem;
    color: #71717a;
    display: block;
    margin-bottom: 1rem;
}

.reviews-heading {
    font-size: 3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
}

.reviews-arrows {
    display: flex;
    gap: 1rem;
}

.arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #27272a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.arrow-btn:hover {
    background: #18181b;
    border-color: #3f3f46;
}

.reviews-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    padding-bottom: 2rem;
}

.reviews-grid {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.review-box {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
}

.dark-card {
    background-color: #18181b;
    border: 1px solid #27272a;
    padding: 2.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dark-card .quote {
    font-size: 1.25rem;
    font-style: normal;
    color: #e4e4e7;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.author-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.author-details strong {
    display: block;
    color: #f4f4f5;
    font-size: 1rem;
    font-weight: 600;
}

.author-details span {
    font-size: 0.875rem;
    color: #a1a1aa;
}

@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .reviews-heading {
        font-size: 2rem;
    }
}

.google-badge-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--bg-white);
    padding: 1rem 2rem;
    border-radius: 99px;
}

.google-badge img {
    width: 24px;
    height: 24px;
}

/* Contact */
.grid-2-col-no-gap {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-info-panel {
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

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

.contact-info-panel h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.circle-pattern {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    z-index: 1;
}

.contact-form-panel {
    padding: 4rem;
    background-color: var(--bg-white);
}

.modern-form .form-group {
    margin-bottom: 1.5rem;
}

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

.modern-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-main);
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-soft);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--trans-smooth);
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    background-color: var(--bg-white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    display: none;
}

/* Footer */
.bg-dark {
    background-color: #0B1120;
    color: #94A3B8;
}

.footer {
    padding: 5rem 0 2rem;
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.links-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-2-col, .grid-2-col-no-gap {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero {
        padding-top: 140px;
    }
    
    .floating-badge {
        display: none; /* Hide floating elements on smaller screens to prevent overflow */
    }
    
    .experience-card {
        right: 0;
        bottom: 0;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .bento-large {
        grid-column: 1;
        grid-row: 1;
        min-height: 400px;
    }
    
    .bento-card {
        min-height: 250px;
    }
    
    .reviews-grid {
        /* No longer grid, it's flex */
    }
    
    .review-box {
        flex: 0 0 calc(50% - 0.75rem); /* 2 items visible */
    }
    
    .grid-3-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .review-box {
        flex: 0 0 100%; /* 1 item visible */
    }
    .nav-links, .btn-contact {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .contact-info-panel, .contact-form-panel {
        padding: 2rem;
    }
    
    .modern-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Premium Glass Bento Grid */
.premium-bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .premium-bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 250px;
    }
    
    .pb-col-2 { grid-column: span 2; }
    .pb-row-2 { grid-row: span 2; }
}

.premium-bento-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--trans-smooth);
    min-height: 300px;
}

@media (min-width: 768px) {
    .premium-bento-card {
        min-height: auto;
    }
}

.premium-bento-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.pb-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15,23,42,0) 0%, rgba(15,23,42,0.3) 50%, rgba(15,23,42,0.9) 100%);
    z-index: 1;
    transition: var(--trans-smooth);
}

.premium-bento-card:hover .pb-gradient-overlay {
    background: linear-gradient(to bottom, rgba(15,23,42,0) 0%, rgba(15,23,42,0.5) 40%, rgba(15,23,42,0.95) 100%);
}

.pb-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    width: 100%;
}

.pb-glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transform: translateY(20px);
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-bento-card:hover .pb-glass-panel {
    transform: translateY(0);
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.pb-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.pb-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.pb-glass-panel h3 {
    color: var(--text-white);
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.pb-row-2 .pb-glass-panel h3 {
    font-size: 1.5rem;
}

.pb-glass-panel p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--trans-smooth);
}

.premium-bento-card:hover .pb-glass-panel p {
    -webkit-line-clamp: 4;
}

.pb-action {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.premium-bento-card:hover .pb-action {
    opacity: 1;
    transform: translateY(0);
}

.pb-action i {
    transition: transform 0.3s ease;
}

.pb-action:hover i {
    transform: translateX(5px);
}

/* Editorial Contact Section */
.editorial-contact {
    padding: 8rem 0;
    background-color: var(--bg-white); /* seamless with page */
    border-top: 1px solid rgba(15, 23, 42, 0.05); /* very subtle separator */
}

.editorial-contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.editorial-center-content {
    max-width: 700px;
    margin: 0 auto;
}

.editorial-center-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.editorial-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.editorial-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.editorial-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.editorial-phone {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-main);
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    line-height: 1;
    margin-bottom: 4rem;
    transition: color 0.4s ease;
}

.editorial-phone:hover {
    color: var(--primary);
}

.editorial-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 700px;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    padding-top: 3rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .editorial-details {
        flex-direction: row;
        justify-content: center;
        gap: 5rem;
    }
}

.editorial-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.ed-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-muted);
}

.ed-value {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

a.ed-value:hover {
    color: var(--primary);
}

/* =========================================
   COMPREHENSIVE MOBILE RESPONSIVE (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
    /* Prevent double tap zoom */
    a, button, input, select, textarea {
        touch-action: manipulation;
    }

    /* 1. Navbar (handled by existing query above, but ensuring overrides) */
    .nav-links, .btn-contact {
        display: none;
    }
    .menu-toggle {
        display: block;
    }

    /* 2. Hero */
    .hero {
        padding: 120px 16px 40px 16px;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.15;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* 3 & 4. Sezioni a 2 e 3 colonne, Bento Grid */
    .grid-2-col,
    .grid-2-col-no-gap,
    .grid-3-col,
    .bento-grid,
    .footer-grid,
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .bento-card, .premium-bento-card {
        grid-column: span 1;
        width: 100%;
    }

    /* Bento Grid Tweaks for Mobile */
    .pb-gradient-overlay {
        background: linear-gradient(to bottom, rgba(15,23,42,0) 50%, rgba(15,23,42,0.3) 80%, rgba(15,23,42,0.9) 100%);
    }
    .pb-content {
        padding: 1rem 1rem 0.5rem 1rem;
    }

    /* 5. Timeline orizzontale / Method section */
    .method-steps {
        padding-left: 20px; /* Ridotto il padding sinistro su mobile */
    }
    .step-card {
        padding: 1.5rem;
    }
    .notice-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    /* 6. Recensioni - scroll orizzontale controllato nativo */
    .reviews-arrows {
        display: none; /* Disabilitiamo le frecce su mobile, usiamo lo swipe */
    }
    .reviews-carousel-wrapper {
        overflow: visible;
        padding-bottom: 1rem;
    }
    .reviews-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        
        /* OVERRIDE DEL JS: Disabilitiamo lo slider JS su mobile in favore dello scroll nativo */
        transform: none !important;
    }
    .reviews-grid::-webkit-scrollbar {
        display: none;
    }
    .review-box, .dark-card {
        flex: 0 0 85%;
        max-width: 320px;
        scroll-snap-align: center;
        width: auto;
    }
    /* FIX OPACITY BUG: Gli elementi in scroll orizzontale non venivano rivelati dal JS */
    .reviews-grid .review-box,
    .reviews-grid .dark-card,
    .reviews-grid .reveal-element {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* 7. Form contatti */
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    input, textarea, select {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* Previene lo zoom su iOS */
    }
    .modern-form .form-group {
        width: 100%;
    }

    /* 8. Immagini */
    img {
        max-width: 100%;
        height: auto;
    }

    /* 9. Padding sezioni */
    .section {
        padding: 60px 16px;
    }
    .method {
        padding: 60px 16px;
    }

    /* 10. Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 2rem;
    }
    .footer-brand {
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Touch targets */
    .btn, button, .nav-item, .pb-action {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hero Badges e Stats */
    .hero-trust {
        flex-direction: column;
        gap: 1rem;
    }

    /* Editorial Contact tweaks for mobile */
    .editorial-contact {
        padding: 4rem 16px;
    }
    .editorial-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .editorial-phone {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
}
