/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background:
        radial-gradient(circle at top left, rgba(0, 156, 59, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 223, 0, 0.16), transparent 28%),
        radial-gradient(circle at 50% 18%, rgba(0, 39, 118, 0.14), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef6ef 48%, #f6f7fb 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.18;
}

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

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #009C3B, #FFDF00, #002776);
    z-index: 1001;
    width: 0;
    transition: width 0.1s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 156, 59, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(0, 80, 32, 0.97);
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    height: 72px;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: #FFDF00;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.nav-logo-mark {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.95) 0 10%, transparent 11%),
        radial-gradient(circle at 50% 50%, #FFDF00 0 18%, transparent 19%),
        linear-gradient(135deg, #009C3B 0 50%, #002776 50% 100%);
    box-shadow: 0 0 0 2px rgba(255, 223, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.2);
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-mark {
    transform: rotate(180deg);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu li a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a:hover {
    color: #FFDF00;
    background: rgba(255, 223, 0, 0.1);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: #FFDF00;
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.nav-menu li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 280px;
    min-width: 200px;
    max-width: 300px;
}

.nav-search-input {
    width: 100%;
    border: 1px solid rgba(255, 223, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    padding: 10px 16px;
    outline: none;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    font-family: inherit;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.nav-search-input:focus {
    border-color: #FFDF00;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 223, 0, 0.15);
}

.nav-search-btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 18px;
    background: #FFDF00;
    color: #002776;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,223,0,0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Lightfall Background */
.lightfall-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    isolation: isolate;
}

.lightfall-bg canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 223, 0, 0.12), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(0, 156, 59, 0.18), transparent 35%),
        linear-gradient(135deg, rgba(0, 39, 118, 0.92), rgba(0, 156, 59, 0.82));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 25s linear infinite;
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-60px); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: particleFloat ease-in-out infinite alternate;
}

