/* Conversion-focused layout for web services */
.btn-whatsapp {
    background: #16a34a;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 700;
}

.btn-whatsapp:hover {
    background: #15803d;
    color: #ffffff;
    transform: translateY(-2px);
}

.conversion-hero {
    min-height: 660px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(8, 18, 28, 0.9) 0%, rgba(8, 18, 28, 0.76) 48%, rgba(8, 18, 28, 0.22) 100%),
        url('../images/giovanni-damore.jpg') center right / cover no-repeat;
    color: #ffffff;
    padding: 5rem 0 4rem;
}

.conversion-hero__content {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #a7f3d0;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.conversion-hero h1 {
    max-width: 720px;
    margin-bottom: 1.25rem;
    font-size: 3.4rem;
    line-height: 1.06;
    font-weight: 850;
    letter-spacing: 0;
}

.conversion-hero__lead {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.hero-actions,
.section-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-actions .btn,
.section-actions .btn,
.cta-actions .btn {
    min-height: 48px;
}

.conversion-hero .btn-primary {
    background: #ffffff;
    color: #0f172a;
}

.conversion-hero .btn-primary:hover {
    background: #d1fae5;
    color: #064e3b;
}

.conversion-hero .btn-secondary {
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.conversion-hero .btn-secondary:hover {
    background: #ffffff;
    color: #0f172a;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 950px;
    margin-top: 2.5rem;
}

.hero-proof__item {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    padding: 1rem;
    border-radius: 8px;
    min-height: 98px;
}

.hero-proof__item strong {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.hero-proof__item span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.online-section {
    padding: 5rem 0;
}

.online-section--soft {
    background: #f7f4ef;
}

.online-section--ink {
    background: #111827;
    color: #ffffff;
}

.online-section--ink .section-header p,
.online-section--ink .muted {
    color: rgba(255, 255, 255, 0.72);
}

.section-header--left {
    text-align: left;
    max-width: 760px;
    margin: 0 0 2.4rem;
}

.section-kicker {
    color: #be123c;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 0.86rem;
    margin-bottom: 0.5rem;
}

.online-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.online-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.online-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.online-card,
.price-plan,
.proof-item,
.process-step {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.online-card h3,
.price-plan h3,
.proof-item h3,
.process-step h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.online-card p,
.price-plan p,
.proof-item p,
.process-step p {
    color: var(--text-light);
}

.online-card ul,
.price-plan ul,
.proof-item ul {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
    color: var(--text-dark);
}

.online-card li,
.price-plan li,
.proof-item li {
    position: relative;
    padding-left: 1.35rem;
}

.online-card li::before,
.price-plan li::before,
.proof-item li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: #16a34a;
}

.online-card__label {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.78rem;
    font-weight: 800;
}

.stack-list {
    display: grid;
    gap: 0.85rem;
}

.stack-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.stack-list li:last-child {
    border-bottom: 0;
}

.stack-list strong {
    display: block;
    color: var(--text-dark);
}

.stack-list span {
    color: var(--text-light);
}

.checkmark {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #166534;
    font-weight: 900;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.process-step {
    position: relative;
    min-height: 230px;
}

.process-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #be123c;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 1rem;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    align-items: stretch;
}

.price-plan {
    display: flex;
    flex-direction: column;
}

.price-plan--featured {
    border: 2px solid #16a34a;
    box-shadow: var(--shadow-lg);
}

.price-plan__price {
    color: #0f172a;
    font-size: 2.2rem;
    font-weight: 850;
    margin: 1rem 0;
}

.price-plan__price span {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
}

.price-plan .btn {
    margin-top: auto;
    width: 100%;
}

.portfolio-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.portfolio-item {
    display: block;
    min-height: 190px;
    padding: 1.25rem;
    border-radius: 8px;
    color: #ffffff;
    background: #334155;
    position: relative;
    overflow: hidden;
}

.portfolio-item:nth-child(2) {
    background: #166534;
}

.portfolio-item:nth-child(3) {
    background: #7f1d1d;
}

.portfolio-item strong,
.portfolio-item span {
    position: relative;
    z-index: 1;
    display: block;
}

.portfolio-item strong {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.portfolio-item span {
    color: rgba(255, 255, 255, 0.78);
}

.contact-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: start;
}

.contact-direct {
    display: grid;
    gap: 1rem;
}

.contact-direct a {
    display: block;
    color: var(--text-dark);
    font-weight: 800;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.guide-tools {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.guide-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.guide-filter {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    background: #ffffff;
    color: var(--text-dark);
    font-weight: 800;
}

.guide-filter span {
    color: var(--text-light);
    font-weight: 700;
}

.guide-filter.is-active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.guide-filter.is-active span {
    color: rgba(255, 255, 255, 0.72);
}

.guide-results-count {
    margin: 0 0 1rem;
    color: var(--text-light);
    font-weight: 800;
}

.guide-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.guide-card-index {
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.guide-card-index__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.guide-status {
    flex: 0 0 auto;
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 800;
}

.guide-card-index h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1.16rem;
}

.guide-card-index p {
    color: var(--text-light);
}

.guide-card-index__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-weight: 900;
}

.guide-card-index__link::after {
    content: "->";
    margin-left: 0.45rem;
}

.guide-empty {
    margin-top: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 0.95rem;
    color: var(--text-dark);
    font: inherit;
    background: #ffffff;
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group label {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-weight: 500;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.3rem;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #111827;
    color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.16);
}

.cookie-banner__inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.cookie-banner a {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
}

.cookie-banner button {
    min-width: 96px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 0.65rem 0.9rem;
    font-weight: 800;
}

.cookie-banner button:first-child {
    border-color: #16a34a;
    background: #16a34a;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
}

/* Books service page */
.books-hero {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(127, 29, 29, 0.84)),
        url('../images/giovanni-damore.jpg') center top / cover no-repeat;
    color: #ffffff;
    padding: 4rem 0 3.5rem;
}

.books-hero__layout {
    display: grid;
    gap: 1.25rem;
}

.books-hero__content {
    max-width: 760px;
}

.books-hero h1 {
    margin-bottom: 1rem;
    font-size: 2.35rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.books-hero__lead {
    color: #fde68a;
    font-size: 1.35rem;
    line-height: 1.45;
    font-weight: 850;
    margin-bottom: 1rem;
}

.books-hero p:not(.eyebrow):not(.books-hero__lead),
.books-hero__panel p,
.books-hero__panel li {
    color: rgba(255, 255, 255, 0.84);
}

.books-hero__panel {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
}

.books-hero__panel h2 {
    color: #ffffff;
    font-size: 1.45rem;
}

.books-hero__panel ul {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.book-process-grid,
.book-checklist,
.books-grid {
    display: grid;
    gap: 1rem;
}

.book-process-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.book-process-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 1rem;
}

.book-process-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.book-process-card p {
    color: var(--text-light);
}

.book-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.book-type-grid article {
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-left: 5px solid #be123c;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-dark);
    padding: 1rem;
    font-weight: 850;
    box-shadow: var(--shadow-sm);
}

.book-card {
    display: grid;
    gap: 1rem;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: var(--shadow-md);
}

.book-cover-link {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #111827;
}

.book-cover-link img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.book-cover-link:hover img {
    transform: scale(1.02);
}

.book-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.book-card__body h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
}

.book-card__body p {
    color: var(--text-light);
}

.btn-amazon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    background: #ff9900;
    color: #111827;
    padding: 0.85rem 1.1rem;
    font-weight: 900;
}

.btn-amazon:hover {
    background: #f59e0b;
    color: #111827;
    transform: translateY(-2px);
}

.books-final-cta {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.books-final-cta h2 {
    color: #ffffff;
    margin-bottom: 0.9rem;
}

.books-final-cta p {
    color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 1024px) {
    .nav ul {
        gap: 1rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .conversion-hero {
        background:
            linear-gradient(90deg, rgba(8, 18, 28, 0.92), rgba(8, 18, 28, 0.72)),
            url('../images/giovanni-damore.jpg') center right / cover no-repeat;
    }

    .hero-proof,
    .online-grid--four,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .online-grid,
    .price-grid,
    .portfolio-strip,
    .contact-panel {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 720px) {
    .book-process-grid,
    .book-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-card {
        grid-template-columns: minmax(220px, 0.42fr) 1fr;
        padding: 1.25rem;
    }

    .books-final-cta {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

@media (min-width: 1040px) {
    .books-hero {
        padding: 5.5rem 0 5rem;
        background:
            linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.86) 48%, rgba(127, 29, 29, 0.34) 100%),
            url('../images/giovanni-damore.jpg') center right / cover no-repeat;
    }

    .books-hero__layout {
        grid-template-columns: 1.18fr 0.82fr;
        align-items: center;
        gap: 2rem;
    }

    .books-hero h1 {
        font-size: 3.35rem;
        line-height: 1.06;
    }

    .books-hero__lead {
        font-size: 1.55rem;
    }

    .books-hero__panel {
        padding: 1.5rem;
    }

    .book-process-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .book-checklist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.4rem;
    }

    .book-type-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.active {
        max-height: 520px;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .nav a {
        display: block;
        padding: 1rem 20px;
    }
}

@media (max-width: 768px) {
    .conversion-hero {
        min-height: auto;
        padding: 4rem 0 3rem;
        background:
            linear-gradient(180deg, rgba(8, 18, 28, 0.95), rgba(8, 18, 28, 0.84)),
            url('../images/giovanni-damore.jpg') center top / cover no-repeat;
    }

    .conversion-hero h1 {
        font-size: 2.35rem;
        line-height: 1.12;
    }

    .conversion-hero__lead {
        font-size: 1.05rem;
    }

    .hero-proof,
    .online-grid,
    .online-grid--two,
    .online-grid--four,
    .process-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .online-section {
        padding: 3.5rem 0;
    }

    .hero-actions,
    .section-actions,
    .cta-actions,
    .cookie-banner__inner,
    .cookie-banner__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn,
    .section-actions .btn,
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
