/*
Theme Name: Treasure Planet Vetrina
Theme URI: https://treasureplanet.it
Author: Treasure Planet
Description: Tema WordPress responsive per Treasure Planet: Marketing, Eventi, YouTuber Management, Video Games e Contatti.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: treasure-planet
License: GPL-2.0-or-later
*/

/* DESIGN SYSTEM */
:root {
  --tp-navy: #081c4e;
  --tp-navy-soft: #20325d;
  --tp-violet: #7100ff;
  --tp-purple: #9b30ff;
  --tp-yellow: #ffb900;
  --tp-cyan: #04cbf1;
  --tp-paper: #fff;
  --tp-mist: #f6f8ff;
  --tp-border: #e6e9f5;
  --tp-muted: #586780;
  --tp-radius: 23px;
  --tp-shadow: 0 18px 50px rgba(20,35,85,.085);
  --tp-container: 1190px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--tp-navy); background: var(--tp-paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--tp-violet); outline-offset: 4px; }
button { font: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; margin: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.35rem; }
.wrap { width: min(var(--tp-container), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -100px; padding: 12px 18px; background: #fff; z-index: 200; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.eyebrow { font-size: .73rem; letter-spacing: .17em; font-weight: 850; text-transform: uppercase; color: var(--tp-violet); }
.gradient-text { color: var(--tp-violet); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 50px; border-radius: 100px; padding: 12px 23px; font-weight: 780; font-size: .92rem; transition: transform .2s, box-shadow .2s, background .2s; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(110deg, #6400e3, #9517ff); box-shadow: 0 10px 25px rgba(113,0,255,.22); }
.btn-outline { background: #fff; color: var(--tp-navy); border: 1px solid #d5d9f0; }
.btn-white { color: var(--tp-violet); background: #fff; }
.btn-arrow { font-size: 1.2em; line-height: 1; }

/* HEADER */
.site-header { position: relative; z-index: 15; background: rgba(255,255,255,.96); }
.header-inner { min-height: 101px; display: flex; align-items: center; gap: 22px; }
.brand { flex: 0 0 auto; position: relative; width: 204px; min-height: 73px; display: flex; justify-content: center; flex-direction: column; isolation: isolate; padding: 6px 9px 6px 35px; font-style: italic; font-weight: 950; letter-spacing: -.07em; line-height: .85; text-transform: uppercase; }
.brand::before { content: ''; position: absolute; inset: 8px 23px 6px 0; border-top: 7px solid #ffb400; border-left: 7px solid #ffb400; border-bottom: 7px solid #ffb400; border-right: 0; border-radius: 60% 0 0 60%; transform: rotate(-8deg); z-index: -1; }
.brand::after { content: '★'; position: absolute; right: 20px; top: 0; color: #ffb400; font-size: 19px; transform: rotate(4deg); font-style: normal; }
.brand-line-first { font-size: 24px; color: var(--tp-navy); }
.brand-line-second { font-size: 29px; color: var(--tp-violet); padding-left: 14px; }
.primary-nav { margin-left: auto; }
.primary-nav .menu { display: flex; gap: clamp(10px, 1.4vw, 23px); justify-content: flex-end; align-items: center; list-style: none; padding: 0; margin: 0; }
.primary-nav a { position: relative; display: block; padding: 10px 0; font-size: .82rem; font-weight: 750; white-space: nowrap; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--tp-violet); }
.primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after { content: ''; position: absolute; bottom: 3px; left: 0; right: 0; height: 2px; background: var(--tp-violet); }
.header-email { margin-left: 10px; padding-inline: 19px; font-size: .78rem; white-space: nowrap; }
.header-email svg { width: 16px; height: 16px; }
.nav-toggle { display: none; margin-left: auto; align-items: center; justify-content: center; width: 44px; height: 44px; background: #f2efff; border: 1px solid #e2dcff; border-radius: 12px; color: var(--tp-navy); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

/* HERO */
.hero-visual { position: relative; width: min(1448px, 100%); margin: 0 auto; overflow: hidden; border-radius: 0 0 38px 38px; }
.hero-visual img { width: 100%; height: auto; display: block; }
.hero-visual-mobile { display: none; }
.hero-message { position: relative; z-index: 2; margin-top: -7px; padding: 50px 0 40px; display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: end; }
.hero-message h1 { max-width: 750px; margin-top: 12px; margin-bottom: 17px; font-size: clamp(2.2rem, 4.6vw, 4rem); }
.hero-message p { max-width: 740px; margin: 0; color: var(--tp-muted); font-size: 1.09rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; padding-bottom: 6px; }

/* SECTIONS */
.section-space { padding-block: 83px; }
.section-intro { max-width: 700px; margin-bottom: 32px; }
.section-intro h2 { margin: 13px 0 17px; }
.section-intro p { color: var(--tp-muted); font-size: 1.06rem; }
.services-section { background: linear-gradient(180deg,#f9faff,#f2f5ff); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.service-card { position: relative; display: flex; flex-direction: column; min-height: 327px; padding: 26px 22px 25px; border: 1px solid var(--tp-border); background: #fff; border-radius: var(--tp-radius); box-shadow: 0 8px 24px rgba(18,31,80,.035); transition: transform .22s, box-shadow .22s; overflow: hidden; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--tp-shadow); }
.service-card::before { content: ''; position: absolute; height: 4px; left: 23px; right: 55%; top: 0; background: var(--accent); border-radius: 0 0 20px 20px; }
.service-card .service-nr { display: flex; width: 52px; height: 52px; align-items: center; justify-content: center; background: var(--shade); color: var(--accent); border-radius: 15px; font-weight: 900; letter-spacing: -.04em; margin-bottom: 30px; }
.service-card h3 { font-size: 1.21rem; margin-bottom: 13px; }
.service-card p { font-size: .94rem; color: var(--tp-muted); line-height: 1.65; margin-bottom: 20px; }
.service-more { display: inline-flex; gap: 8px; align-items: center; margin-top: auto; color: var(--accent); font-size: .88rem; font-weight: 800; }
.service-card:nth-child(1) { --accent: #7d11ef; --shade: #f4eaff; }
.service-card:nth-child(2) { --accent: #e59b00; --shade: #fff5dd; }
.service-card:nth-child(3) { --accent: #0075c8; --shade: #e8f5ff; }
.service-card:nth-child(4) { --accent: #c817a1; --shade: #ffe9f8; }
.who-grid { display: grid; grid-template-columns: 1.1fr .85fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.who-grid h2 { margin: 16px 0 20px; }
.who-grid p { color: var(--tp-muted); font-size: 1.04rem; }
.who-panel { padding: clamp(25px, 4vw, 45px); border-radius: 29px; min-height: 310px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 100% 5%, #dbd3ff, transparent 55%), linear-gradient(140deg,#f2f6ff,#faf5ff); border: 1px solid #e5dfff; overflow: hidden; position: relative; }
.who-panel::after { content: ''; position: absolute; width: 190px; height: 190px; border: 19px solid rgba(255,184,0,.23); border-radius: 50%; right: -55px; bottom: -90px; }
.who-panel p { margin: 0 0 10px; max-width: 310px; color: #5e5480; font-size: .9rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.who-panel h3 { max-width: 355px; font-size: clamp(1.85rem, 3.2vw, 2.7rem); line-height: 1.2; }
.cta-section { padding: 0 0 82px; }
.cta-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; border-radius: 27px; background: linear-gradient(112deg,#0e2769,#560ab7 75%,#7c2df5); color: #fff; padding: clamp(31px, 5vw, 61px); }
.cta-card h2 { margin: 10px 0 13px; font-size: clamp(1.85rem, 3.6vw, 2.8rem); }
.cta-card p { color: rgba(255,255,255,.82); max-width: 600px; margin: 0; }
.cta-card .eyebrow { color: #ffc94b; }
.home-extra-content { margin-top: 35px; max-width: 780px; color: var(--tp-muted); }
.home-extra-content:empty { display: none; }

/* INNER PAGES */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 89% 15%, #dceeff, transparent 30%), radial-gradient(circle at 10% 5%, #f3e9ff, transparent 35%), linear-gradient(150deg,#fff,#f6f8ff); padding: 86px 0 82px; border-bottom: 1px solid #edf0fa; }
.page-hero::after { content: ''; position: absolute; width: 250px; height: 250px; border: 25px solid rgba(255,185,0,.12); right: -90px; top: -95px; border-radius: 50%; pointer-events: none; }
.breadcrumbs { font-size: .87rem; color: var(--tp-muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--tp-violet); font-weight: 730; }
.page-hero h1 { max-width: 800px; }
.page-hero .lead { max-width: 720px; font-size: 1.15rem; color: var(--tp-muted); margin-top: 23px; }
.page-content { padding-block: 75px 88px; max-width: 950px; }
.page-content > * { max-width: 820px; }
.page-content > .alignwide { max-width: 100%; }
.page-content h2 { font-size: clamp(1.5rem,3vw,2.35rem); margin: 35px 0 15px; }
.page-content h3 { margin: 28px 0 12px; }
.page-content ul { padding-left: 1.35rem; }
.page-content li { margin-bottom: .8rem; }
.page-content p, .page-content li { color: #3c4863; font-size: 1.05rem; }
.page-content a:not(.btn) { color: var(--tp-violet); text-decoration: underline; }
.page-content .wp-block-columns { display: flex; gap: 20px; }
.page-content .wp-block-column { flex: 1; }
.page-next { padding: 0 0 85px; }
.page-next-inner { border-top: 1px solid #e5e9f5; padding-top: 36px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.page-next h2 { font-size: 1.55rem; }
.contact-wrap { padding: 65px 0 95px; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(25px, 5vw, 70px); align-items: start; }
.contact-card { background: linear-gradient(150deg,#f8f8ff,#edf5ff); border: 1px solid #e2e8fa; border-radius: 25px; padding: clamp(25px,4vw,45px); }
.contact-card .eyebrow { display: block; margin-bottom: 20px; }
.contact-address { display: inline-block; font-size: clamp(1.2rem,2.2vw,1.8rem); font-weight: 850; overflow-wrap: anywhere; color: var(--tp-navy); margin: 6px 0 25px; }
.contact-wrap .page-content { padding: 0; }
.contact-wrap .page-content > :first-child { margin-top: 0; }
.contact-note { font-size: .88rem; color: var(--tp-muted); margin-top: 17px; }
.not-found { padding-block: 100px; }

/* FOOTER */
.site-footer { padding: 58px 0 20px; color: #d5dcf7; background: #081a42; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; padding-bottom: 53px; }
.footer-main h3 { color: #fff; font-size: 1.03rem; letter-spacing: 0; margin-bottom: 18px; }
.footer-brand { color: #fff; font-size: 1.55rem; font-weight: 950; font-style: italic; letter-spacing: -.055em; text-transform: uppercase; line-height: 1.08; }
.footer-brand span { color: #a46eff; }
.footer-about { max-width: 360px; color: #b7c2e7; margin-top: 15px; font-size: .93rem; }
.footer-links { padding: 0; margin: 0; list-style: none; columns: 2; }
.footer-links li { margin-bottom: 9px; }
.footer-links a:hover, .footer-email:hover { color: #ffcc4a; }
.footer-email { font-size: .92rem; overflow-wrap: anywhere; }
.footer-bottom { padding-top: 23px; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(255,255,255,.14); font-size: .81rem; color: #aab5dd; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .header-inner { gap: 12px; }
  .brand { width: 178px; padding-left: 31px; }
  .brand-line-first { font-size: 22px; }
  .brand-line-second { font-size: 25px; }
  .primary-nav .menu { gap: 12px; }
  .primary-nav a { font-size: .75rem; }
  .header-email { font-size: .75rem; padding: 10px 13px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .header-inner { min-height: 86px; }
  .brand { width: 189px; }
  .brand-line-first { font-size: 23px; }
  .brand-line-second { font-size: 27px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; top: calc(100% - 2px); left: 0; right: 0; width: 100%; margin: 0; background: #fff; box-shadow: 0 20px 30px rgba(15,28,76,.11); padding: 12px 24px 22px; }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { display: block; width: min(760px,100%); margin-inline: auto; }
  .primary-nav .menu li { border-bottom: 1px solid #edf0f8; }
  .primary-nav a { display: block; padding: 12px; font-size: 1rem; }
  .primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after { bottom: 7px; left: 12px; right: auto; width: 30px; }
  .header-email { margin-left: 0; }
  .hero-message { grid-template-columns: 1fr; gap: 24px; padding-top: 41px; }
  .hero-actions { justify-content: flex-start; }
  .who-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .wrap { width: min(var(--tp-container), calc(100% - 34px)); }
  .header-inner { min-height: 78px; }
  .brand { width: 176px; min-height: 65px; }
  .brand-line-first { font-size: 21px; }
  .brand-line-second { font-size: 25px; }
  .header-email { display: none; }
  .hero-visual-desktop { display: none; }
  .hero-visual-mobile { display: block; padding-top: 26px; border-radius: 0 0 22px 22px; background: linear-gradient(150deg,#fff,#eaf7ff 65%,#e8d7ff); }
  .mobile-hero-mark { margin: 0 auto -40px; width: fit-content; position: relative; z-index: 2; font-size: clamp(2.1rem,10vw,3.9rem); line-height: .88; font-weight: 1000; font-style: italic; text-align: center; letter-spacing: -.068em; }
  .mobile-hero-mark span { display: block; }
  .mobile-hero-mark span:first-child { color: var(--tp-navy); }
  .mobile-hero-mark span:last-child { color: var(--tp-violet); }
  .mobile-hero-mark::before { content: ''; position: absolute; width: 108%; height: 100%; left: -15%; top: -8%; border-left: 7px solid var(--tp-yellow); border-top: 7px solid var(--tp-yellow); border-bottom: 7px solid var(--tp-yellow); border-radius: 60% 0 0 60%; transform: rotate(-8deg); }
  .mobile-hero-mark::after { content: '★'; position: absolute; right: 0; top: -15%; font-size: .45em; font-style: normal; color: var(--tp-yellow); }
  .hero-visual-mobile img { width: 100%; height: auto; object-fit: contain; display: block; margin-top: 40px; }
  .hero-message { padding-top: 32px; padding-bottom: 32px; }
  .hero-message h1 { font-size: 2.15rem; }
  .hero-message p { font-size: 1rem; }
  .hero-actions { display: flex; width: 100%; }
  .hero-actions .btn { flex: 1; padding-inline: 14px; font-size: .84rem; }
  .section-space { padding-block: 60px; }
  .section-intro { margin-bottom: 25px; }
  .service-grid, .who-grid, .contact-wrap { grid-template-columns: 1fr; }
  .service-card { min-height: 260px; padding: 25px; }
  .service-card .service-nr { margin-bottom: 20px; }
  .who-panel { min-height: 270px; }
  .cta-section { padding-bottom: 60px; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-card .btn { width: 100%; }
  .page-hero { padding: 62px 0 60px; }
  .page-hero .lead { font-size: 1.05rem; }
  .page-content { padding-block: 55px 70px; }
  .page-content .wp-block-columns { display: block; }
  .contact-wrap { padding-block: 54px 70px; }
  .page-next-inner { display: block; }
  .page-next-inner .btn { margin-top: 22px; }
  .footer-main { display: block; padding-bottom: 25px; }
  .footer-main > * { margin-bottom: 33px; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
