/* CSS Custom Properties */
:root {
    --primary-color: 214 88% 52%; /* #1976D2 */
    --primary-dark: 214 88% 42%; /* #1565C0 */
    --success-color: 122 39% 49%; /* #4CAF50 */
    --warning-color: 45 100% 50%; /* #FF9800 */
    --error-color: 4 90% 58%; /* #F44336 */
    --background: 210 11% 98%; /* #F5F7FA */
    --surface: 0 0% 100%; /* #FFFFFF */
    --text-primary: 210 11% 15%; /* #263238 */
    --text-secondary: 210 7% 46%; /* #6B7280 */
    --border-color: 210 16% 93%; /* #E5E7EB */
    --shadow: 210 40% 8% / 0.1; /* rgba(0, 0, 0, 0.1) */
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background));
}

/* Link Styles */
a {
    color: hsl(var(--primary-color));
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: hsl(var(--primary-dark));
    text-decoration: underline;
}

a:visited {
    color: hsl(var(--primary-color));
}

a:focus {
    outline: 2px solid hsl(var(--primary-color));
    outline-offset: 2px;
}

.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: hsl(var(--surface));
    box-shadow: 0 2px 10px hsla(var(--shadow));
    position: sticky;
    top: 0;
    z-index: 101;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 95%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    }

.logo-image {
    width: 40px;
    height: 40px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--text-primary));
}

.nav {
    display: flex;
    align-items: center;
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: hsl(var(--text-primary));
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: hsl(var(--text-secondary));
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--primary-color));
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: hsl(var(--primary-color));
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.nav-menu-close {
    display: none;
}

/* Hero Section */
.hero {
    padding: 4rem 0 1rem 0;
    text-align: center;
}

