/*
Theme Name: Sardinia Booking
Theme URI: https://sardiniabooking.net
Author: 2pweb
Description: Custom landing page theme for Sardinia Booking - Noah's Ark Agenzia Viaggi
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sardiniabooking
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo', sans-serif;
    font-weight: 400;
    color: #000000;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

/* ===== VARIABLES ===== */
:root {
    --color-primary: #333333;
    --color-secondary: #30C8D2;
    --color-text: #000000;
    --color-accent: #FA6760;
    --color-white: #FFFFFF;
    --color-light-gray: #F6F6F6;
    --container-width: 1440px;
    --font-exo: 'Exo', sans-serif;
    --font-lora: 'Lora', serif;
    --font-dancing: 'Dancing Script', cursive;
    --font-poppins: 'Poppins', sans-serif;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 95;
    background: var(--color-white);
    width: 100%;
}

.header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
    min-height: 80px;
}

.header-logo {
    width: 40%;
    display: flex;
    align-items: center;
    padding: 0;
}

.header-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.header-cta {
    width: 60%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 25px 0 0 0;
}

.btn-email {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-white);
    font-family: var(--font-exo);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    padding: 8px 22px;
    border-radius: 9px;
    border: 1px solid var(--color-secondary);
    transition: background 0.3s, color 0.3s;
}

.btn-email:hover {
    background: transparent;
    color: var(--color-secondary);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 150px 20px;
    overflow: hidden;
    text-align: center;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slideshow::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.55);
    z-index: 1;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    opacity: 0;
    animation: heroSlideshow 15s infinite;
}

.hero-slideshow .slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slideshow .slide:nth-child(2) {
    animation-delay: 5s;
}

.hero-slideshow .slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes heroSlideshow {
    0% { opacity: 0; }
    5% { opacity: 1; }
    33.33% { opacity: 1; }
    38.33% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: var(--container-width);
}

.hero-subtitle {
    font-family: var(--font-exo);
    font-size: 16px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 10px;
    color: var(--color-white);
    background: var(--color-accent);
    padding: 8px 20px;
    display: inline-block;
}

.hero-title {
    font-family: var(--font-dancing);
    font-size: 85px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.2;
}

.hero-description {
    font-family: var(--font-exo);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.75);
    padding: 12px 24px;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-white);
    font-family: var(--font-exo);
    font-size: 15px;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 9px;
    border: 1px solid var(--color-secondary);
    transition: background 0.3s, color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btn:hover {
    background: transparent;
    color: var(--color-secondary);
}

/* ===== PHONE SECTION ===== */
.phone-section {
    background: var(--color-light-gray);
    padding: 50px 20px;
    text-align: center;
}

.phone-section h2 {
    font-family: var(--font-exo);
    font-size: 36px;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.phone-numbers {
    font-family: var(--font-exo);
    font-size: 30px;
    font-weight: 400;
    color: var(--color-text);
}

.phone-numbers a {
    color: var(--color-text);
    transition: color 0.3s;
}

.phone-numbers a:hover {
    color: var(--color-secondary);
}

/* ===== CONTACT FORM SECTION ===== */
.contact-section {
    background: var(--color-secondary);
    padding: 100px 20px;
}

.contact-inner {
    display: flex;
    flex-direction: row;
    max-width: var(--container-width);
    margin: 0 auto;
    gap: 40px;
}

.contact-text {
    width: 50%;
    color: var(--color-white);
    padding-right: 30px;
}

.contact-text h2 {
    font-family: var(--font-exo);
    font-size: 36px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
}

.contact-text p {
    font-family: var(--font-exo);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 15px;
}

.contact-text strong {
    font-weight: 600;
}

.contact-form-wrap {
    width: 50%;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-form .field-half {
    width: calc(50% - 8px);
}

.contact-form .field-full {
    width: 100%;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-exo);
    font-size: 15px;
    font-weight: 400;
    color: #666;
    background: var(--color-white);
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form select {
    appearance: auto;
}

.contact-form .btn-submit {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-exo);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 40px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form .btn-submit:hover {
    background: #e85550;
}

.form-message {
    width: 100%;
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== ABOUT / CHI SIAMO ===== */
.about-section {
    padding: 0;
}

.about-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

.about-content h2 {
    font-family: var(--font-exo);
    font-size: 36px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 25px;
}

.about-content p {
    font-family: var(--font-exo);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 15px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-text);
    padding: 5% 8%;
}

.footer-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    max-width: var(--container-width);
    margin: 0 auto;
    gap: 30px;
}

.footer-col {
    color: var(--color-white);
}

.footer-col-1 {
    width: 46%;
}

.footer-col-2 {
    width: 17%;
}

.footer-col-3 {
    width: 17%;
}

.footer-col-4 {
    width: 20%;
}

.footer-logo {
    max-width: 280px;
    margin-bottom: 20px;
}

.footer-col-1 p {
    font-family: var(--font-exo);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-col-1 p strong,
.footer-col-1 p b {
    font-weight: 600;
    color: var(--color-white);
}

.footer-col h3 {
    font-family: var(--font-poppins);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.footer-services li {
    font-family: var(--font-exo);
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.footer-services li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

.footer-contact p {
    font-family: var(--font-exo);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--color-secondary);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--color-white);
    font-size: 20px;
    transition: background 0.3s, color 0.3s;
}

.footer-social a:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

/* ===== COPYRIGHT BAR ===== */
.copyright-bar {
    background: var(--color-secondary);
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8%;
}

.copyright-bar p {
    font-family: var(--font-exo);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    text-align: center;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
    .header-inner {
        padding: 0 5%;
        min-height: 85px;
    }

    .header-logo {
        width: 15%;
    }

    .header-cta {
        width: 85%;
    }

    .btn-email {
        font-size: 14px;
        padding: 14px 35px;
    }

    .hero-title {
        font-size: 60px;
    }

    .hero-subtitle {
        letter-spacing: 6px;
    }

    .phone-numbers {
        font-size: 24px;
    }

    .contact-inner {
        flex-direction: column;
    }

    .contact-text,
    .contact-form-wrap {
        width: 100%;
        padding-right: 0;
    }

    .footer-inner {
        flex-wrap: wrap;
    }

    .footer-col-1 {
        width: 100%;
    }

    .footer-col-2,
    .footer-col-3,
    .footer-col-4 {
        width: calc(33.33% - 20px);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        padding: 0;
        min-height: 65px;
    }

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

    .header-logo img {
        width: 270px;
        height: 70px;
        margin-top: 10px;
    }

    .header-cta {
        width: 100%;
        justify-content: center;
        padding: 10px 0;
    }

    .btn-email {
        font-size: 14px;
        padding: 12px 25px;
    }

    .hero-section {
        padding: 80px 15px;
    }

    .hero-title {
        font-size: 45px;
    }

    .hero-subtitle {
        font-size: 13px;
        letter-spacing: 4px;
    }

    .hero-description {
        font-size: 14px;
    }

    .phone-section h2 {
        font-size: 28px;
    }

    .phone-numbers {
        font-size: 18px;
    }

    .contact-section {
        padding: 50px 15px;
    }

    .contact-text h2 {
        font-size: 28px;
    }

    .contact-form .field-half {
        width: 100%;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-col-1,
    .footer-col-2,
    .footer-col-3,
    .footer-col-4 {
        width: 100%;
    }

    .copyright-bar p {
        font-size: 13px;
    }
}
