/* ========================================
   GIACOMO BOTTIONI - Personal Trainer
   Dark Elegant Theme
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-elevated: #1c1c1c;
    --text-primary: #f5f0eb;
    --text-secondary: #a8a29e;
    --text-muted: #6b6560;
    --accent: #c9a96e;
    --accent-light: #dfc08a;
    --accent-dark: #a88b4a;
    --border: rgba(201, 169, 110, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.15;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.accent-text {
    color: var(--accent);
}

.label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.container--narrow {
    max-width: 800px;
}

.container--wide {
    max-width: 1400px;
}

section {
    padding: clamp(5rem, 10vw, 10rem) 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 5rem);
    align-items: center;
}

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.5s var(--transition);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.nav__logo span {
    color: var(--accent);
}

.nav__logo img {
    height: 88px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.nav__logo img:hover {
    opacity: 0.85;
}

.footer__brand-logo {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.nav__links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav__links a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
    color: var(--accent);
}

.nav__links a:hover::after,
.nav__links a.active::after {
    width: 100%;
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav__hamburger span {
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45) contrast(1.1);
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.35) 50%,
        rgba(10, 10, 10, 0.55) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 750px;
}

.hero__claim {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 2rem;
    font-style: italic;
}

.hero__claim em {
    color: var(--accent);
    font-style: italic;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
    line-height: 1.8;
}

.hero__scroll {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 4rem;
}

.hero__scroll-line {
    width: 60px;
    height: 1px;
    background: var(--accent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; width: 40px; }
    50% { opacity: 1; width: 60px; }
}

/* --- Page Hero (internal pages) --- */
.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    padding-bottom: clamp(3rem, 6vw, 6rem);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
}

.page-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.4) 50%,
        rgba(10, 10, 10, 0.15) 100%
    );
}

.page-hero__content {
    position: relative;
    z-index: 1;
}

.page-hero__title {
    margin-top: 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--transition);
}

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

.btn--primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 110, 0.2);
}

.btn--outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn--outline:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn__arrow {
    transition: transform 0.3s ease;
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: clamp(2rem, 3vw, 3rem);
    transition: all 0.5s var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card__number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.card__title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.card__text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* --- Quote Section --- */
.quote-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

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

.quote__text {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-style: italic;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.4;
    max-width: 100%;
}

.quote__text em {
    color: var(--accent);
    font-style: italic;
}

.quote__line {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 2rem auto;
}

.quote__author {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* --- Image Section --- */
.img-block {
    position: relative;
    overflow: hidden;
}

.img-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition);
}

.img-block:hover img {
    transform: scale(1.03);
}

.img-block--tall {
    aspect-ratio: 3/4;
}

.img-block--wide {
    aspect-ratio: 16/9;
}

.img-block--square {
    aspect-ratio: 1;
}

/* --- Content Sections --- */
.content-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.content-block h2 {
    margin-bottom: 0.5rem;
}

.content-block p {
    line-height: 1.9;
}

.divider {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

/* --- Service List --- */
.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.service-list li:hover {
    color: var(--text-primary);
    padding-left: 0.5rem;
}

.service-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    flex-shrink: 0;
}

/* --- Stats --- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin: 3rem 0;
}

.stat__number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--accent);
    font-weight: 300;
    line-height: 1;
}

.stat__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

/* --- Contact Form --- */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form__input,
.form__textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    transition: border-color 0.3s ease;
    outline: none;
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--accent);
}

.form__textarea {
    min-height: 150px;
    resize: vertical;
}

/* --- Contact Info --- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-info__item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info__label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

.contact-info__value {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer__brand {
    max-width: 300px;
}

.footer__brand-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer__brand-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links-title {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.footer__links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer__tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

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

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

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-elevated));
    border: 1px solid var(--border);
    padding: clamp(3rem, 5vw, 5rem);
    text-align: center;
}

.cta-banner h2 {
    margin-bottom: 1rem;
}

.cta-banner p {
    margin: 0 auto 2.5rem;
    text-align: center;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.98);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .grid-2 .img-block--tall {
        aspect-ratio: 16/9;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    .hero__claim {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .page-hero {
        min-height: 50vh;
    }

    .footer__inner {
        flex-direction: column;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2.reverse-mobile {
        direction: ltr;
    }

    .grid-2.reverse-mobile > :first-child {
        order: 2;
    }

    .grid-2.reverse-mobile > :last-child {
        order: 1;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