.intro-text-with-toggle {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.info-toggle-btn {
    background: transparent;
    border: none;
    color: hsl(var(--primary-color));
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    transition: var(--transition);
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-toggle-btn:hover {
    color: hsl(var(--primary-dark));
    transform: scale(1.1);
}

.info-toggle-btn.active {
    color: hsl(var(--primary-dark));
    transform: rotate(180deg);
}

.info-toggle-btn i {
    transition: var(--transition);
}

.expandable-content {
    background: hsl(var(--surface));
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 15px hsla(var(--shadow));
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expandable-content h2 {
    color: hsl(var(--text-primary));
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.expandable-content h2:first-child {
    margin-top: 0;
}

.expandable-content h3 {
    color: hsl(var(--text-primary));
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.expandable-content p {
    color: hsl(var(--text-secondary));
    line-height: 1.6;
    margin-bottom: 1rem;
}

.expandable-content ul {
    color: hsl(var(--text-secondary));
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.expandable-content ul li {
    margin-bottom: 0.5rem;
}

.expandable-content ul li strong {
    color: hsl(var(--text-primary));
}

.expandable-content a {
    color: hsl(var(--primary-color));
    text-decoration: none;
    transition: var(--transition);
}

.expandable-content a:hover {
    color: hsl(var(--primary-dark));
    text-decoration: underline;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.hero-content p {
    font-size: 1.1rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 1rem;
    max-width: 100%;
    text-align: left;
    /* [disabled]align-content: flex-start; */
}

/* Audit Features */
.audit-features {
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px hsla(var(--shadow));
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    box-shadow: 0 8px 25px hsla(var(--shadow));
}

.feature-item i {
    font-size: 2.5rem;
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--text-primary));
}

.feature-item p {
    color: hsl(var(--text-secondary));
    font-size: 0.95rem;
}

/* Benefits Section */
.benefits-section {
    padding: 4rem 0;
    background: hsl(var(--surface));
    margin-top: 4rem;
}

.benefits-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: hsl(var(--text-primary));
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
}

.benefit-item i {
    font-size: 2.5rem;
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--text-primary));
}

.benefit-item p {
    color: hsl(var(--text-secondary));
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-container {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px hsla(var(--shadow));
}

.contact-form-container h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: hsl(var(--text-primary));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form-container h3 i {
    color: hsl(var(--primary-color));
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: hsl(var(--text-primary));
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid hsl(var(--border-color));
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px hsla(var(--primary-color) / 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

    .checkbox-label a {
        color: hsl(var(--primary-color));
        text-decoration: none;
    }

    .checkbox-label a:hover {
        text-decoration: underline;
    }

    @media (max-width: 768px) {
        .checkbox-label {
            font-size: 0.85rem;
            gap: 0.4rem;
        }
    }

    @media (max-width: 480px) {
        .checkbox-label {
            font-size: 0.8rem;
            line-height: 1.4;
        }
    }

/* Contact Info */
.contact-info {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px hsla(var(--shadow));
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: hsl(var(--text-primary));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info h3 i {
    color: hsl(var(--primary-color));
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid hsl(var(--border-color));
}

.contact-item:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: hsl(var(--primary-color) / 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
    color: hsl(var(--primary-color));
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--text-primary));
}

.contact-details p {
    color: hsl(var(--text-secondary));
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* Contact Image */
.contact-image {
    margin: 2rem 0;
    text-align: center;
}

.contact-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px hsla(var(--shadow));
}

/* Social Media */
.social-media {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border-color));
}

.social-media h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: hsl(var(--primary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: hsl(var(--primary-dark));
    }

.social-link i {
    font-size: 1.2rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: hsl(var(--background));
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: hsl(var(--text-primary));
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: hsl(var(--surface));
    border-radius: var(--radius);
    box-shadow: 0 2px 4px hsla(var(--shadow));
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: hsl(var(--background));
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin: 0;
}

.faq-question i {
    color: hsl(var(--primary-color));
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: hsl(var(--text-secondary));
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
}

/* Audit Form */
.audit-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group input {
    flex: 1;
    padding: 1rem;
    border: 2px solid hsl(var(--border-color));
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px hsla(var(--primary-color) / 0.1);
}

.btn-primary {
    background: hsl(var(--primary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary:hover {
    background: hsl(var(--primary-dark));
    }

.btn-white-text {
    color: white !important;
}

.btn-white-text i {
    color: white !important;
}

.cta-subtitle {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    font-weight: 500;
    text-align: center;
}

.btn-secondary {
    background: hsl(var(--surface));
    color: hsl(var(--text-primary));
    border: 2px solid hsl(var(--border-color));
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: hsl(var(--primary-color));
    color: hsl(var(--primary-color));
}

.url-validation-message {
    text-align: left;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.url-validation-message.error {
    color: hsl(var(--error-color));
}

.url-validation-message.success {
    color: hsl(var(--success-color));
}

/* Loading Section */
.loading-section {
    padding: 4rem 0;
    text-align: center;
}

.loading-content h3 {
    margin: 2rem 0;
    font-size: 1.5rem;
    color: hsl(var(--text-primary));
}

.loading-spinner i {
    font-size: 3rem;
    color: hsl(var(--primary-color));
}

.loading-steps {
    max-width: 400px;
    margin: 2rem auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 0.5rem 0;
    background: hsl(var(--surface));
    border-radius: var(--radius);
    box-shadow: 0 2px 5px hsla(var(--shadow));
}

.step.active i {
    color: hsl(var(--primary-color));
}

.step.completed i {
    color: hsl(var(--success-color));
}

.step.completed i::before {
    content: '\f058'; /* fa-check-circle */
}

/* Results Section */
.results-section {
    padding: 2rem 0 4rem;
}

.score-overview {
    margin-bottom: 3rem;
}

.score-card {
    background: hsl(var(--surface));
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 15px hsla(var(--shadow));
    display: flex;
    align-items: center;
    gap: 2rem;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: conic-gradient(hsl(var(--primary-color)) var(--score-percent, 0%), hsl(var(--border-color)) 0%);
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: hsl(var(--surface));
}

.score-number {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--text-primary));
    z-index: 1;
}

.score-label {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    z-index: 1;
}

.score-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--text-primary));
}

.score-details p {
    color: hsl(var(--text-secondary));
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metric-card {
    background: hsl(var(--surface));
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 10px hsla(var(--shadow));
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.metric-card:hover {
    box-shadow: 0 4px 20px hsla(var(--shadow));
}

.metric-icon {
    width: 50px;
    height: 50px;
    background: hsl(var(--primary-color) / 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon i {
    font-size: 1.5rem;
    color: hsl(var(--primary-color));
}

.metric-content h4 {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--text-primary));
}

.metric-unit {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    margin-left: 0.25rem;
}

/* Reports Container */
.reports-container {
    background: hsl(var(--surface));
    border-radius: var(--radius);
    box-shadow: 0 4px 15px hsla(var(--shadow));
    overflow: hidden;
}

.report-tabs {
    display: flex;
    border-bottom: 1px solid hsl(var(--border-color));
    background: hsl(var(--background));
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    color: hsl(var(--text-secondary));
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn.active {
    color: hsl(var(--primary-color));
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: hsl(var(--primary-color));
}

.tab-btn:hover:not(.active) {
    background: hsl(var(--border-color) / 0.5);
}

.tab-content {
    min-height: 400px;
}

.tab-panel {
    display: none;
    padding: 2rem;
}

.tab-panel.active {
    display: block;
}

.panel-header {
    margin-bottom: 2rem;
}

.panel-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: hsl(var(--text-primary));
}

/* Issues List */
.issues-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.issue-item {
    background: hsl(var(--background));
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 4px solid;
}

.issue-item.critical {
    border-left-color: hsl(var(--error-color));
}

.issue-item.warning {
    border-left-color: hsl(var(--warning-color));
}

.issue-item.info {
    border-left-color: hsl(var(--primary-color));
}

.issue-item.success {
    border-left-color: hsl(var(--success-color));
}

.issue-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.issue-title {
    font-weight: 600;
    color: hsl(var(--text-primary));
}

.issue-description {
    color: hsl(var(--text-secondary));
    margin-bottom: 1rem;
}

.issue-solution {
    background: hsl(var(--surface));
    border-radius: var(--radius);
    padding: 1rem;
    border-left: 3px solid hsl(var(--success-color));
}

.solution-title {
    font-weight: 600;
    color: hsl(var(--success-color));
    margin-bottom: 0.5rem;
}

/* Performance Charts */
.performance-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

.vitals-grid {
    display: grid;
    gap: 1rem;
}

.vital-item {
    background: hsl(var(--background));
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}

.vital-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.vital-value.good {
    color: hsl(var(--success-color));
}

.vital-value.needs-improvement {
    color: hsl(var(--warning-color));
}

.vital-value.poor {
    color: hsl(var(--error-color));
}

.vital-label {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}

/* Keywords Content */
.keywords-content {
    display: grid;
    gap: 2rem;
}

.keyword-section {
    background: hsl(var(--background));
    border-radius: var(--radius);
    padding: 1.5rem;
}

.keyword-section h4 {
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
}

.keywords-list {
    display: grid;
    gap: 0.5rem;
}

.keyword-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: hsl(var(--surface));
    border-radius: var(--radius);
}

.keyword-term {
    font-weight: 600;
    color: hsl(var(--text-primary));
}

.keyword-density {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}

/* Technical Content */
.technical-content {
    display: grid;
    gap: 1.5rem;
}

.technical-section {
    background: hsl(var(--background));
    border-radius: var(--radius);
    padding: 1.5rem;
}

.technical-section h4 {
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: hsl(var(--surface));
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.status-label {
    color: hsl(var(--text-primary));
}

.status-value {
    font-weight: 600;
}

.status-value.pass {
    color: hsl(var(--success-color));
}

.status-value.fail {
    color: hsl(var(--error-color));
}

.status-value.warning {
    color: hsl(var(--warning-color));
}

.status-item.clickable {
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.status-item.clickable:hover {
    background: hsl(var(--primary-color) / 0.05);
    }

.status-item.clickable i.fa-chevron-right {
    margin-left: auto;
    color: hsl(var(--text-secondary));
    font-size: 0.8rem;
}

.metric-card.clickable {
    cursor: pointer;
    position: relative;
}

.metric-card.clickable:hover {
    box-shadow: 0 6px 25px hsla(var(--shadow));
}

.metric-arrow {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
}

/* Images Analysis */
.images-analysis {
    display: grid;
    gap: 2rem;
}

.images-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: hsl(var(--background));
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-number.good {
    color: hsl(var(--success-color));
}

.stat-number.warning {
    color: hsl(var(--warning-color));
}

.stat-number.error {
    color: hsl(var(--error-color));
}

.stat-label {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
}

.images-issues {
    background: hsl(var(--background));
    border-radius: var(--radius);
    padding: 1.5rem;
}

.images-issues h4 {
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
}

.image-issue-item {
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    background: hsl(var(--surface));
    border-radius: var(--radius);
}

.image-issue-item.critical {
    border-left-color: hsl(var(--error-color));
}

.image-issue-item.warning {
    border-left-color: hsl(var(--warning-color));
}

.image-url {
    font-family: monospace;
    font-size: 0.9rem;
    color: hsl(var(--primary-color));
    word-break: break-all;
    margin-top: 0.5rem;
}

/* Links Analysis */
.links-analysis {
    display: grid;
    gap: 2rem;
}

.links-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.links-section {
    background: hsl(var(--background));
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.links-section h4 {
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: hsl(var(--surface));
    border-radius: var(--radius);
    border-left: 4px solid hsl(var(--border-color));
}

.link-item.external {
    border-left-color: hsl(var(--primary-color));
}

.link-item.nofollow {
    border-left-color: hsl(var(--success-color));
}

.link-item.missing-title {
    border-left-color: hsl(var(--warning-color));
}

.link-info {
    flex: 1;
}

.link-url {
    font-family: monospace;
    font-size: 0.9rem;
    color: hsl(var(--primary-color));
    word-break: break-all;
}

.link-text {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    margin-top: 0.25rem;
}

.link-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.link-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.link-badge.external {
    background: hsl(var(--primary-color) / 0.1);
    color: hsl(var(--primary-color));
}

.link-badge.nofollow {
    background: hsl(var(--success-color) / 0.1);
    color: hsl(var(--success-color));
}

.link-badge.internal {
    background: hsl(var(--border-color));
    color: hsl(var(--text-secondary));
}

/* Error Section */
.error-section {
    padding: 4rem 0;
    text-align: center;
    background: hsl(var(--background));
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
    background: hsl(var(--surface));
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px hsla(var(--shadow));
}

.error-icon {
    margin-bottom: 2rem;
}

.error-icon i {
    font-size: 4rem;
    color: hsl(var(--error-color));
    margin-bottom: 1rem;
}

.error-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
}

.error-content p {
    color: hsl(var(--text-secondary));
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Toast Notification System */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    background: hsl(var(--surface));
    border-radius: var(--radius);
    box-shadow: 0 8px 25px hsla(var(--shadow));
    z-index: 10000;
    overflow: hidden;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border-color));
}

.toast-header i {
    font-size: 1.2rem;
}

.toast-success .toast-header i {
    color: hsl(var(--success-color));
}

.toast-error .toast-header i {
    color: hsl(var(--error-color));
}

.toast-warning .toast-header i {
    color: hsl(var(--warning-color));
}

.toast-info .toast-header i {
    color: hsl(var(--primary-color));
}

.toast-title {
    font-weight: 600;
    color: hsl(var(--text-primary));
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: hsl(var(--text-secondary));
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
}

.toast-close:hover {
    background: hsl(var(--background));
    color: hsl(var(--text-primary));
}

.toast-message {
    padding: 1rem 1.5rem;
    color: hsl(var(--text-secondary));
    line-height: 1.5;
}

/* Error Type Specific Styles */
.toast-success {
    border-left: 4px solid hsl(var(--success-color));
}

.toast-error {
    border-left: 4px solid hsl(var(--error-color));
}

.toast-warning {
    border-left: 4px solid hsl(var(--warning-color));
}

.toast-info {
    border-left: 4px solid hsl(var(--primary-color));
}

/* Error Log Styles */
.error-log-container {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px hsla(var(--shadow));
    margin-top: 2rem;
}

.error-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border-color));
}