@keyframes particleFloat {
    0% { transform: translateY(0) scale(1); opacity: 0.3; }
    100% { transform: translateY(-30px) scale(1.2); opacity: 0.7; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0,156,59,0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255,223,0,0.2) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(0,39,118,0.3) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    animation: fadeInUp 1s ease-out 0.3s both;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-focus-root {
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.focus-container {
    position: relative;
    display: inline-flex;
    gap: 0.2em;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    outline: none;
    user-select: none;
    line-height: 1;
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    min-height: 1.1em;
}

.focus-word {
    position: relative;
    cursor: pointer;
    transition: filter 0.3s ease, color 0.3s ease;
    outline: none;
    user-select: none;
    white-space: nowrap;
}

.focus-word.active {
    filter: blur(0);
    color: #fffbe6;
}

.focus-frame {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    box-sizing: content-box;
    border: none;
}

.corner {
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 3px solid var(--border-color, #fff);
    filter: drop-shadow(0px 0px 6px var(--border-color, #fff));
    border-radius: 3px;
}

.top-left { top: -12px; left: -12px; border-right: none; border-bottom: none; }
.top-right { top: -12px; right: -12px; border-left: none; border-bottom: none; }
.bottom-left { bottom: -12px; left: -12px; border-right: none; border-top: none; }
.bottom-right { bottom: -12px; right: -12px; border-left: none; border-top: none; }

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

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.5;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-scopri {
    display: inline-block;
    padding: 16px 36px;
    background: #FFDF00;
    color: #002776;
    text-decoration: none;
    font-weight: 700;
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255,223,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-scopri:hover {
    background: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255,223,0,0.4);
}

.btn-outline {
    display: inline-block;
    padding: 16px 36px;
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
    font-family: inherit;
}

.btn-outline:hover {
    border-color: #FFDF00;
    color: #FFDF00;
    transform: translateY(-3px);
    background: rgba(255, 223, 0, 0.08);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 1s both;
}

.scroll-arrow {
    font-size: 1.2rem;
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-number {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #009C3B;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #002776;
    margin-bottom: 16px;
    line-height: 1.2;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #009C3B, #FFDF00);
    border-radius: 2px;
}

.section-subtitle {
    color: #777;
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto;
}

.bg-green {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.bg-yellow {
    background: linear-gradient(135deg, #fff9c4 0%, #fff176 100%);
}

/* Section Dividers */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    max-width: 400px;
    margin: 0 auto;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,156,59,0.2), transparent);
}

.divider-icon {
    font-size: 1.3rem;
    opacity: 0.6;
}

/* Info Section */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.info-card {
    background: white;
    padding: 36px 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #009C3B, #FFDF00, #002776);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: rgba(255, 223, 0, 0.3);
}

.info-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(0,156,59,0.08), rgba(0,39,118,0.08));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.info-card:hover .info-icon-wrapper {
    background: linear-gradient(135deg, rgba(0,156,59,0.15), rgba(0,39,118,0.15));
    transform: scale(1.05);
}

.info-icon {
    font-size: 1.8rem;
    display: block;
}

.info-card h3 {
    color: #002776;
    margin-bottom: 8px;
    font-size: 1.15rem;
    font-weight: 600;
}

.info-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: #009C3B;
    margin-bottom: 4px;
}

.info-detail {
    font-size: 0.85rem;
    color: #999;
}

/* Cultura Section */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-text .content-intro {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 32px;
}

.content-highlight {
    padding: 24px;
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border-left: 4px solid #009C3B;
    transition: all 0.3s ease;
}

.content-highlight:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.content-highlight h3 {
    color: #002776;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.content-highlight p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

.content-text strong {
    color: #009C3B;
}

.cultura-img {
    width: 100%;
    height: 450px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    transition: all 0.5s ease;
}

.cultura-img:hover {
    transform: scale(1.02);
    box-shadow: 0 24px 80px rgba(0,0,0,0.18);
}

.cultura-img-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #009C3B, #FFDF00, #002776);
    animation: gradientShift 8s ease infinite alternate;
}

@keyframes gradientShift {
    0% { background: linear-gradient(135deg, #009C3B, #FFDF00, #002776); }
    50% { background: linear-gradient(135deg, #002776, #009C3B, #FFDF00); }
    100% { background: linear-gradient(135deg, #FFDF00, #002776, #009C3B); }
}

.cultura-img::before {
    content: '🇧🇷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    opacity: 0.2;
    z-index: 1;
}

.cultura-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    z-index: 2;
}

/* Turismo Section */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.place-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.place-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.place-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #002776;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s ease;
}

.place-card:hover .place-img {
    transform: scale(1.1);
}

.place-img::after {
    content: '📍';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.95);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.place-card:hover .place-img::after {
    transform: scale(1.1);
}

.place-img.rio { background-image: url('turismo/rio de janiero.png'); }
.place-img.amazonia { background-image: url('turismo/amazzonia.webp'); }
.place-img.cataratta { background-image: url('turismo/Cascate dell\'Iguzau.jpg'); }
.place-img.salvador { background-image: url('turismo/Salvador de Bahia.png'); }
.place-img.brasilia { background-image: url('turismo/Brasília.jpg'); }
.place-img.pantanal { background-image: url('turismo/Pantanal.jpg'); }

.place-info {
    padding: 24px;
}

.place-rating {
    color: #FFDF00;
    font-size: 0.9rem;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.place-info h3 {
    color: #002776;
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 600;
}

.place-info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.place-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.place-tag {
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(0,156,59,0.08), rgba(0,39,118,0.08));
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #002776;
}

/* Cucina Section */
.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.food-item {
    background: white;
    padding: 32px 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
}

.food-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: rgba(255, 223, 0, 0.3);
}

.food-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(255,223,0,0.15), rgba(0,156,59,0.15));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.food-item:hover .food-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(255,223,0,0.25), rgba(0,156,59,0.25));
}

.food-icon {
    font-size: 2.2rem;
}

.food-item h3 {
    color: #002776;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.food-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Curiosità Section */
.curiosity-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.curiosity-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    padding: 24px 28px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.curiosity-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border-color: rgba(255, 223, 0, 0.3);
}

.curiosity-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #009C3B, #002776);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.curiosity-item:hover .curiosity-number {
    transform: scale(1.1);
}

.curiosity-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-top: 10px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #009C3B, #002776);
    color: white;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 223, 0, 0.3);
}

.back-to-top-icon {
    display: block;
}

/* Footer */
.footer {
    background: #002776;
    color: white;
    padding: 80px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #FFDF00;
}

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

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-icon svg {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    transition: all 0.4s ease;
}

.social-icon:hover {
    transform: translateY(-6px) scale(1.1);
}

.social-icon:hover svg {
    stroke: white !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Instagram */
.si-instagram::before {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.si-instagram:hover::before {
    opacity: 1;
}
.si-instagram:hover {
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
}

/* Facebook */
.si-facebook::before {
    background: linear-gradient(45deg, #1877F2, #0d65d9);
}
.si-facebook:hover::before {
    opacity: 1;
}
.si-facebook:hover {
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

/* TikTok */
.si-tiktok::before {
    background: linear-gradient(45deg, #25F4EE, #FE2C55, #000000);
}
.si-tiktok:hover::before {
    opacity: 1;
}
.si-tiktok:hover {
    box-shadow: 0 8px 25px rgba(254, 44, 85, 0.4);
}

/* YouTube */
.si-youtube::before {
    background: linear-gradient(45deg, #FF0000, #cc0000);
}
.si-youtube:hover::before {
    opacity: 1;
}
.si-youtube:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.footer-copy {
    font-size: 0.8rem;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(0, 80, 32, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        font-size: 1rem;
        padding: 12px 16px;
        width: 100%;
    }

    .nav-search {
        flex: 1;
        min-width: 150px;
        max-width: none;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cultura-img {
        height: 300px;
        order: -1;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-scopri,
    .btn-outline {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.3rem;
    }

    .nav-container {
        padding: 0 16px;
        height: 64px;
    }

    .nav-menu {
        top: 64px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .info-card {
        padding: 28px 20px;
    }

    .curiosity-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .btn-scopri,
    .btn-outline {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}