/*
Theme Name: Fragagnano Turistica
Theme URI: https://fragagnanoturistica.it
Author: Fragagnano Turistica
Description: Tema ufficiale per il portale turistico di Fragagnano.
Version: 1.0.0
*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f7;
    color: #222;
}

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

.ft-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.ft-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.ft-header-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ft-logo {
    font-size: 24px;
    font-weight: 700;
}

.ft-menu {
    display: flex;
    gap: 25px;
}

.ft-menu a {
    font-weight: 600;
}

.ft-main {
    padding: 50px 0;
}

.ft-page-title {
    margin: 0 0 35px;
    font-size: 38px;
}

.ft-eventi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.ft-evento-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .2s ease;
}

.ft-evento-card:hover {
    transform: translateY(-3px);
}

.ft-evento-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.ft-evento-image-placeholder {
    width: 100%;
    height: 220px;
    background: #ddd;
}

.ft-evento-content {
    padding: 20px;
}

.ft-evento-data {
    color: #777;
    font-size: 14px;
    margin-bottom: 8px;
}

.ft-evento-title {
    margin: 0 0 10px;
    font-size: 22px;
}

.ft-evento-excerpt {
    color: #555;
    line-height: 1.5;
}

.ft-evento-single {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
}

.ft-evento-single-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.ft-evento-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.ft-meta-box {
    background: #f5f6f7;
    padding: 15px;
    border-radius: 6px;
}

.ft-meta-label {
    display: block;
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.ft-footer {
    margin-top: 60px;
    padding: 30px 0;
    background: #222;
    color: #fff;
}

@media (max-width: 900px) {

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

@media (max-width: 600px) {

    .ft-container {
        width: min(100% - 25px, 1200px);
    }

    .ft-header-inner {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .ft-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ft-eventi-grid {
        grid-template-columns: 1fr;
    }

    .ft-page-title {
        font-size: 30px;
    }

    .ft-evento-single {
        padding: 20px;
    }

    .ft-evento-meta {
        grid-template-columns: 1fr;
    }
}

.ft-evento-description {
    font-size: 17px;
    line-height: 1.7;
}

.ft-evento-description p {
    margin-bottom: 20px;
}

.ft-evento-description img {
    max-width: 100%;
    height: auto;
}

.ft-evento-single h1 {
    margin-bottom: 10px;
}

.ft-meta-box h3 {
    margin-top: 0;
}

.ft-meta-box a {
    text-decoration: underline;
}

/* =========================================================
   LUOGHI
   ========================================================= */

.ft-page-header {
    margin-bottom: 35px;
}

.ft-page-header h1 {
    margin-bottom: 8px;
}

.ft-page-header p {
    margin: 0;
    color: #666;
}


/* Griglia */

.ft-luoghi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* Card */

.ft-luogo-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ft-luogo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}


/* Immagine */

.ft-luogo-image {
    display: block;
    overflow: hidden;
}

.ft-luogo-image img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ft-luogo-card:hover .ft-luogo-image img {
    transform: scale(1.03);
}


/* Contenuto */

.ft-luogo-content {
    padding: 22px;
}

.ft-luogo-content h2 {
    margin: 0 0 8px;
    font-size: 23px;
}

.ft-luogo-content h2 a {
    text-decoration: none;
}

.ft-luogo-sottotitolo {
    margin-bottom: 12px;
    color: #666;
    font-size: 15px;
}

.ft-luogo-address {
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.ft-luogo-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
}


/* Bottone */

.ft-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
}


/* Singolo luogo */

.ft-single-luogo {
    padding-top: 30px;
    padding-bottom: 50px;
}

.ft-luogo-hero {
    margin-bottom: 30px;
}

.ft-luogo-hero img {
    display: block;
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 10px;
}

.ft-single-header {
    margin-bottom: 35px;
}

.ft-single-header h1 {
    margin-bottom: 10px;
}

.ft-single-header .ft-luogo-sottotitolo {
    font-size: 20px;
}

.ft-luogo-categorie {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.ft-luogo-category {
    padding: 6px 12px;
    border-radius: 20px;
    background: #eee;
    font-size: 13px;
}


/* Layout */

.ft-luogo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
}

.ft-luogo-main {
    min-width: 0;
}


/* Sidebar */

.ft-luogo-box {
    margin-bottom: 25px;
    padding: 22px;
    background: #f7f7f7;
    border-radius: 10px;
}

.ft-luogo-box h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 20px;
}

.ft-luogo-info > div {
    margin-bottom: 15px;
}

.ft-luogo-info > div:last-child {
    margin-bottom: 0;
}

.ft-luogo-box p {
    margin-bottom: 18px;
}

.ft-luogo-box p:last-child {
    margin-bottom: 0;
}


/* Mappa */

.ft-luogo-map {
    margin-top: 45px;
}

.ft-luogo-map h2 {
    margin-bottom: 18px;
}

.ft-luogo-map iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 10px;
}

.ft-luogo-map p {
    margin-top: 10px;
}


/* Paginazione */

.ft-pagination {
    margin-top: 40px;
}


/* Nessun risultato */

.ft-no-results {
    padding: 40px 0;
}


/* Responsive */

@media screen and (max-width: 900px) {

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

    .ft-luogo-layout {
        grid-template-columns: 1fr;
    }

}

