/*
Theme Name: Erreciweb
Theme URI: https://erreciweb.com/
Author: Roberto Chiapparelli
Author URI: https://erreciweb.com/
Description: A lightweight, fast, 0-plugin WordPress theme based on Bootstrap 5. Compatible with WooCommerce, WPML, and Contact Form 7. Includes custom header and footer logo settings.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: erreciweb
Tags: bootstrap, responsive-layout, woocommerce, translation-ready, fast
*/

/* Custom styles can be added here or in the child theme */
:root {
    --primary-color: #1b3664;
    --secondary-color: #2c89be;
    --text-dark: #333333;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --font-main: 'Montserrat', sans-serif;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-outline-white {
    border: 2px solid var(--text-white);
    color: var(--text-white);
    background: transparent;
}

.btn-outline-white:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 20px;
    font-weight: 700;
}

.section-heading h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-heading p {
    font-size: 18px;
    color: #555;
}

/* ============== HEADER (Common) ================ */
.site-header {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

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

.logo img {
    height: 50px;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    gap: 25px;
    margin: 0;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav li.current-menu-item>a,
.main-nav a.active {
    color: var(--text-white);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

/* Dropdown Menu Styles */
.main-nav li {
    position: relative;
    list-style: none;
    /* Just to be safe */
}

/* Adds a small arrow to items with children */
.main-nav .menu-item-has-children>a::after {
    content: '\f0d7';
    /* FontAwesome caret down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 6px;
    font-size: 12px;
}

.main-nav ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--text-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;

    /* Animation settings */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
}

.main-nav li:hover>ul.sub-menu,
.main-nav li:focus-within>ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav ul.sub-menu li {
    width: 100%;
}

.main-nav ul.sub-menu a {
    color: var(--text-dark);
    padding: 10px 20px;
    display: block;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.main-nav ul.sub-menu a:hover,
.main-nav ul.sub-menu li.current-menu-item>a {
    color: var(--secondary-color);
    background-color: var(--bg-light);
    padding-left: 25px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-white);
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.lang-selector img {
    width: 20px;
    height: auto;
}

/* ============== FOOTER (Common) ================ */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 60px 0 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    gap: 40px;
}

.footer-logo {
    height: 60px;
    max-width: 100%;
}

.footer-col {
    flex: 1;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
    /* In case it's a ul from wp_nav_menu */
    padding: 0;
    margin: 0;
}

.footer-links a,
.footer-links li a {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-links a:hover,
.footer-links li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.contact-item {
    margin-bottom: 20px;
}

.mt-3 {
    margin-top: 15px;
}

.footer-bottom {
    background-color: #fff;
    color: #666;
    padding: 15px 0;
    font-size: 12px;
}

/* ========================================= */
/* Contact Form 7 Styles */
/* ========================================= */
.wpcf7 {
    max-width: 900px;
    margin: 0 auto;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
    width: 100%;
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-tel,
.wpcf7-form-control.wpcf7-number,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #fcfcfc;
    font-size: 16px;
    color: var(--text-dark);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.wpcf7-form-control.wpcf7-textarea {
    min-height: 180px;
    resize: vertical;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.wpcf7-form-control::placeholder {
    color: #999;
    opacity: 1;
}

/* Submit Button */
.wpcf7-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    margin-top: 10px;
}

.wpcf7-submit:hover {
    background-color: var(--secondary-color);
}

.wpcf7-response-output {
    border-radius: 4px;
    margin-top: 20px !important;
}

/* ========================================= */
/* Animations & Hover Effects (Dinamismo)  */
/* ========================================= */

/* Scroll Animations (Slide dal basso) */
.ambasciatori-animate {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Image Hover Zoom (Minimal & Elegant) */
.destination-card img,
.about-img-wrapper img,
.join-image img,
.partner-logo img,
.testimonial-card img,
.wp-block-image img,
.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.destination-card:hover img,
.about-img-wrapper:hover img,
.join-image:hover img,
.partner-logo:hover img,
.testimonial-card:hover img,
.wp-block-image:hover img,
.gallery-item:hover img {
    transform: scale(1.04);
}

/* ================= RESPONSIVE GLOBALS ================= */
@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
    }
}
@media (max-width: 768px) {
    .main-nav,
    .header-right {
        display: none; /* Add mobile menu logic separately */
    }
}
