/* =========================================================
   AGRITENUTA SAN FRANCESCO — Homepage Styles
   File: wwwroot/css/index.css
   Dipende da: site.css (token CSS già definiti)
   ========================================================= */

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    /* Risale sotto la navbar fixed, poi compensa con padding */
    margin-top: calc(var(--nav-h, 80px) * -1);
    padding-top: var(--nav-h, 80px);
    min-height: 700px;
    overflow: hidden;
    background: var(--dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, .42), rgba(0, 0, 0, .62)),
        url('/images/hero.jpg');
    background-size: cover;
    background-position: center 40%;
    transform: scale(1.04);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.09); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(201, 162, 39, .15), transparent 40%);
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: .05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

.hero-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(201, 162, 39, .08);
    filter: blur(100px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 5;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    padding-top: clamp(5rem, 12vh, 9rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeUp 1.2s .1s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    margin-bottom: 1.6rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .36em;
    font-size: .70rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-eyebrow::before {
    content: '';
    width: 48px;
    height: 1px;
    background: var(--gold-40);
    flex-shrink: 0;
}

.hero-content h1 {
    max-width: 860px;
    font-size: clamp(3.4rem, 8.5vw, 7rem);
    line-height: .96;
    font-weight: 300;
    color: var(--cream);
    letter-spacing: -.03em;
}

.hero-content h1 em {
    font-style: italic;
    color: #d6e59a;
}

.hero-description {
    margin-top: 1.8rem;
    max-width: 580px;
    font-size: 1.05rem;
    line-height: 1.95;
    color: rgba(245, 240, 232, .68);
}

.hero-actions {
    margin-top: 2.8rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    color: rgba(255, 255, 255, .38);
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: .62rem;
}

.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, rgba(201, 162, 39, .7), transparent);
    animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: .3; transform: scaleY(.6) translateY(-4px); }
    50%       { opacity: 1;  transform: scaleY(1)  translateY(0); }
}

/* ─────────────────────────────────────────────
   SHARED (componenti usati solo nell'homepage)
───────────────────────────────────────────── */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: .9rem;
    font-size: .67rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.label-line {
    display: inline-block;
    width: 36px;
    height: 1px;
    background: var(--gold-40);
}

.section-header {
    max-width: 680px;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 300;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.section-header h2 em,
.food-content h2 em,
.booking-content h2 em,
.intro-body h2 em {
    font-style: italic;
    color: #d6e59a;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--cream-60);
    line-height: 1.85;
    max-width: 560px;
}

.section-cta {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

/* ─────────────────────────────────────────────
   BUTTONS (specifici homepage — generici in site.css)
───────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: .95rem 2rem;
    border-radius: 999px;
    background: rgba(201, 162, 39, .95);
    color: var(--dark);
    font-size: .76rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 500;
    transition: transform .3s var(--ease-out-quart, cubic-bezier(.25,1,.5,1)), background .25s ease;
    white-space: nowrap;
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: #d9b33d;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: .95rem 2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .15);
    color: var(--cream);
    font-size: .76rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    transition: background .25s ease;
    white-space: nowrap;
}
.btn-secondary:hover { background: rgba(255, 255, 255, .07); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: .9rem 2.2rem;
    border-radius: 999px;
    border: 1px solid var(--gold-40);
    color: var(--gold);
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    transition: background .25s ease, border-color .25s ease;
}
.btn-outline:hover {
    background: var(--gold-20);
    border-color: var(--gold);
}

.btn-ghost {
    font-size: .72rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold);
    transition: opacity .2s ease;
}
.btn-ghost:hover { opacity: .7; }

.link-underline {
    display: inline-block;
    margin-top: 1.8rem;
    font-size: .78rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid var(--gold-40);
    padding-bottom: 3px;
    transition: border-color .25s ease;
}
.link-underline:hover { border-color: var(--gold); }

/* ─────────────────────────────────────────────
   SEZIONE INTRO
───────────────────────────────────────────── */
.section-intro {
    padding: 8rem 0 7rem;
}

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

.intro-body h2 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 300;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 1.4rem;
}

.intro-body p {
    color: var(--cream-60);
    line-height: 1.9;
    font-size: 1.02rem;
}

.intro-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 1px solid var(--white-05);
    padding-left: 3rem;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 300;
    color: var(--cream);
    line-height: 1;
}

.stat-label {
    display: block;
    margin-top: .4rem;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--cream-45);
}

/* ─────────────────────────────────────────────
   SEZIONE CAMERE
───────────────────────────────────────────── */
.section-rooms {
    padding: 7rem 0;
    background: rgba(0, 0, 0, .18);
    border-top: 1px solid var(--white-05);
    border-bottom: 1px solid var(--white-05);
}

.rooms-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1.5px;
    border-radius: 12px;
    overflow: hidden;
}

.room-card { background: #1f2318; }

.room-card__img {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform .6s var(--ease-out-quart, cubic-bezier(.25,1,.5,1));
}
.room-card--featured .room-card__img { aspect-ratio: 16 / 11; }
.room-card:hover .room-card__img { transform: scale(1.03); }

.room-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 50%);
}