@media screen and (max-width: 600px) {

    .ft-luoghi-grid {
        grid-template-columns: 1fr;
    }

    .ft-luogo-image img {
        height: 220px;
    }

    .ft-luogo-layout {
        gap: 20px;
    }

    .ft-luogo-map iframe {
        height: 350px;
    }

}
/* =========================================================
   HOME
   ========================================================= */

.ft-home {
    overflow: hidden;
}


/* HERO */

.ft-home-hero {
    min-height: 620px;
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.45)
        ),
        url('/wp-content/themes/fragagnano-turistica/images/fragagnano-hero.jpg');

    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.ft-home-hero-overlay {
    width: 100%;
}

.ft-home-hero-content {
    max-width: 720px;
    color: #fff;
    padding: 80px 0;
}

.ft-home-eyebrow {
    display: block;
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ft-home-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(48px, 7vw, 82px);
    line-height: 1;
    color: #fff;
}

.ft-home-hero p {
    max-width: 650px;
    margin-bottom: 30px;
    font-size: 22px;
    line-height: 1.5;
    color: #fff;
}

.ft-home-hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ft-home-button {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
}

.ft-home-button-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.7);
}


/* INTRO */

.ft-home-intro {
    padding: 90px 0;
    text-align: center;
}

.ft-home-intro-content {
    max-width: 760px;
    margin: 0 auto;
}

.ft-home-section-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ft-home-intro h2,
.ft-home-section-header h2 {
    margin-top: 0;
    font-size: 38px;
}

.ft-home-intro p {
    font-size: 18px;
    line-height: 1.7;
}


/* SEZIONI */

.ft-home-section {
    padding: 80px 0;
}

.ft-home-luoghi {
    background: #f7f7f7;
}

.ft-home-eventi {
    background: #fff;
}

.ft-home-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.ft-home-more {
    white-space: nowrap;
    font-weight: 600;
    text-decoration: none;
}


/* CARD */

.ft-home-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ft-home-card {
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.ft-home-card-image {
    display: block;
    overflow: hidden;
}

.ft-home-card-image img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform .3s ease;
}

.ft-home-card:hover .ft-home-card-image img {
    transform: scale(1.03);
}

.ft-home-card-content {
    padding: 22px;
}

.ft-home-card h3 {
    margin: 0 0 12px;
    font-size: 23px;
}

.ft-home-card h3 a {
    text-decoration: none;
}

.ft-home-card p {
    line-height: 1.6;
}

.ft-home-card-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    text-decoration: none;
}

.ft-home-event-date {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}


/* ITINERARI */

.ft-home-itinerari {
    padding: 100px 0;
    background:
        linear-gradient(
            rgba(0,0,0,.55),
            rgba(0,0,0,.55)
        ),
        url('/wp-content/themes/fragagnano-turistica/images/fragagnano-itinerari.jpg');

    background-size: cover;
    background-position: center;
    color: #fff;
}

.ft-home-itinerari-content {
    max-width: 650px;
}

.ft-home-itinerari h2 {
    font-size: 44px;
    margin-top: 0;
    color: #fff;
}

.ft-home-itinerari p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
}


/* CTA */

.ft-home-cta {
    padding: 70px 0;
    text-align: center;
}

.ft-home-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.ft-home-cta p {
    font-size: 18px;
}


/* MOBILE */

@media screen and (max-width: 900px) {

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

}

@media screen and (max-width: 600px) {

    .ft-home-hero {
        min-height: 520px;
    }

    .ft-home-hero-content {
        padding: 60px 0;
    }

    .ft-home-hero h1 {
        font-size: 48px;
    }

    .ft-home-hero p {
        font-size: 18px;
    }

    .ft-home-section-header {
        display: block;
    }

    .ft-home-more {
        display: inline-block;
        margin-top: 10px;
    }

    .ft-home-cards {
        grid-template-columns: 1fr;
    }

    .ft-home-intro,
    .ft-home-section {
        padding: 60px 0;
    }

}

/* =========================================================
   HEADER / MENU
   ========================================================= */

.ft-header {
    position: relative;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.ft-header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* LOGO */

.ft-logo a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.ft-logo-title {
    font-size: 24px;
    font-weight: 800;
}

.ft-logo-subtitle {
    margin-top: 5px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* MENU */

.ft-main-menu ul {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ft-main-menu a {
    text-decoration: none;
    font-weight: 600;
}

.ft-main-menu a:hover {
    opacity: .7;
}


/* MENU MOBILE BUTTON */

.ft-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ft-menu-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: currentColor;
}


/* MOBILE */

@media screen and (max-width: 700px) {

    .ft-header-inner {
        position: relative;
    }

    .ft-menu-toggle {
        display: block;
    }

    .ft-main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 15px 20px;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 5px 15px rgba(0,0,0,.08);
    }

    .ft-main-menu.ft-menu-open {
        display: block;
    }

    .ft-main-menu ul {
        display: block;
    }

    .ft-main-menu li {
        border-bottom: 1px solid #eee;
    }

    .ft-main-menu li:last-child {
        border-bottom: 0;
    }

    .ft-main-menu a {
        display: block;
        padding: 14px 5px;
    }

}
