/* ================================
   InRomagna Travel - SVG Only Version
   Modern Design with Gradients
   ================================ */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;

    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-sunset: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-ocean: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-nature: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --gradient-gold: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-title .highlight {
    color: var(--primary-color);
    font-weight: 800;
}

.section-icon {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

/* ===== HEADER & NAVIGATION ===== */
.header-main {
    position: relative;
    z-index: 1000;
}

.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar-brand .logo {
    height: 50px;
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand .logo {
    height: 40px;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 1rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
}

.btn-booking {
    background: var(--gradient-primary);
    color: white !important;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-booking:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: var(--gradient-primary);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.hero-logo {
    max-width: 350px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
    animation: fadeInDown 1s ease;
}

.animate-fade-in {
    animation: fadeInUp 1s ease 0.3s backwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    animation: fadeInUp 1s ease 0.6s backwards;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.9s backwards;
}

.btn-hero {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(255,255,255,0.3);
    border: 3px solid white;
    transition: var(--transition);
}

.btn-hero:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.4);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    border: 3px solid white;
    transition: var(--transition);
}

.btn-hero-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    cursor: pointer;
    animation: bounce 2s infinite;
    font-size: 2rem;
}

.hero-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cloud {
    position: absolute;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.cloud-left {
    left: -5%;
    top: 20%;
    width: 300px;
}

.cloud-right {
    right: -5%;
    top: 40%;
    width: 400px;
    animation-delay: 5s;
}

.plane {
    position: absolute;
    right: -100px;
    top: 30%;
    width: 120px;
    opacity: 0.5;
    animation: fly 25s linear infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(15px);
    }
}

@keyframes fly {
    from {
        right: -100px;
    }
    to {
        right: 110%;
    }
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: white;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 3px solid transparent;
}

.feature-card.gradient-1 { border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1; }
.feature-card.gradient-2 { border-image: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) 1; }
.feature-card.gradient-3 { border-image: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) 1; }
.feature-card.gradient-4 { border-image: linear-gradient(135deg, #ffd89b 0%, #19547b 100%) 1; }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    border-radius: 20px;
}

.feature-icon img {
    max-width: 70%;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* ===== TERRITORY SECTION WITH ICONS ===== */
.territory-section {
    background: var(--light-color);
}

.territory-icon-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    color: white;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.territory-icon-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: var(--transition);
}

.territory-icon-card:hover::before {
    transform: scale(1.5);
}

.beach-gradient { background: var(--gradient-ocean); }
.culture-gradient { background: var(--gradient-sunset); }
.nature-gradient { background: var(--gradient-nature); }
.food-gradient { background: var(--gradient-gold); }

.territory-icon-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.territory-icon-big {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.territory-icon-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.territory-icon-card p {
    opacity: 0.9;
}

/* ===== COLOR CARDS MODERN ===== */
.colors-section {
    background: var(--light-color);
}

.color-card-modern {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.color-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.color-card-modern.nature-color::before { background: var(--gradient-nature); }
.color-card-modern.relax-color::before { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.color-card-modern.beach-color::before { background: var(--gradient-ocean); }
.color-card-modern.culture-color::before { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.color-card-modern.food-color::before { background: var(--gradient-sunset); }
.color-card-modern.movement-color::before { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.color-card-modern.fun-color::before { background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%); }
.color-card-modern.faith-color::before { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }

.color-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.color-card-modern:hover::before {
    height: 100%;
    opacity: 0.1;
}

.color-icon-modern {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.nature-color .color-icon-modern { background: var(--gradient-nature); }
.relax-color .color-icon-modern { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.beach-color .color-icon-modern { background: var(--gradient-ocean); }
.culture-color .color-icon-modern { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.food-color .color-icon-modern { background: var(--gradient-sunset); }
.movement-color .color-icon-modern { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.fun-color .color-icon-modern { background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%); }
.faith-color .color-icon-modern { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }

.color-card-modern h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.color-list-modern {
    list-style: none;
    padding: 0;
}

.color-list-modern li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.color-list-modern li:last-child {
    border-bottom: none;
}

.color-list-modern li:hover {
    padding-left: 10px;
    color: var(--primary-color);
}

.color-list-modern i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ===== OFFER CARDS WITH ICONS ===== */
.offers-section {
    background: white;
}

.offer-card-icon {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.offer-card-icon:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.offer-icon-header {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

.winter-gradient { background: linear-gradient(135deg, #667eea 0%, #00f2fe 100%); }
.food-gradient-2 { background: var(--gradient-sunset); }
.relax-gradient-2 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

.offer-icon-header i {
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.offer-content-icon {
    padding: 2rem;
}

.offer-content-icon h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.offer-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.offer-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.offer-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.offer-tags .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* ===== NEWS CARDS WITH ICONS ===== */
.news-section {
    background: var(--light-color);
}

.news-card-icon {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.news-card-icon:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-icon-header {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.news-icon-header i {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.news-content-icon {
    padding: 2rem;
}

.news-content-icon h4,
.news-content-icon h5 {
    margin-bottom: 1rem;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ===== GROUP SECTION ===== */
.group-section {
    background: var(--gradient-primary);
    color: white;
}

.group-icon {
    display: inline-block;
}

.group-icon i {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.highlight-white {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-group-cta {
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.btn-group-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ===== CONTACT SECTION WITH GRADIENTS ===== */
.contact-section {
    background: var(--light-color);
}

.contact-card-icon {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    color: white;
    transition: var(--transition);
}

.gradient-contact-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-contact-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gradient-contact-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gradient-contact-4 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }

.contact-card-icon:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.contact-icon-big {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.contact-card-icon h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-card-icon p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.contact-link-modern {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    transition: var(--transition);
    word-break: break-all;
}

.contact-link-modern:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.05);
}

/* ===== SOCIAL LINKS MODERN ===== */
.social-section {
    margin-top: 3rem;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.social-links-modern {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: var(--dark-color);
    min-width: 120px;
}

.social-link-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.social-link-modern i {
    font-size: 2.5rem;
    transition: var(--transition);
}

.social-link-modern.facebook:hover {
    background: #1877f2;
    color: white;
}

.social-link-modern.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.social-link-modern.linkedin:hover {
    background: #0077b5;
    color: white;
}

.social-link-modern.email:hover {
    background: var(--gradient-primary);
    color: white;
}

.social-link-modern span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-color);
    color: white;
}

.footer-logo {
    max-width: 200px;
    filter: brightness(0) invert(1);
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact a {
    color: rgba(255,255,255,0.9);
}

.footer-contact a:hover {
    color: white;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        height: 80vh;
    }

    .hero-logo {
        max-width: 250px;
    }

    .display-3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero-logo {
        max-width: 200px;
    }

    .display-3 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .cloud, .plane {
        display: none;
    }

    .btn-hero, .btn-hero-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .territory-icon-big {
        font-size: 3rem;
    }

    .social-links-modern {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== UTILITIES ===== */
html {
    scroll-behavior: smooth;
}

.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}