.room-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    font-size: .60rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: rgba(201, 162, 39, .85);
    color: var(--dark);
    font-weight: 500;
}

.room-card__body {
    padding: 1.6rem 1.8rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.room-card__body h3 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--cream);
    line-height: 1.15;
}

.room-card__body p {
    font-size: .9rem;
    color: var(--cream-60);
    line-height: 1.75;
}

.room-card__footer {
    margin-top: .4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.room-price {
    font-size: .82rem;
    color: var(--cream-45);
}

.room-price strong {
    color: var(--gold);
    font-weight: 500;
}

/* ─────────────────────────────────────────────
   SEZIONE ESPERIENZE
───────────────────────────────────────────── */
.section-exp { padding: 7rem 0; }

.exp-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.exp-item {
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    padding: 2.5rem;
    border: 1px solid var(--white-05);
    margin: -1px 0 0 -1px;
    transition: background .3s ease;
}
.exp-item:hover { background: rgba(255, 255, 255, .025); }

.exp-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: .2rem;
}

.exp-body h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: .6rem;
}

.exp-body p {
    font-size: .92rem;
    color: var(--cream-60);
    line-height: 1.8;
}

/* ─────────────────────────────────────────────
   SEZIONE CUCINA
───────────────────────────────────────────── */
.section-food { padding: 0; }

.food-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
}

.food-img {
    background-size: cover;
    background-position: center;
    min-height: 480px;
}

.food-content {
    background: #1f2318;
    padding: 6rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    justify-content: center;
}

.food-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 3.5vw, 3.2rem);
    font-weight: 300;
    color: var(--cream);
    line-height: 1.1;
}

.food-content > p {
    font-size: .98rem;
    color: var(--cream-60);
    line-height: 1.9;
}

.food-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-top: .4rem;
}

.food-list li {
    font-size: .88rem;
    color: var(--cream-60);
    padding-left: 1.2rem;
    position: relative;
}

.food-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: .8rem;
}

/* ─────────────────────────────────────────────
   PULLQUOTE
───────────────────────────────────────────── */
.section-quote {
    padding: 7rem 0;
    background: rgba(0, 0, 0, .18);
    border-top: 1px solid var(--white-05);
    border-bottom: 1px solid var(--white-05);
}

.pullquote {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.pullquote p {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    font-style: italic;
    color: var(--cream);
    line-height: 1.35;
}

.pullquote cite {
    display: block;
    margin-top: 1.8rem;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--cream-45);
    font-style: normal;
}

/* ─────────────────────────────────────────────
   SEZIONE TERRITORIO
───────────────────────────────────────────── */
.section-territory { padding: 7rem 0; }

.territory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    border-radius: 10px;
    overflow: hidden;
}

.territory-item { background: #1f2318; }

.territory-img {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform .6s var(--ease-out-quart, cubic-bezier(.25,1,.5,1));
}
.territory-item:hover .territory-img { transform: scale(1.04); }

.territory-item h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--cream);
    padding: 1.4rem 1.6rem .5rem;
}

.territory-item p {
    font-size: .88rem;
    color: var(--cream-60);
    padding: 0 1.6rem 1.6rem;
    line-height: 1.75;
}

/* ─────────────────────────────────────────────
   CTA PRENOTA
───────────────────────────────────────────── */
.section-booking {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
    text-align: center;
}

.booking-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .72)),
        url('/images/booking-bg.jpg');
    background-size: cover;
    background-position: center 60%;
    animation: heroZoom 24s ease-in-out infinite alternate;
}

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

.booking-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 300;
    color: var(--cream);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.booking-content > p {
    font-size: 1rem;
    color: var(--cream-60);
    line-height: 1.9;
    max-width: 520px;
    margin: 0 auto 3rem;
}

.booking-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .intro-grid              { grid-template-columns: 1fr 2fr; }
    .intro-stats             { display: none; }
    .rooms-grid              { grid-template-columns: 1fr 1fr; }
    .room-card--featured     { grid-column: span 2; }
}

@media (max-width: 900px) {
    .hero-content            { padding-top: clamp(4rem, 10vh, 7rem); padding-bottom: 5rem; }
    .hero-description        { font-size: .95rem; }
    .hero-actions            { flex-direction: column; align-items: flex-start; }

    .section-intro           { padding: 5rem 0; }
    .intro-grid              { grid-template-columns: 1fr; }

    .rooms-grid              { grid-template-columns: 1fr; }
    .room-card--featured     { grid-column: auto; }

    .exp-list                { grid-template-columns: 1fr; }

    .food-split              { grid-template-columns: 1fr; }
    .food-content            { padding: 3.5rem 1.5rem; }

    .territory-grid          { grid-template-columns: 1fr; }

    .section-booking         { padding: 7rem 0; }
    .booking-actions         { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
    .container               { padding: 0 1.25rem; }
    .section-header          { margin-bottom: 2.5rem; }
    .hero-content h1         { font-size: clamp(2.8rem, 11vw, 4rem); }
    .food-content            { padding: 3rem 1.25rem; }
}