.error-log-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
}

.error-log-actions {
    display: flex;
    gap: 0.5rem;
}

.error-log-btn {
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border-color));
    background: hsl(var(--surface));
    color: hsl(var(--text-secondary));
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.error-log-btn:hover {
    border-color: hsl(var(--primary-color));
    color: hsl(var(--primary-color));
}

.error-log-btn.export {
    background: hsl(var(--primary-color));
    color: white;
    border-color: hsl(var(--primary-color));
}

.error-log-btn.export:hover {
    background: hsl(var(--primary-dark));
}

.error-log-entry {
    background: hsl(var(--background));
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid hsl(var(--error-color));
}

.error-log-entry:last-child {
    margin-bottom: 0;
}

.error-log-timestamp {
    font-size: 0.8rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 0.5rem;
}

.error-log-message {
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.error-log-type {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.error-log-type.network {
    background: hsl(var(--error-color) / 0.1);
    color: hsl(var(--error-color));
}

.error-log-type.validation {
    background: hsl(var(--warning-color) / 0.1);
    color: hsl(var(--warning-color));
}

.error-log-type.server {
    background: hsl(var(--error-color) / 0.1);
    color: hsl(var(--error-color));
}

.error-log-type.timeout {
    background: hsl(var(--warning-color) / 0.1);
    color: hsl(var(--warning-color));
}

.error-log-type.permission {
    background: hsl(var(--error-color) / 0.1);
    color: hsl(var(--error-color));
}

.error-log-type.unknown {
    background: hsl(var(--text-secondary) / 0.1);
    color: hsl(var(--text-secondary));
}

.error-log-context {
    font-size: 0.85rem;
    color: hsl(var(--text-secondary));
    margin-top: 0.5rem;
}

.error-log-context strong {
    color: hsl(var(--text-primary));
}

/* Loading Error States */
.loading-error {
    text-align: center;
    padding: 2rem;
    color: hsl(var(--text-secondary));
}

.loading-error i {
    font-size: 2rem;
    color: hsl(var(--error-color));
    margin-bottom: 1rem;
}

/* Retry Button Improvements */
.btn-retry {
    background: hsl(var(--primary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-retry:hover {
    background: hsl(var(--primary-dark));
    }

.btn-retry i {
    font-size: 1.1rem;
}

/* Error Recovery Suggestions */
.error-recovery {
    margin-top: 2rem;
    padding: 1.5rem;
    background: hsl(var(--background));
    border-radius: var(--radius);
    border-left: 4px solid hsl(var(--primary-color));
}

.error-recovery h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-recovery h4 i {
    color: hsl(var(--primary-color));
}

.error-recovery ul {
    margin: 0;
    padding-left: 1.5rem;
    color: hsl(var(--text-secondary));
}

.error-recovery li {
    margin-bottom: 0.5rem;
}

/* Network Status Indicator */
.network-status {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: hsl(var(--success-color));
    z-index: 10001;
    transition: var(--transition);
}

.network-status.offline {
    background: hsl(var(--error-color));
}

.network-status.slow {
    background: hsl(var(--warning-color));
}

/* Error Boundary Styles */
.error-boundary {
    padding: 2rem;
    text-align: center;
    background: hsl(var(--surface));
    border-radius: var(--radius);
    box-shadow: 0 4px 6px hsla(var(--shadow));
    margin: 2rem 0;
}

.error-boundary h3 {
    color: hsl(var(--error-color));
    margin-bottom: 1rem;
}

.error-boundary p {
    color: hsl(var(--text-secondary));
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .intro-text-with-toggle {
        text-align: left;
    }

    .info-toggle-btn {
        font-size: 1rem;
        padding: 0.2rem 0.4rem;
    }

    .expandable-content {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .expandable-content h2 {
        font-size: 1.3rem;
    }

    .expandable-content h3 {
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: hsl(var(--surface));
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 10px hsla(var(--shadow));
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav.menu-open .menu-toggle {
        display: none !important;
    }

    .nav-menu-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: transparent;
        border: none;
        color: hsl(var(--text-primary));
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        transition: var(--transition);
    }

    .nav-menu-close:hover {
        background: hsl(var(--primary-color) / 0.1);
        color: hsl(var(--primary-color));
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid hsl(var(--border-color));
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        display: none;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .input-group {
        flex-direction: column;
    }

    .score-card {
        flex-direction: column;
        text-align: center;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .report-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 50%;
    }

    .performance-charts {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        gap: 1rem;
    }

    /* New responsive styles for audit page */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-item {
        padding: 1rem;
    }

    .benefits-section h2 {
        font-size: 1.5rem;
    }

    /* Contact page responsive styles */
    .contact-section {
        padding: 2rem 0;
    }

    .contact-section .container {
        padding: 0 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-container,
    .contact-info {
        padding: 1.5rem;
    }

    .contact-form-container h3,
    .contact-info h3 {
        font-size: 1.3rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-icon {
        align-self: center;
    }

    .contact-image {
        margin: 1.5rem 0;
    }

    .contact-img {
        max-width: 100%;
    }

    .social-media {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Previene zoom su iOS */
    }

    .faq-section h2 {
        font-size: 1.5rem;
    }

    /* Keywords page responsive styles */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-step {
        padding: 1.5rem;
    }

    .keyword-overview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .overview-card {
        padding: 1.5rem;
    }

    .analysis-tabs {
        flex-direction: column;
    }

    .analysis-tabs .tab-btn {
        flex: 1;
        text-align: center;
    }

    .keyword-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }

    .keyword-row.header {
        display: none;
    }

    .keyword-term {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .keyword-volume,
    .keyword-difficulty,
    .keyword-cpc,
    .keyword-opportunity {
        display: block;
        margin-bottom: 0.25rem;
    }

    .service-benefits h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .tab-btn {
        flex: 1 1 100%;
    }

    .feature-item {
        padding: 1rem;
    }

    .feature-item i {
        font-size: 2rem;
    }

    .feature-item h3 {
        font-size: 1.1rem;
    }

    .benefit-item i {
        font-size: 2rem;
    }

    .benefit-item h3 {
        font-size: 1.1rem;
    }

    /* Contact page mobile styles */
    .contact-section {
        padding: 1.5rem 0;
    }

    .contact-form-container,
    .contact-info {
        padding: 1rem;
    }

    .contact-form-container h3,
    .contact-info h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .form-group {
        gap: 0.4rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 16px; /* Previene zoom su iOS */
    }

    .form-group textarea {
        min-height: 100px;
    }

    .contact-item {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-icon i {
        font-size: 1rem;
    }

    .contact-details h4 {
        font-size: 1rem;
    }

    .contact-details p {
        font-size: 0.9rem;
    }

    .contact-image {
        margin: 1rem 0;
    }

    .social-media {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .social-media h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .faq-section {
        padding: 2rem 0;
    }

    .faq-section h2 {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-question h3 {
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn-primary {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .btn-primary i {
        font-size: 0.9rem;
    }

    /* Keywords page mobile styles */
    .process-step {
        padding: 1rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .step-content h3 {
        font-size: 1.1rem;
    }

    .overview-card {
        padding: 1rem;
    }

    .overview-value {
        font-size: 1.5rem;
    }

    .analysis-tabs .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .how-it-works h2,
    .service-benefits h2 {
        font-size: 1.3rem;
    }
}

/* Centered Content */
.centered-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.how-it-works-section .container,
.ideal-for-section .container {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.how-it-works-steps,
.ideal-for-list {
    text-align: left;
    max-width: 100%;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* AI Suggestions Styles */
.ai-suggestions-content {
    padding: 1rem 0;
}

.ai-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 3rem;
    text-align: center;
}

.ai-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.ai-error {
    background: #ffebee;
    border: 1px solid #e57373;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.ai-error h4 {
    color: #d32f2f;
    margin-bottom: 0.5rem;
}

.ai-error p {
    color: #c62828;
    margin-bottom: 1rem;
}

.ai-retry-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.ai-retry-btn:hover {
    background: var(--primary-hover);
}

.suggestions-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.priority-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-color);
}

.priority-section.high {
    border-left-color: #e53e3e;
}

.priority-section.medium {
    border-left-color: #f6ad55;
}

.priority-section.low {
    border-left-color: #48bb78;
}

.priority-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.priority-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.priority-section.high .priority-icon {
    background: #e53e3e;
}

.priority-section.medium .priority-icon {
    background: #f6ad55;
}

.priority-section.low .priority-icon {
    background: #48bb78;
}

.priority-title {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-item {
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.suggestion-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.suggestion-description {
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.suggestion-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.suggestion-impact,
.suggestion-difficulty {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.suggestion-impact {
    color: #2d3748;
}

.suggestion-difficulty {
    color: #4a5568;
}

.general-recommendations,
.next-steps {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.general-recommendations h4,
.next-steps h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendations-list,
.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendations-list li,
.steps-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--light-gray);
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
    position: relative;
    padding-left: 2.5rem;
}

.recommendations-list li::before,
.steps-list li::before {
    content: "✓";
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    color: var(--success-color);
    font-weight: bold;
}

.ai-disclaimer {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
    text-align: center;
}

/* SEO Advanced Styles */
.seo-advanced-content {
    padding: 1rem 0;
}

.keyword-cloud-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.keyword-cloud-title {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.keyword-cloud {
    text-align: center;
    line-height: 2;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.keyword-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.keyword-tag:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.keyword-tag.size-12 { font-size: 12px; }
.keyword-tag.size-13 { font-size: 13px; }
.keyword-tag.size-14 { font-size: 14px; }
.keyword-tag.size-15 { font-size: 15px; }
.keyword-tag.size-16 { font-size: 16px; }
.keyword-tag.size-17 { font-size: 17px; }
.keyword-tag.size-18 { font-size: 18px; }
.keyword-tag.size-19 { font-size: 19px; }
.keyword-tag.size-20 { font-size: 20px; }
.keyword-tag.size-21 { font-size: 21px; }
.keyword-tag.size-22 { font-size: 22px; }
.keyword-tag.size-23 { font-size: 23px; }
.keyword-tag.size-24 { font-size: 24px; }
.keyword-tag.size-25 { font-size: 25px; }
.keyword-tag.size-26 { font-size: 26px; }
.keyword-tag.size-27 { font-size: 27px; }
.keyword-tag.size-28 { font-size: 28px; }
.keyword-tag.size-29 { font-size: 29px; }
.keyword-tag.size-30 { font-size: 30px; }
.keyword-tag.size-31 { font-size: 31px; }

.seo-base-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.seo-base-title {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.seo-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.summary-card.tutti-articoli {
    background: #f8f9fa;
    border-left-color: #6c757d;
}

.summary-card.questioni-critiche {
    background: #ffebee;
    border-left-color: #e53e3e;
}

.summary-card.consigliato {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.summary-card.buoni-risultati {
    background: #e8f5e8;
    border-left-color: #4caf50;
}

.summary-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
}

.summary-total {
    font-size: 1.2rem;
    color: var(--secondary-text);
}

.summary-label {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-top: 0.5rem;
}

.seo-checks-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-check-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 4px solid;
}

.seo-check-item.success {
    border-left-color: var(--success-color);
}

.seo-check-item.critical {
    border-left-color: #e53e3e;
}

.seo-check-item.warning {
    border-left-color: #f6ad55;
}

.seo-check-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.seo-check-icon.success {
    color: var(--success-color);
}

.seo-check-icon.critical {
    color: #e53e3e;
}

.seo-check-icon.warning {
    color: #f6ad55;
}

.seo-check-message {
    flex: 1;
    color: var(--text-color);
    line-height: 1.5;
}

.advanced-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 3rem;
    text-align: center;
}

.advanced-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.advanced-no{
    display:none !important;
}

/* Keywords Page Styles */

/* Keyword Features */
.keyword-features {
    margin: 3rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 6px hsla(var(--shadow));
    transition: var(--transition);
}

.feature-item:hover {
    box-shadow: 0 10px 30px hsla(var(--shadow));
}

.feature-item i {
    font-size: 2.5rem;
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
}

.feature-item p {
    color: hsl(var(--text-secondary));
    line-height: 1.6;
    margin: 0;
}

/* Keyword Form */
.keyword-form {
    margin: 3rem 0;
}

.input-group {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid hsl(var(--border-color));
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px hsl(var(--primary-color) / 0.1);
}

.input-group button {
    padding: 1rem 2rem;
    white-space: nowrap;
}

.keyword-validation-message {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.5rem;
}

.keyword-validation-message.success {
    color: hsl(var(--success-color));
}

.keyword-validation-message.error {
    color: hsl(var(--error-color));
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    background: hsl(var(--surface));
    border-radius: var(--radius);
    box-shadow: 0 4px 6px hsla(var(--shadow));
}

.step-number {
    width: 50px;
    height: 50px;
    background: hsl(var(--primary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: hsl(var(--text-primary));
}

.step-content p {
    color: hsl(var(--text-secondary));
    line-height: 1.6;
    margin: 0;
}

/* Keyword Results */
.keyword-results {
    padding: 4rem 0;
    background: hsl(var(--background));
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
}

.results-header p {
    color: hsl(var(--text-secondary));
    font-size: 1.1rem;
}

/* Keyword Overview */
.keyword-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.overview-card {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 6px hsla(var(--shadow));
    transition: var(--transition);
}

.overview-card:hover {
    box-shadow: 0 8px 25px hsla(var(--shadow));
}

.overview-icon {
    margin-bottom: 1rem;
}

.overview-icon i {
    font-size: 2rem;
    color: hsl(var(--primary-color));
}

.overview-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--text-secondary));
}

.overview-value {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--text-primary));
    display: block;
}

.overview-label {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}

/* Analysis Tabs */
.analysis-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 3rem 0 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.analysis-tabs .tab-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid hsl(var(--border-color));
    background: hsl(var(--surface));
    color: hsl(var(--text-secondary));
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.9rem;
}

.analysis-tabs .tab-btn:hover {
    border-color: hsl(var(--primary-color));
    color: hsl(var(--primary-color));
}

.analysis-tabs .tab-btn.active {
    background: hsl(var(--primary-color));
    color: white;
    border-color: hsl(var(--primary-color));
}

/* Tab Content */
.tab-content {
    background: hsl(var(--surface));
    border-radius: var(--radius);
    box-shadow: 0 4px 6px hsla(var(--shadow));
    overflow: hidden;
}

.tab-panel {
    display: none;
    padding: 2rem;
}

.tab-panel.active {
    display: block;
}

.panel-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border-color));
}

.panel-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--text-primary));
}

.panel-header h3 i {
    color: hsl(var(--primary-color));
}

.panel-header p {
    color: hsl(var(--text-secondary));
    margin: 0;
}

/* Keywords Table */
.keywords-table {
    width: 100%;
    overflow-x: auto;
}

.keywords-table table {
    width: 100%;
    border-collapse: collapse;
}

.keywords-table th,
.keywords-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border-color));
}

.keywords-table th {
    background: hsl(var(--background));
    font-weight: 600;
    color: hsl(var(--text-primary));
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.keywords-table td {
    color: hsl(var(--text-secondary));
}

.keywords-table tr:hover {
    background: hsl(var(--background));
}

.keyword-term {
    font-weight: 600;
    color: hsl(var(--text-primary));
}

.volume-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.volume-badge.high {
    background: hsl(var(--success-color) / 0.1);
    color: hsl(var(--success-color));
}

.volume-badge.medium {
    background: hsl(var(--warning-color) / 0.1);
    color: hsl(var(--warning-color));
}

.volume-badge.low {
    background: hsl(var(--error-color) / 0.1);
    color: hsl(var(--error-color));
}

.difficulty-bar {
    width: 100%;
    height: 8px;
    background: hsl(var(--border-color));
    border-radius: 4px;
    overflow: hidden;
}

.difficulty-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.difficulty-fill.easy {
    background: hsl(var(--success-color));
}

.difficulty-fill.medium {
    background: hsl(var(--warning-color));
}

.difficulty-fill.hard {
    background: hsl(var(--error-color));
}

/* Keyword Charts */
.keyword-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.chart-container {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px hsla(var(--shadow));
}

.chart-container h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: hsl(var(--text-primary));
    text-align: center;
}

/* Responsive Design for Keywords Page */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .input-group button {
        width: 100%;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .keyword-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .analysis-tabs {
        flex-wrap: wrap;
    }
    
    .analysis-tabs .tab-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .keywords-table {
        font-size: 0.9rem;
    }
    
    .keywords-table th,
    .keywords-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .keyword-charts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .keyword-overview {
        grid-template-columns: 1fr;
    }
    
    .overview-card {
        padding: 1.5rem;
    }
    
    .overview-value {
        font-size: 1.5rem;
    }
    
    .tab-panel {
        padding: 1rem;
    }
    
    .keywords-table th,
    .keywords-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .chart-container {
        padding: 1rem;
    }
}

/* Service Benefits */
.service-benefits {
    padding: 4rem 0;
    background: hsl(var(--background));
}

.service-benefits h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: hsl(var(--text-primary));
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.benefit-item {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 6px hsla(var(--shadow));
    transition: var(--transition);
}

.benefit-item:hover {
    box-shadow: 0 10px 30px hsla(var(--shadow));
}

.benefit-item i {
    font-size: 2.5rem;
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
}

.benefit-item p {
    color: hsl(var(--text-secondary));
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: hsl(var(--surface));
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: hsl(var(--text-primary));
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: hsl(var(--background));
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 4px hsla(var(--shadow));
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid hsl(var(--border-color));
}

.faq-question:hover {
    background: hsl(var(--surface));
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: hsl(var(--text-primary));
}

.faq-question i {
    color: hsl(var(--text-secondary));
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: hsl(var(--text-secondary));
    line-height: 1.6;
    margin: 0;
}

/* Questions List */
.questions-list {
    display: grid;
    gap: 1rem;
}

.question-item {
    background: hsl(var(--background));
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 4px hsla(var(--shadow));
}

.question-text {
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.question-volume {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
}

/* Competitors List */
.competitors-list {
    display: grid;
    gap: 1rem;
}

.competitor-item {
    background: hsl(var(--background));
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 4px hsla(var(--shadow));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.competitor-domain {
    font-weight: 600;
    color: hsl(var(--text-primary));
}

.competitor-rank {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
}

/* Trends Chart */
.trends-chart {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 4px hsla(var(--shadow));
}

/* Opportunity Score */
.opportunity-score {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    background: hsl(var(--primary-color) / 0.1);
    color: hsl(var(--primary-color));
    font-weight: 600;
}

/* Responsive Design for Keywords Page */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-item {
        padding: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
    
    .competitor-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .trends-chart {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .benefit-item {
        padding: 1rem;
    }
    
    .benefit-item i {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 0.75rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0.75rem;
    }
    
    .question-item,
    .competitor-item {
        padding: 1rem;
    }
}

/* Footer Styles */
.footer {
    background-color: hsl(var(--surface));
    border-top: 1px solid hsl(var(--border-color));
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: hsl(var(--text-secondary));
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.footer-links a:hover {
    color: hsl(var(--primary-color));
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: hsl(var(--primary-color));
    transition: var(--transition);
}

.footer-links a:hover::after {
    width: 100%;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0;
    }

    .footer-content p {
        font-size: 0.8rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsl(var(--surface));
    border-top: 1px solid hsl(var(--border-color));
    box-shadow: 0 -4px 20px hsla(var(--shadow));
    padding: 1.5rem 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content {
    flex: 1;
}

.cookie-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.cookie-content p {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-content a {
    color: hsl(var(--primary-color));
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.cookie-btn-accept {
    background: hsl(var(--primary-color));
    color: white;
}

.cookie-btn-accept:hover {
    background: hsl(var(--primary-dark));
}

.cookie-btn-decline {
    background: transparent;
    color: hsl(var(--text-secondary));
    border: 1px solid hsl(var(--border-color));
}

.cookie-btn-decline:hover {
    background: hsl(var(--border-color));
    color: hsl(var(--text-primary));
}

@media (max-width: 768px) {
    .cookie-banner .container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-actions {
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        max-width: 150px;
    }
}

/* Privacy Policy Styles */
.privacy-content {
    padding: 2rem 0;
}

.privacy-section {
    background: hsl(var(--surface));
    border: 2px solid hsl(var(--primary-color));
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px hsla(var(--shadow));
}

.privacy-section h3 {
    color: hsl(var(--primary-color));
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--primary-color) / 0.2);
}

.privacy-section h2 {
    color: hsl(var(--primary-color));
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid hsl(var(--primary-color) / 0.3);
}

.privacy-section h4 {
    color: hsl(var(--text-primary));
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.privacy-section ul,
.privacy-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

/* Table of Contents Styles */
.toc-sidebar {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px hsla(var(--shadow));
    position: relative;
    top: 0;
}

.toc-sidebar.toc-top {
    order: -1;
}

.toc-sidebar h3 {
    color: hsl(var(--text-primary));
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid hsl(var(--primary-color));
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toc-sidebar.toc-top .toc-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.toc-link {
    color: hsl(var(--text-secondary));
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    font-weight: 600;  /* Added bold */
}

.toc-link:hover,
.toc-link.active {
    color: hsl(var(--primary-color));
    background: hsl(var(--primary-color) / 0.1);
    border-left-color: hsl(var(--primary-color));
    }

/* Responsive Design for Privacy Policy */
@media (max-width: 1024px) {
    .privacy-grid {
        grid-template-columns: 250px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .privacy-grid {
        grid-template-columns: 1fr;
    }

    .toc-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .toc-nav {
        gap: 0.75rem;
    }

    .toc-link {
        padding: 0.75rem;
    }
}

/* New Professional Footer Styles */

/* Save and Send Report Section */
.report-email-section {
    background: hsl(var(--primary-color));
    padding: 2rem 0;
    text-align: center;
    color: white;
}

.report-email-section p {
    color: white;
}

.report-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Recent Audits Section */
.recent-audits-section {
    background: hsl(var(--surface));
    padding: 60px 0;
    border-top: 1px solid hsl(var(--border-color));
}

.recent-audits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.recent-audit-card {
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    box-shadow: 0 2px 4px hsla(var(--shadow));
}

.recent-audit-card:hover {
    box-shadow: 0 4px 12px hsla(var(--shadow));
}

.audit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.audit-url {
    font-weight: 600;
    color: hsl(var(--primary-color));
    text-decoration: none;
    font-size: 0.9rem;
    word-break: break-all;
    line-height: 1.4;
}

.audit-url:hover {
    text-decoration: underline;
}

.audit-date {
    font-size: 0.8rem;
    color: hsl(var(--text-secondary));
    white-space: nowrap;
    margin-left: 10px;
}

.audit-score {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.audit-score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    position: relative;
}

.audit-score-circle.excellent {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.audit-score-circle.good {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.audit-score-circle.fair {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.audit-score-circle.poor {
    background: linear-gradient(135deg, #F44336, #D32F2F);
}

.audit-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.85rem;
}

.audit-metric {
    text-align: center;
    flex: 1;
}

.audit-metric-value {
    font-weight: 600;
    color: hsl(var(--text-primary));
}

.audit-metric-label {
    color: hsl(var(--text-secondary));
    margin-top: 2px;
}

.no-recent-audits {
    text-align: center;
    color: hsl(var(--text-secondary));
    font-style: italic;
    grid-column: 1 / -1;
    padding: 40px 20px;
}

.no-recent-audits i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: hsl(var(--text-secondary));
}

/* Footer Styles Override */
.footer {
    background: #f8f9fa;
    padding: 3rem 0 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Footer Image Styles */
.footer-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    filter: brightness(1.1) contrast(1.1);
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-main {
    margin-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid hsl(var(--primary-color));
    padding-bottom: 0.5rem;
    display: inline-block;
    width: fit-content;
}

.company-info {
    margin-bottom: 1.5rem;
}

.company-info h4 {
    color: #34495e;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.company-info p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.numero-verde {
    margin-top: 1rem;
}

.numero-verde-img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.numero-verde-img:hover {
    transform: scale(1.05);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.95rem;
    /* Rimossa transizione: transition: color 0.3s ease; per eliminare l'animazione */
    display: block;
    padding: 0.2rem 0;
}

.footer-column ul li a:hover {
    color: hsl(var(--primary-color));
    /* Rimosso padding-left: 0.5rem; per eliminare il movimento */
}

/* Certifications Grid */
.certifications-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-row {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-start;
}

.cert-row img {
    width: 120px;
    height: 40px;
    border-radius: 4px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cert-row img:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #dee2e6;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    flex: 1;
}

.footer-copyright p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.footer-copyright strong {
    color: #495057;
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: hsl(var(--primary-color));
    color: white;
    }

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .cert-row {
        flex-wrap: wrap;
    }
    
    .cert-row img {
        width: 100px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .report-email-section {
        padding: 1.5rem 0;
    }
    
    .report-title {
        font-size: 1.4rem;
    }
    
    .recent-audits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .audit-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .audit-date {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .audit-metrics {
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 2rem 0 1rem 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column h3 {
        text-align: center;
        margin: 0 auto 1rem auto;
    }
    
    .company-info {
        text-align: center;
    }
    
    .numero-verde-img {
        width: 180px;
    }
    
    .certifications-grid {
        align-items: center;
    }
    
    .cert-row {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .report-title {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .footer-column h3 {
        font-size: 1rem;
    }
    
    .company-info h4 {
        font-size: 1rem;
    }
    
    .company-info p {
        font-size: 0.9rem;
    }
    
    .numero-verde-img {
        width: 160px;
    }
    
    .cert-row img {
        width: 80px;
        height: 30px;
    }
    
    .footer-column ul li a {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* SEO Analyzer Styles */
.seo-input-section {
    background: hsl(var(--surface));
    padding: 1rem 0;
    margin-bottom: 2rem;
}

@media (min-width: 1200px) {
    .seo-input-section {
        padding: 4rem 0;
    }
    
    .input-container {
        max-width: 1200px;
    }
    
    .analyzer-form {
        max-width: 900px;
    }
}

.input-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.input-container h3 {
    color: hsl(var(--text-primary));
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.input-container h3 i {
    color: hsl(var(--primary-color));
    margin-right: 0.5rem;
}

.analyzer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.analyzer-form .input-group {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    width: 100%;
}

.analyzer-form textarea {
    flex: 1;
    padding: 1rem;
    border: 2px solid hsl(var(--border-color));
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: var(--transition);
    line-height: 1.5;
}

.analyzer-form textarea:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px hsla(var(--primary-color), 0.1);
}

.analyzer-form button {
    padding: 1rem 2.5rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 180px;
}

/* Loading e Error States */
.loading-state {
    text-align: center;
    padding: 2rem;
    background: hsl(var(--surface));
    border-radius: var(--radius);
    margin: 2rem 0;
}

.loading-spinner {
    font-size: 2rem;
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.error-state {
    text-align: center;
    padding: 2rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.error-icon {
    font-size: 2rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.error-state h4 {
    color: #dc2626;
    margin-bottom: 1rem;
}

.error-state p {
    color: #7f1d1d;
    margin-bottom: 1.5rem;
}

/* Results Section */
.seo-results-section {
    padding: 3rem 0;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header h3 {
    color: hsl(var(--text-primary));
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.results-header h3 i {
    color: hsl(var(--primary-color));
    margin-right: 0.5rem;
}

.results-header p {
    color: hsl(var(--text-secondary));
    font-size: 1.1rem;
}

/* SEO Analysis Grid */
.seo-analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.seo-field {
    background: hsl(var(--surface));
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px hsla(var(--shadow));
}

.seo-field.full-width {
    grid-column: 1 / -1;
}

.seo-field label {
    display: block;
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.field-container textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    background: #f8f9fa;
    color: hsl(var(--text-primary));
}

.field-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    gap: 1rem;
}

.char-count {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}

.word-count {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}

.advice {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.advice.good {
    color: #065f46;
    background: #d1fae5;
}

.advice.warning {
    color: #92400e;
    background: #fef3c7;
}

.advice.error {
    color: #dc2626;
    background: #fee2e2;
}

/* SEO Recommendations */
.seo-recommendations {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px hsla(var(--shadow));
    margin-bottom: 2rem;
}

.seo-recommendations h4 {
    color: hsl(var(--text-primary));
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.seo-recommendations h4 i {
    color: hsl(var(--primary-color));
    margin-right: 0.5rem;
}

.recommendations-section {
    margin-bottom: 2rem;
}

.recommendations-section h5 {
    color: hsl(var(--text-primary));
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.recommendations-list {
    list-style: none;
    padding: 0;
}

.recommendations-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: var(--radius);
    border-left: 4px solid hsl(var(--primary-color));
}

/* Keywords Frequency Section */
.keywords-frequency-section {
    margin-bottom: 2rem;
}

.keywords-frequency-section h5 {
    color: hsl(var(--text-primary));
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.keywords-frequency-section h5 i {
    color: hsl(var(--primary-color));
    margin-right: 0.5rem;
}

.frequency-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.most-frequent h6,
.keyword-matching h6 {
    color: hsl(var(--text-primary));
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Word Cloud */
.word-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--radius);
    min-height: 100px;
    align-items: center;
}

.word-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.word-tag.high-frequency {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.word-tag.medium-frequency {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.word-tag.low-frequency {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

/* Keyword Matching */
.matching-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.keyword-match-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border-color));
}

.keyword-match-word {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.keyword-match-word strong {
    color: hsl(var(--text-primary));
}

.frequency {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}

.keyword-match-presence {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.presence-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    margin-right: 0.25rem;
}

.presence-indicator.present {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.presence-indicator.absent {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.coverage-status {
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.coverage-status.good {
    background: #dcfce7;
    color: #166534;
}

.coverage-status.partial {
    background: #fef3c7;
    color: #92400e;
}

.coverage-status.poor {
    background: #fee2e2;
    color: #dc2626;
}

/* SEO Score Section */
.seo-score-section {
    margin-bottom: 2rem;
}

.seo-score-section h5 {
    color: hsl(var(--text-primary));
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.seo-score-section h5 i {
    color: hsl(var(--primary-color));
    margin-right: 0.5rem;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.score-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 6px solid #e5e7eb;
    position: relative;
    flex-shrink: 0;
}

.score-circle.excellent {
    border-color: #22c55e;
    background: #f0fdf4;
}

.score-circle.good {
    border-color: #84cc16;
    background: #f7fee7;
}

.score-circle.fair {
    border-color: #eab308;
    background: #fffbeb;
}

.score-circle.poor {
    border-color: #ef4444;
    background: #fef2f2;
}

.score-number {
    font-size: 2rem;
    font-weight: bold;
    color: hsl(var(--text-primary));
}

.score-max {
    font-size: 1rem;
    color: hsl(var(--text-secondary));
}

.score-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    flex: 1;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: var(--radius);
}

.score-label {
    font-weight: 500;
    color: hsl(var(--text-primary));
}

.score-value {
    font-weight: bold;
    color: hsl(var(--primary-color));
}

/* SEO Tips Section */
.seo-tips-section {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px hsla(var(--shadow));
}

.seo-tips-section h4 {
    color: hsl(var(--text-primary));
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.seo-tips-section h4 i {
    color: hsl(var(--primary-color));
    margin-right: 0.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--radius);
    border-left: 4px solid hsl(var(--primary-color));
}

.tip-card h5 {
    color: hsl(var(--text-primary));
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tip-card p {
    color: hsl(var(--text-secondary));
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Validation Tooltip */
.validation-tooltip {
    position: absolute;
    bottom: -30px;
    left: 0;
    background: #dc2626;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
}

.validation-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 10px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #dc2626;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px hsla(var(--shadow));
    border-left: 4px solid;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.toast-success {
    border-left-color: #22c55e;
}

.toast-notification.toast-error {
    border-left-color: #ef4444;
}

.toast-notification.toast-warning {
    border-left-color: #eab308;
}

.toast-notification.toast-info {
    border-left-color: #3b82f6;
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 1rem 1rem 0.5rem 1rem;
    gap: 0.5rem;
}

.toast-header i {
    font-size: 1.2rem;
}

.toast-title {
    font-weight: 600;
    color: hsl(var(--text-primary));
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: hsl(var(--text-secondary));
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: hsl(var(--text-primary));
}

.toast-message {
    padding: 0 1rem 1rem 1rem;
    color: hsl(var(--text-secondary));
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 968px) {
    .input-container {
        max-width: 90%;
        padding: 0 20px;
    }
    
    .analyzer-form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .analyzer-form .input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .analyzer-form button {
        width: 100%;
        min-width: auto;
    }
    
    .seo-analysis-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .frequency-analysis {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .score-display {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .score-breakdown {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .toast-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        transform: translateY(-100%);
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .input-container h3 {
        font-size: 1.5rem;
    }
    
    .results-header h3 {
        font-size: 1.7rem;
    }
    
    .seo-field {
        padding: 1rem;
    }
    
    .field-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-number {
        font-size: 1.7rem;
    }
    
         .keyword-match-presence {
         flex-wrap: wrap;
         gap: 0.25rem;
     }
     
     .presence-indicator {
         font-size: 0.7rem;
         padding: 0.2rem 0.4rem;
         margin-right: 0;
         margin-bottom: 0.25rem;
     }
    
         .word-cloud {
         justify-content: center;
     }
 }

/* Hero Notice per la versione JS */
.hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e0f2fe;
    color: #0277bd;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #b3e5fc;
    margin-top: 1rem;
}

.hero-notice i {
    font-size: 1rem;
}

/* SEO Intro Text Styles */
.seo-intro-text {
    background: linear-gradient(135deg, hsl(var(--primary-color) / 0.1), hsl(var(--primary-color) / 0.05));
    border-left: 4px solid hsl(var(--primary-color));
    padding: 1.5rem 2rem;
    margin: 2rem auto;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 4px 15px hsla(var(--primary-color) / 0.15);
    color: hsl(var(--text-primary));
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.seo-intro-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary-color)), transparent);
    opacity: 0.6;
}

.seo-intro-text::after {
    content: '✨';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .seo-intro-text {
        padding: 1rem 1.5rem;
        margin: 1.5rem auto;
        font-size: 1rem;
    }
    
    .seo-intro-text::after {
        top: 0.75rem;
        right: 1rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .seo-intro-text {
        padding: 0.8rem 1rem;
        margin: 1rem auto;
        font-size: 0.95rem;
    }
    
    .seo-intro-text::after {
        display: none;
    }
}

/* Sidebar Styles */
.sidebar-mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background: hsl(var(--primary-color));
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px hsla(var(--shadow));
    transition: var(--transition);
}

.sidebar-mobile-toggle:hover {
    background: hsl(var(--primary-dark));
    transform: scale(1.05);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: hsl(var(--surface));
    box-shadow: 2px 0 10px hsla(var(--shadow));
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border-bottom: 1px solid hsl(var(--border-color));
}

.sidebar-toggle {
    background: none;
    border: none;
    color: hsl(var(--text-secondary));
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: hsl(var(--border-color));
    color: hsl(var(--text-primary));
}

.sidebar-content {
    padding: 1rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-badge {
    background: hsl(var(--primary-color));
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: hsl(var(--text-secondary));
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-link:hover {
    background: hsl(var(--primary-color) / 0.1);
    color: hsl(var(--primary-color));
    }

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-link span {
    flex: 1;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar-mobile-toggle {
        display: block;
    }
    
    .sidebar {
        width: 280px;
    }
}

@media (min-width: 769px) {
    .sidebar {
        display: none;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
}

/* ===== INDEX2.HTML SPECIFIC STYLES ===== */

/* Top Bar Styles */
.top-bar {
    background: white;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.top-bar-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-size: 0.9rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-social {
    display: flex;
    gap: 0.5rem;
}

.top-bar-ga {
    display: flex;
    align-items: center;
}

/* Navigation Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: hsl(var(--primary-color));
    font-size: inherit;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle {
    color: hsl(var(--primary-color));
}

.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: hsl(var(--primary-color));
    transition: width 0.3s ease;
}

.nav-dropdown-toggle:hover::after,
.nav-dropdown:hover .nav-dropdown-toggle::after {
    width: 100%;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: hsl(var(--text-secondary));
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a:hover {
    background: #f5f5f5;
    color: hsl(var(--primary-color));
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    text-align: center;
}

.service-item img {
    max-width: 100%;
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}

.service-item h3 {
    margin: 1rem 0 0.5rem;
    color: #333;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
    background: hsl(var(--primary-color));
    padding: 0;
    color: white;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    height: 300px;
}

.cta-banner-content {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: fit-content;
    margin: 0;
    padding: 0;
    background: hsl(var(--primary-color));
}

.cta-banner-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    width: 300px;
    background: hsl(var(--primary-color));
    order: 1;
    margin-left: 2rem;
}

.cta-banner-image img {
    width: 300px;
    height: auto;
    display: block;
    object-fit: contain;
}

.cta-banner-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: hsl(var(--primary-color));
    order: 2;
    min-width: 400px;
    gap: 1rem;
}

.cta-banner-text p {
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
}

.cta-banner-button {
    background: white;
    color: #667eea;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 1rem;
}

.cta-banner-button:hover {
    }

/* Hero Logo Box */
.hero-logo-box {
    flex-shrink: 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-box img {
    max-width: 100%;
    height: auto;
    display: block;
}

.mobile-logo {
    display: none;
}

/* Header Button Override */
.header .btn-primary {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    height: auto;
    color: white !important;
}

/* Expandable Content Override for index2.html */
.expandable-content.hidden {
    display: none !important;
}

/* Responsive Styles for index2.html */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column !important;
    }
    
    .hero-logo-box.desktop-logo {
        display: none !important;
    }
    
    .mobile-logo {
        display: block;
        width: 100%;
        padding: 2rem 1rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        margin-top: 2rem;
        text-align: center;
    }
    
    .mobile-logo img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    .cta-banner {
        height: auto;
    }
    
    .cta-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-banner-text {
        flex-direction: column !important;
        align-items: center !important;
        min-width: auto !important;
        padding: 1rem !important;
    }
    
    .cta-banner-image {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-left: 0;
    }
    
    .cta-banner-image img {
        width: 100% !important;
        max-width: 300px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .top-bar-social {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-content p {
        font-size: 0.9rem !important;
    }
    
    .audit-form {
        width: 100%;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .input-group button {
        width: 100%;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease, opacity 0.3s ease !important;
        opacity: 0 !important;
        visibility: hidden !important;
        z-index: 1000 !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .nav-menu.active {
        max-height: 100vh !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow-y: auto !important;
        display: flex !important;
    }
    
    .nav-menu a.nav-link {
        display: block !important;
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid #e0e0e0;
        text-align: left;
    }
    
    .nav-menu .btn-primary {
        width: calc(100% - 2rem);
        margin: 1rem;
        margin-left: 1rem !important;
        text-align: center;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 1rem;
        border-bottom: 1px solid #e0e0e0;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        background: white;
        cursor: pointer;
    }
    
    .nav-dropdown-toggle::after {
        display: none;
    }
    
    .nav-dropdown-toggle i {
        transition: transform 0.3s ease;
    }
    
    .nav-dropdown.active .nav-dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    .nav-dropdown-menu {
        position: static !important;
        display: none !important;
        box-shadow: none;
        margin-top: 0;
        padding-left: 0;
        background: #f5f5f5;
        width: 100%;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        display: block !important;
    }
    
    .nav-dropdown-menu a {
        display: block !important;
        padding: 0.75rem 1rem 0.75rem 2rem;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-dropdown-menu a:last-child {
        border-bottom: none;
    }
    
    .nav-dropdown:hover .nav-dropdown-menu {
        display: none !important;
    }
    
    .nav-dropdown.active:hover .nav-dropdown-menu {
        display: block !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: hsl(var(--primary-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px hsl(var(--primary-color) / 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: hsl(var(--primary-dark));
    box-shadow: 0 6px 20px hsl(var(--primary-color) / 0.4);
}

.back-to-top:focus {
    outline: 2px solid hsl(var(--primary-color));
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Core Web Vitals Card Layout Optimization */
.metrics-section .metric-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.metrics-section .metric-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.metrics-section .metric-header i {
    font-size: 1.5rem;
    margin: 0;
    color: hsl(var(--primary-color));
}

.metrics-section .metric-header h3 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
}

.metrics-section .metric-content {
    width: 100%;
}

.metrics-section .metric-content p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: hsl(var(--text-secondary));
}